Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
timezone.php
1
<?php
2
3
namespace
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup
;
4
5
use
Bitrix\Main\Type\DateTime
;
6
use
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields
;
7
8
final
class
Timezone
implements
Fields\IField
,
Fields\IAvailableFieldList
9
{
10
private
static
$timezones;
11
16
public
static
function
getDefaultValue
(): string
17
{
18
return
(
new
DateTime
)->getTimeZone()->getName();
19
}
20
25
public
static
function
getAvailableValues
(): array
26
{
27
if
(!self::$timezones)
28
{
29
self::$timezones = self::getSupportedTimezones();
30
}
31
32
return
self::$timezones;
33
}
34
41
public
static
function
checkValue
($value): bool
42
{
43
return
isset($value) && in_array($value, self::getAvailableValues(),
true
);
44
}
45
49
public
static
function
available
(): bool
50
{
51
return
true
;
52
}
53
57
public
static
function
required
(): bool
58
{
59
return
true
;
60
}
61
62
private
static
function
getSupportedTimezones() : array
63
{
64
return
[
65
"Africa/Abidjan"
,
66
"Africa/Accra"
,
67
"Africa/Addis_Ababa"
,
68
"Africa/Algiers"
,
69
"Africa/Asmara"
,
70
"Africa/Asmera"
,
71
"Africa/Bamako"
,
72
"Africa/Bangui"
,
73
"Africa/Banjul"
,
74
"Africa/Bissau"
,
75
"Africa/Blantyre"
,
76
"Africa/Brazzaville"
,
77
"Africa/Bujumbura"
,
78
"Africa/Cairo"
,
79
"Africa/Casablanca"
,
80
"Africa/Ceuta"
,
81
"Africa/Conakry"
,
82
"Africa/Dakar"
,
83
"Africa/Dar_es_Salaam"
,
84
"Africa/Djibouti"
,
85
"Africa/Douala"
,
86
"Africa/El_Aaiun"
,
87
"Africa/Freetown"
,
88
"Africa/Gaborone"
,
89
"Africa/Harare"
,
90
"Africa/Johannesburg"
,
91
"Africa/Juba"
,
92
"Africa/Kampala"
,
93
"Africa/Khartoum"
,
94
"Africa/Kigali"
,
95
"Africa/Kinshasa"
,
96
"Africa/Lagos"
,
97
"Africa/Libreville"
,
98
"Africa/Lome"
,
99
"Africa/Luanda"
,
100
"Africa/Lubumbashi"
,
101
"Africa/Lusaka"
,
102
"Africa/Malabo"
,
103
"Africa/Maputo"
,
104
"Africa/Maseru"
,
105
"Africa/Mbabane"
,
106
"Africa/Mogadishu"
,
107
"Africa/Monrovia"
,
108
"Africa/Nairobi"
,
109
"Africa/Ndjamena"
,
110
"Africa/Niamey"
,
111
"Africa/Nouakchott"
,
112
"Africa/Ouagadougou"
,
113
"Africa/Porto-Novo"
,
114
"Africa/Sao_Tome"
,
115
"Africa/Timbuktu"
,
116
"Africa/Tripoli"
,
117
"Africa/Tunis"
,
118
"Africa/Windhoek"
,
119
"America/Adak"
,
120
"America/Anchorage"
,
121
"America/Anguilla"
,
122
"America/Antigua"
,
123
"America/Araguaina"
,
124
"America/Argentina/Buenos_Aires"
,
125
"America/Argentina/Catamarca"
,
126
"America/Argentina/ComodRivadavia"
,
127
"America/Argentina/Cordoba"
,
128
"America/Argentina/Jujuy"
,
129
"America/Argentina/La_Rioja"
,
130
"America/Argentina/Mendoza"
,
131
"America/Argentina/Rio_Gallegos"
,
132
"America/Argentina/Salta"
,
133
"America/Argentina/San_Juan"
,
134
"America/Argentina/San_Luis"
,
135
"America/Argentina/Tucuman"
,
136
"America/Argentina/Ushuaia"
,
137
"America/Aruba"
,
138
"America/Asuncion"
,
139
"America/Atikokan"
,
140
"America/Atka"
,
141
"America/Bahia"
,
142
"America/Bahia_Banderas"
,
143
"America/Barbados"
,
144
"America/Belem"
,
145
"America/Belize"
,
146
"America/Blanc-Sablon"
,
147
"America/Boa_Vista"
,
148
"America/Bogota"
,
149
"America/Boise"
,
150
"America/Buenos_Aires"
,
151
"America/Cambridge_Bay"
,
152
"America/Campo_Grande"
,
153
"America/Cancun"
,
154
"America/Caracas"
,
155
"America/Catamarca"
,
156
"America/Cayenne"
,
157
"America/Cayman"
,
158
"America/Chicago"
,
159
"America/Chihuahua"
,
160
"America/Coral_Harbour"
,
161
"America/Cordoba"
,
162
"America/Costa_Rica"
,
163
"America/Creston"
,
164
"America/Cuiaba"
,
165
"America/Curacao"
,
166
"America/Danmarkshavn"
,
167
"America/Dawson"
,
168
"America/Dawson_Creek"
,
169
"America/Denver"
,
170
"America/Detroit"
,
171
"America/Dominica"
,
172
"America/Edmonton"
,
173
"America/Eirunepe"
,
174
"America/El_Salvador"
,
175
"America/Ensenada"
,
176
"America/Fort_Nelson"
,
177
"America/Fort_Wayne"
,
178
"America/Fortaleza"
,
179
"America/Glace_Bay"
,
180
"America/Godthab"
,
181
"America/Goose_Bay"
,
182
"America/Grand_Turk"
,
183
"America/Grenada"
,
184
"America/Guadeloupe"
,
185
"America/Guatemala"
,
186
"America/Guayaquil"
,
187
"America/Guyana"
,
188
"America/Halifax"
,
189
"America/Havana"
,
190
"America/Hermosillo"
,
191
"America/Indiana/Indianapolis"
,
192
"America/Indiana/Knox"
,
193
"America/Indiana/Marengo"
,
194
"America/Indiana/Petersburg"
,
195
"America/Indiana/Tell_City"
,
196
"America/Indiana/Vevay"
,
197
"America/Indiana/Vincennes"
,
198
"America/Indiana/Winamac"
,
199
"America/Indianapolis"
,
200
"America/Inuvik"
,
201
"America/Iqaluit"
,
202
"America/Jamaica"
,
203
"America/Jujuy"
,
204
"America/Juneau"
,
205
"America/Kentucky/Louisville"
,
206
"America/Kentucky/Monticello"
,
207
"America/Knox_IN"
,
208
"America/Kralendijk"
,
209
"America/La_Paz"
,
210
"America/Lima"
,
211
"America/Los_Angeles"
,
212
"America/Louisville"
,
213
"America/Lower_Princes"
,
214
"America/Maceio"
,
215
"America/Managua"
,
216
"America/Manaus"
,
217
"America/Marigot"
,
218
"America/Martinique"
,
219
"America/Matamoros"
,
220
"America/Mazatlan"
,
221
"America/Mendoza"
,
222
"America/Menominee"
,
223
"America/Merida"
,
224
"America/Metlakatla"
,
225
"America/Mexico_City"
,
226
"America/Miquelon"
,
227
"America/Moncton"
,
228
"America/Monterrey"
,
229
"America/Montevideo"
,
230
"America/Montreal"
,
231
"America/Montserrat"
,
232
"America/Nassau"
,
233
"America/New_York"
,
234
"America/Nipigon"
,
235
"America/Nome"
,
236
"America/Noronha"
,
237
"America/North_Dakota/Beulah"
,
238
"America/North_Dakota/Center"
,
239
"America/North_Dakota/New_Salem"
,
240
"America/Ojinaga"
,
241
"America/Panama"
,
242
"America/Pangnirtung"
,
243
"America/Paramaribo"
,
244
"America/Phoenix"
,
245
"America/Port-au-Prince"
,
246
"America/Port_of_Spain"
,
247
"America/Porto_Acre"
,
248
"America/Porto_Velho"
,
249
"America/Puerto_Rico"
,
250
"America/Rainy_River"
,
251
"America/Rankin_Inlet"
,
252
"America/Recife"
,
253
"America/Regina"
,
254
"America/Resolute"
,
255
"America/Rio_Branco"
,
256
"America/Rosario"
,
257
"America/Santa_Isabel"
,
258
"America/Santarem"
,
259
"America/Santiago"
,
260
"America/Santo_Domingo"
,
261
"America/Sao_Paulo"
,
262
"America/Scoresbysund"
,
263
"America/Shiprock"
,
264
"America/Sitka"
,
265
"America/St_Barthelemy"
,
266
"America/St_Johns"
,
267
"America/St_Kitts"
,
268
"America/St_Lucia"
,
269
"America/St_Thomas"
,
270
"America/St_Vincent"
,
271
"America/Swift_Current"
,
272
"America/Tegucigalpa"
,
273
"America/Thule"
,
274
"America/Thunder_Bay"
,
275
"America/Tijuana"
,
276
"America/Toronto"
,
277
"America/Tortola"
,
278
"America/Vancouver"
,
279
"America/Virgin"
,
280
"America/Whitehorse"
,
281
"America/Winnipeg"
,
282
"America/Yakutat"
,
283
"America/Yellowknife"
,
284
"Antarctica/Casey"
,
285
"Antarctica/Davis"
,
286
"Antarctica/DumontDUrville"
,
287
"Antarctica/Macquarie"
,
288
"Antarctica/Mawson"
,
289
"Antarctica/McMurdo"
,
290
"Antarctica/Palmer"
,
291
"Antarctica/Rothera"
,
292
"Antarctica/South_Pole"
,
293
"Antarctica/Syowa"
,
294
"Antarctica/Troll"
,
295
"Antarctica/Vostok"
,
296
"Arctic/Longyearbyen"
,
297
"Asia/Aden"
,
298
"Asia/Almaty"
,
299
"Asia/Amman"
,
300
"Asia/Anadyr"
,
301
"Asia/Aqtau"
,
302
"Asia/Aqtobe"
,
303
"Asia/Ashgabat"
,
304
"Asia/Ashkhabad"
,
305
"Asia/Atyrau"
,
306
"Asia/Baghdad"
,
307
"Asia/Bahrain"
,
308
"Asia/Baku"
,
309
"Asia/Bangkok"
,
310
"Asia/Barnaul"
,
311
"Asia/Beirut"
,
312
"Asia/Bishkek"
,
313
"Asia/Brunei"
,
314
"Asia/Calcutta"
,
315
"Asia/Chita"
,
316
"Asia/Choibalsan"
,
317
"Asia/Chongqing"
,
318
"Asia/Chungking"
,
319
"Asia/Colombo"
,
320
"Asia/Dacca"
,
321
"Asia/Damascus"
,
322
"Asia/Dhaka"
,
323
"Asia/Dili"
,
324
"Asia/Dubai"
,
325
"Asia/Dushanbe"
,
326
"Asia/Famagusta"
,
327
"Asia/Gaza"
,
328
"Asia/Harbin"
,
329
"Asia/Hebron"
,
330
"Asia/Ho_Chi_Minh"
,
331
"Asia/Hong_Kong"
,
332
"Asia/Hovd"
,
333
"Asia/Irkutsk"
,
334
"Asia/Istanbul"
,
335
"Asia/Jakarta"
,
336
"Asia/Jayapura"
,
337
"Asia/Jerusalem"
,
338
"Asia/Kabul"
,
339
"Asia/Kamchatka"
,
340
"Asia/Karachi"
,
341
"Asia/Kashgar"
,
342
"Asia/Kathmandu"
,
343
"Asia/Katmandu"
,
344
"Asia/Khandyga"
,
345
"Asia/Kolkata"
,
346
"Asia/Krasnoyarsk"
,
347
"Asia/Kuala_Lumpur"
,
348
"Asia/Kuching"
,
349
"Asia/Kuwait"
,
350
"Asia/Macao"
,
351
"Asia/Macau"
,
352
"Asia/Magadan"
,
353
"Asia/Makassar"
,
354
"Asia/Manila"
,
355
"Asia/Muscat"
,
356
"Asia/Nicosia"
,
357
"Asia/Novokuznetsk"
,
358
"Asia/Novosibirsk"
,
359
"Asia/Omsk"
,
360
"Asia/Oral"
,
361
"Asia/Phnom_Penh"
,
362
"Asia/Pontianak"
,
363
"Asia/Pyongyang"
,
364
"Asia/Qatar"
,
365
"Asia/Qyzylorda"
,
366
"Asia/Rangoon"
,
367
"Asia/Riyadh"
,
368
"Asia/Saigon"
,
369
"Asia/Sakhalin"
,
370
"Asia/Samarkand"
,
371
"Asia/Seoul"
,
372
"Asia/Shanghai"
,
373
"Asia/Singapore"
,
374
"Asia/Srednekolymsk"
,
375
"Asia/Taipei"
,
376
"Asia/Tashkent"
,
377
"Asia/Tbilisi"
,
378
"Asia/Tehran"
,
379
"Asia/Tel_Aviv"
,
380
"Asia/Thimbu"
,
381
"Asia/Thimphu"
,
382
"Asia/Tokyo"
,
383
"Asia/Tomsk"
,
384
"Asia/Ujung_Pandang"
,
385
"Asia/Ulaanbaatar"
,
386
"Asia/Ulan_Bator"
,
387
"Asia/Urumqi"
,
388
"Asia/Ust-Nera"
,
389
"Asia/Vientiane"
,
390
"Asia/Vladivostok"
,
391
"Asia/Yakutsk"
,
392
"Asia/Yangon"
,
393
"Asia/Yekaterinburg"
,
394
"Asia/Yerevan"
,
395
"Atlantic/Azores"
,
396
"Atlantic/Bermuda"
,
397
"Atlantic/Canary"
,
398
"Atlantic/Cape_Verde"
,
399
"Atlantic/Faeroe"
,
400
"Atlantic/Faroe"
,
401
"Atlantic/Jan_Mayen"
,
402
"Atlantic/Madeira"
,
403
"Atlantic/Reykjavik"
,
404
"Atlantic/South_Georgia"
,
405
"Atlantic/St_Helena"
,
406
"Atlantic/Stanley"
,
407
"Australia/ACT"
,
408
"Australia/Adelaide"
,
409
"Australia/Brisbane"
,
410
"Australia/Broken_Hill"
,
411
"Australia/Canberra"
,
412
"Australia/Currie"
,
413
"Australia/Darwin"
,
414
"Australia/Eucla"
,
415
"Australia/Hobart"
,
416
"Australia/LHI"
,
417
"Australia/Lindeman"
,
418
"Australia/Lord_Howe"
,
419
"Australia/Melbourne"
,
420
"Australia/North"
,
421
"Australia/NSW"
,
422
"Australia/Perth"
,
423
"Australia/Queensland"
,
424
"Australia/South"
,
425
"Australia/Sydney"
,
426
"Australia/Tasmania"
,
427
"Australia/Victoria"
,
428
"Australia/West"
,
429
"Australia/Yancowinna"
,
430
"Brazil/Acre"
,
431
"Brazil/DeNoronha"
,
432
"Brazil/East"
,
433
"Brazil/West"
,
434
"Canada/Atlantic"
,
435
"Canada/Central"
,
436
"Canada/Eastern"
,
437
"Canada/Mountain"
,
438
"Canada/Newfoundland"
,
439
"Canada/Pacific"
,
440
"Canada/Saskatchewan"
,
441
"Canada/Yukon"
,
442
"CET"
,
443
"Chile/Continental"
,
444
"Chile/EasterIsland"
,
445
"CST6CDT"
,
446
"Cuba"
,
447
"EET"
,
448
"Egypt"
,
449
"Eire"
,
450
"EST"
,
451
"EST5EDT"
,
452
"Etc/GMT"
,
453
"Etc/GMT-0"
,
454
"Etc/GMT-1"
,
455
"Etc/GMT-10"
,
456
"Etc/GMT-11"
,
457
"Etc/GMT-12"
,
458
"Etc/GMT-13"
,
459
"Etc/GMT-14"
,
460
"Etc/GMT-2"
,
461
"Etc/GMT-3"
,
462
"Etc/GMT-4"
,
463
"Etc/GMT-5"
,
464
"Etc/GMT-6"
,
465
"Etc/GMT-7"
,
466
"Etc/GMT-8"
,
467
"Etc/GMT-9"
,
468
"Etc/GMT+0"
,
469
"Etc/GMT+1"
,
470
"Etc/GMT+10"
,
471
"Etc/GMT+11"
,
472
"Etc/GMT+12"
,
473
"Etc/GMT+2"
,
474
"Etc/GMT+3"
,
475
"Etc/GMT+4"
,
476
"Etc/GMT+5"
,
477
"Etc/GMT+6"
,
478
"Etc/GMT+7"
,
479
"Etc/GMT+8"
,
480
"Etc/GMT+9"
,
481
"Etc/GMT0"
,
482
"Etc/Greenwich"
,
483
"Etc/UCT"
,
484
"Etc/Universal"
,
485
"Etc/UTC"
,
486
"Etc/Zulu"
,
487
"Europe/Amsterdam"
,
488
"Europe/Andorra"
,
489
"Europe/Astrakhan"
,
490
"Europe/Athens"
,
491
"Europe/Belfast"
,
492
"Europe/Belgrade"
,
493
"Europe/Berlin"
,
494
"Europe/Bratislava"
,
495
"Europe/Brussels"
,
496
"Europe/Bucharest"
,
497
"Europe/Budapest"
,
498
"Europe/Busingen"
,
499
"Europe/Chisinau"
,
500
"Europe/Copenhagen"
,
501
"Europe/Dublin"
,
502
"Europe/Gibraltar"
,
503
"Europe/Guernsey"
,
504
"Europe/Helsinki"
,
505
"Europe/Isle_of_Man"
,
506
"Europe/Istanbul"
,
507
"Europe/Jersey"
,
508
"Europe/Kaliningrad"
,
509
"Europe/Kiev"
,
510
"Europe/Kirov"
,
511
"Europe/Lisbon"
,
512
"Europe/Ljubljana"
,
513
"Europe/London"
,
514
"Europe/Luxembourg"
,
515
"Europe/Madrid"
,
516
"Europe/Malta"
,
517
"Europe/Mariehamn"
,
518
"Europe/Minsk"
,
519
"Europe/Monaco"
,
520
"Europe/Moscow"
,
521
"Europe/Nicosia"
,
522
"Europe/Oslo"
,
523
"Europe/Paris"
,
524
"Europe/Podgorica"
,
525
"Europe/Prague"
,
526
"Europe/Riga"
,
527
"Europe/Rome"
,
528
"Europe/Samara"
,
529
"Europe/San_Marino"
,
530
"Europe/Sarajevo"
,
531
"Europe/Saratov"
,
532
"Europe/Simferopol"
,
533
"Europe/Skopje"
,
534
"Europe/Sofia"
,
535
"Europe/Stockholm"
,
536
"Europe/Tallinn"
,
537
"Europe/Tirane"
,
538
"Europe/Tiraspol"
,
539
"Europe/Ulyanovsk"
,
540
"Europe/Uzhgorod"
,
541
"Europe/Vaduz"
,
542
"Europe/Vatican"
,
543
"Europe/Vienna"
,
544
"Europe/Vilnius"
,
545
"Europe/Volgograd"
,
546
"Europe/Warsaw"
,
547
"Europe/Zagreb"
,
548
"Europe/Zaporozhye"
,
549
"Europe/Zurich"
,
550
"Factory"
,
551
"GB"
,
552
"GB-Eire"
,
553
"GMT"
,
554
"GMT-0"
,
555
"GMT+0"
,
556
"GMT0"
,
557
"Greenwich"
,
558
"Hongkong"
,
559
"HST"
,
560
"Iceland"
,
561
"Indian/Antananarivo"
,
562
"Indian/Chagos"
,
563
"Indian/Christmas"
,
564
"Indian/Cocos"
,
565
"Indian/Comoro"
,
566
"Indian/Kerguelen"
,
567
"Indian/Mahe"
,
568
"Indian/Maldives"
,
569
"Indian/Mauritius"
,
570
"Indian/Mayotte"
,
571
"Indian/Reunion"
,
572
"Iran"
,
573
"Israel"
,
574
"Jamaica"
,
575
"Japan"
,
576
"Kwajalein"
,
577
"Libya"
,
578
"MET"
,
579
"Mexico/BajaNorte"
,
580
"Mexico/BajaSur"
,
581
"Mexico/General"
,
582
"MST"
,
583
"MST7MDT"
,
584
"Navajo"
,
585
"NZ"
,
586
"NZ-CHAT"
,
587
"Pacific/Apia"
,
588
"Pacific/Auckland"
,
589
"Pacific/Bougainville"
,
590
"Pacific/Chatham"
,
591
"Pacific/Chuuk"
,
592
"Pacific/Easter"
,
593
"Pacific/Efate"
,
594
"Pacific/Enderbury"
,
595
"Pacific/Fakaofo"
,
596
"Pacific/Fiji"
,
597
"Pacific/Funafuti"
,
598
"Pacific/Galapagos"
,
599
"Pacific/Gambier"
,
600
"Pacific/Guadalcanal"
,
601
"Pacific/Guam"
,
602
"Pacific/Honolulu"
,
603
"Pacific/Johnston"
,
604
"Pacific/Kiritimati"
,
605
"Pacific/Kosrae"
,
606
"Pacific/Kwajalein"
,
607
"Pacific/Majuro"
,
608
"Pacific/Marquesas"
,
609
"Pacific/Midway"
,
610
"Pacific/Nauru"
,
611
"Pacific/Niue"
,
612
"Pacific/Norfolk"
,
613
"Pacific/Noumea"
,
614
"Pacific/Pago_Pago"
,
615
"Pacific/Palau"
,
616
"Pacific/Pitcairn"
,
617
"Pacific/Pohnpei"
,
618
"Pacific/Ponape"
,
619
"Pacific/Port_Moresby"
,
620
"Pacific/Rarotonga"
,
621
"Pacific/Saipan"
,
622
"Pacific/Samoa"
,
623
"Pacific/Tahiti"
,
624
"Pacific/Tarawa"
,
625
"Pacific/Tongatapu"
,
626
"Pacific/Truk"
,
627
"Pacific/Wake"
,
628
"Pacific/Wallis"
,
629
"Pacific/Yap"
,
630
"Poland"
,
631
"Portugal"
,
632
"PRC"
,
633
"PST8PDT"
,
634
"ROC"
,
635
"ROK"
,
636
"Singapore"
,
637
"Turkey"
,
638
"UCT"
,
639
"Universal"
,
640
"US/Alaska"
,
641
"US/Aleutian"
,
642
"US/Arizona"
,
643
"US/Central"
,
644
"US/East-Indiana"
,
645
"US/Eastern"
,
646
"US/Hawaii"
,
647
"US/Indiana-Starke"
,
648
"US/Michigan"
,
649
"US/Mountain"
,
650
"US/Pacific"
,
651
"US/Samoa"
,
652
"UTC"
,
653
"W-SU"
,
654
"WET"
,
655
"Zulu"
656
];
657
}
658
}
Bitrix\Main\Type\DateTime
Definition
datetime.php:9
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup\Timezone
Definition
timezone.php:9
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup\Timezone\getDefaultValue
static getDefaultValue()
Definition
timezone.php:16
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup\Timezone\checkValue
static checkValue($value)
Definition
timezone.php:41
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup\Timezone\getAvailableValues
static getAvailableValues()
Definition
timezone.php:25
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup\Timezone\available
static available()
Definition
timezone.php:49
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup\Timezone\required
static required()
Definition
timezone.php:57
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\IAvailableFieldList
Definition
iavailablefieldlist.php:6
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\IField
Definition
ifield.php:6
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup
Definition
businessid.php:3
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields
modules
seo
lib
businesssuite
configuration
facebook
fields
setup
timezone.php
Создано системой
1.10.0