ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
Constants.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 class Constants
24 {
30  public const string DURATION_REGEX = '/^P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)D)' .
31  '?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)(?:.\d+)?S)?)?$/';
32 
40  protected const string DATETIME_REGEX = '/^(\d{4})(?:-(\d{2})(?:-(\d{2})' .
41  '(?:T(\d{2})(?::(\d{2})(?::(\d{2})(?:\.(\d+)(Z|[+\-]' .
42  '\d{2}(?::\d{2})?)?)?)?)?)?)?)?$/';
43 
47  protected const array LANGUAGES = [
48  "aa",
49  "ab",
50  "af",
51  "am",
52  "ar",
53  "as",
54  "ay",
55  "az",
56  "ba",
57  "be",
58  "bg",
59  "bh",
60  "bi",
61  "bn",
62  "bo",
63  "br",
64  "ca",
65  "co",
66  "cs",
67  "cy",
68  "da",
69  "de",
70  "dz",
71  "el",
72  "en",
73  "eo",
74  "es",
75  "et",
76  "eu",
77  "fa",
78  "fi",
79  "fj",
80  "fo",
81  "fr",
82  "fy",
83  "ga",
84  "gd",
85  "gl",
86  "gn",
87  "gu",
88  "ha",
89  "he",
90  "hi",
91  "hr",
92  "hu",
93  "hy",
94  "ia",
95  "ie",
96  "ik",
97  "id",
98  "is",
99  "it",
100  "iu",
101  "ja",
102  "jv",
103  "ka",
104  "kk",
105  "kl",
106  "km",
107  "kn",
108  "ko",
109  "ks",
110  "ku",
111  "ky",
112  "la",
113  "ln",
114  "lo",
115  "lt",
116  "lv",
117  "mg",
118  "mi",
119  "mk",
120  "ml",
121  "mn",
122  "mo",
123  "mr",
124  "ms",
125  "mt",
126  "my",
127  "na",
128  "ne",
129  "nl",
130  "no",
131  "oc",
132  "om",
133  "or",
134  "pa",
135  "pl",
136  "ps",
137  "pt",
138  "qu",
139  "rm",
140  "rn",
141  "ro",
142  "ru",
143  "rw",
144  "sa",
145  "sd",
146  "sg",
147  "sh",
148  "si",
149  "sk",
150  "sl",
151  "sm",
152  "sn",
153  "so",
154  "sq",
155  "sr",
156  "ss",
157  "st",
158  "su",
159  "sv",
160  "sw",
161  "ta",
162  "te",
163  "tg",
164  "th",
165  "ti",
166  "tk",
167  "tl",
168  "tn",
169  "to",
170  "tr",
171  "ts",
172  "tt",
173  "tw",
174  "ug",
175  "uk",
176  "ur",
177  "uz",
178  "vi",
179  "vo",
180  "wo",
181  "xh",
182  "yi",
183  "yo",
184  "za",
185  "zh",
186  "zu",
187  "xx"
188  ];
189 }
const string DATETIME_REGEX
This monstrosity makes sure datetimes conform to the format given by LOM, and picks out the relevant ...
Definition: Constants.php:40
const string DURATION_REGEX
This monstrosity makes sure durations conform to the format given by LOM, and picks out the relevant ...
Definition: Constants.php:30
const array LANGUAGES
Note that &#39;xx&#39; should be translated to &#39;none&#39;.
Definition: Constants.php:47