1 | <?php |
||
16 | class CalendarModelParser extends StringValueParser { |
||
17 | |||
18 | const FORMAT_NAME = 'calendar-model'; |
||
19 | |||
20 | /** |
||
21 | * Option to provide localized calendar model names for unlocalization. Must be an array mapping |
||
22 | * localized calendar model names to URIs. |
||
23 | * |
||
24 | * @see TimeFormatter::OPT_CALENDARNAMES |
||
25 | */ |
||
26 | const OPT_CALENDAR_MODEL_URIS = 'calendar-model-uris'; |
||
27 | |||
28 | /** |
||
29 | * @deprecated Do not use. |
||
30 | * |
||
31 | * Regex pattern constant matching the parable calendar models |
||
32 | * should be used as an insensitive to match all cases |
||
33 | * |
||
34 | * TODO: How crucial is it that this regex is in sync with the list below? |
||
35 | */ |
||
36 | const MODEL_PATTERN = '(Gregorian|Julian|)'; |
||
37 | |||
38 | /** |
||
39 | * @param ParserOptions|null $options |
||
40 | */ |
||
41 | 26 | public function __construct( ParserOptions $options = null ) { |
|
46 | |||
47 | /** |
||
48 | * @param string $value |
||
49 | * |
||
50 | * @throws ParseException |
||
51 | * @return string |
||
52 | */ |
||
53 | 23 | protected function stringParse( $value ) { |
|
68 | |||
69 | /** |
||
70 | * @param string $value |
||
71 | * |
||
72 | * @throws ParseException |
||
73 | * @return string|null |
||
74 | */ |
||
75 | 20 | private function getCalendarModelUriFromKey( $value ) { |
|
91 | |||
92 | } |
||
93 |