ILIAS  release_8 Revision v8.23
ilMDLanguageItem Class Reference
+ Collaboration diagram for ilMDLanguageItem:

Public Member Functions

 __construct (string $a_code)
 
 getLanguageCode ()
 

Static Public Member Functions

static _getPossibleLanguageCodes ()
 
static _getLanguages ()
 

Private Attributes

string $language_code
 

Detailed Description

Definition at line 31 of file class.ilMDLanguageItem.php.

Constructor & Destructor Documentation

◆ __construct()

ilMDLanguageItem::__construct ( string  $a_code)

Definition at line 35 of file class.ilMDLanguageItem.php.

36  {
37  $this->language_code = $a_code;
38  }

Member Function Documentation

◆ _getLanguages()

static ilMDLanguageItem::_getLanguages ( )
static

◆ _getPossibleLanguageCodes()

static ilMDLanguageItem::_getPossibleLanguageCodes ( )
static
Returns
string[]

Definition at line 52 of file class.ilMDLanguageItem.php.

Referenced by ilMDUtilSelect\_getLanguageSelect(), ilMobMultiSrtUpload\getMultiSrtFiles(), and ilObjMediaObject\getMultiSrtFiles().

52  : array
53  {
54  return array(
55  "aa",
56  "ab",
57  "af",
58  "am",
59  "ar",
60  "as",
61  "ay",
62  "az",
63  "ba",
64  "be",
65  "bg",
66  "bh",
67  "bi",
68  "bn",
69  "bo",
70  "br",
71  "ca",
72  "co",
73  "cs",
74  "cy",
75  "da",
76  "de",
77  "dz",
78  "el",
79  "en",
80  "eo",
81  "es",
82  "et",
83  "eu",
84  "fa",
85  "fi",
86  "fj",
87  "fo",
88  "fr",
89  "fy",
90  "ga",
91  "gd",
92  "gl",
93  "gn",
94  "gu",
95  "ha",
96  "he",
97  "hi",
98  "hr",
99  "hu",
100  "hy",
101  "ia",
102  "ie",
103  "ik",
104  "id",
105  "is",
106  "it",
107  "iu",
108  "ja",
109  "jv",
110  "ka",
111  "kk",
112  "kl",
113  "km",
114  "kn",
115  "ko",
116  "ks",
117  "ku",
118  "ky",
119  "la",
120  "ln",
121  "lo",
122  "lt",
123  "lv",
124  "mg",
125  "mi",
126  "mk",
127  "ml",
128  "mn",
129  "mo",
130  "mr",
131  "ms",
132  "mt",
133  "my",
134  "na",
135  "ne",
136  "nl",
137  "no",
138  "oc",
139  "om",
140  "or",
141  "pa",
142  "pl",
143  "ps",
144  "pt",
145  "qu",
146  "rm",
147  "rn",
148  "ro",
149  "ru",
150  "rw",
151  "sa",
152  "sd",
153  "sg",
154  "sh",
155  "si",
156  "sk",
157  "sl",
158  "sm",
159  "sn",
160  "so",
161  "sq",
162  "sr",
163  "ss",
164  "st",
165  "su",
166  "sv",
167  "sw",
168  "ta",
169  "te",
170  "tg",
171  "th",
172  "ti",
173  "tk",
174  "tl",
175  "tn",
176  "to",
177  "tr",
178  "ts",
179  "tt",
180  "tw",
181  "ug",
182  "uk",
183  "ur",
184  "uz",
185  "vi",
186  "vo",
187  "wo",
188  "xh",
189  "yi",
190  "yo",
191  "za",
192  "zh",
193  "zu"
194  );
195  }
+ Here is the caller graph for this function:

◆ getLanguageCode()

ilMDLanguageItem::getLanguageCode ( )

Definition at line 40 of file class.ilMDLanguageItem.php.

References $lang, and $language_code.

40  : string
41  {
42  $lang = self::_getPossibleLanguageCodes();
43  if (in_array($this->language_code, $lang)) {
44  return $this->language_code;
45  }
46  return '';
47  }
$lang
Definition: xapiexit.php:26

Field Documentation

◆ $language_code

string ilMDLanguageItem::$language_code
private

Definition at line 33 of file class.ilMDLanguageItem.php.

Referenced by getLanguageCode().


The documentation for this class was generated from the following file: