ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilMDLanguageItem Class Reference
+ Collaboration diagram for ilMDLanguageItem:

Public Member Functions

 __construct ($a_code)
 
 getLanguageCode ()
 
 __construct ($a_code)
 
 getLanguageCode ()
 
 _getPossibleLanguageCodes ()
 
 _getLanguages ()
 
 __construct ($a_code)
 
 getLanguageCode ()
 

Static Public Member Functions

static _getPossibleLanguageCodes ()
 
static _getLanguages ()
 
static _getPossibleLanguageCodes ()
 
static _getLanguages ()
 

Data Fields

 $language_code
 
 $possible_language_codes = array()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct() [1/3]

ilMDLanguageItem::__construct (   $a_code)

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

39  {
40  $this->language_code = $a_code;
41  }

◆ __construct() [2/3]

ilMDLanguageItem::__construct (   $a_code)

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

39  {
40  $this->language_code = $a_code;
41  }

◆ __construct() [3/3]

ilMDLanguageItem::__construct (   $a_code)

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

39  {
40  $this->language_code = $a_code;
41  }

Member Function Documentation

◆ _getLanguages() [1/3]

static ilMDLanguageItem::_getLanguages ( )
static

◆ _getLanguages() [2/3]

static ilMDLanguageItem::_getLanguages ( )
static

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

References $DIC, $lng, and _getPossibleLanguageCodes().

78  {
79  global $DIC;
80 
81  $lng = $DIC['lng'];
82 
83  $lng->loadLanguageModule("meta");
84 
85  $langs = array();
86  foreach (ilMDLanguageItem::_getPossibleLanguageCodes() as $lngcode) {
87  $langs[$lngcode] = $lng->txt("meta_l_" . $lngcode);
88  }
89  asort($langs);
90  return $langs;
91  }
global $DIC
Definition: saml.php:7
$lng
+ Here is the call graph for this function:

◆ _getLanguages() [3/3]

ilMDLanguageItem::_getLanguages ( )

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

References $lng, and _getPossibleLanguageCodes().

78  {
79  global $lng;
80 
81  $lng->loadLanguageModule("meta");
82 
83  $langs = array();
84  foreach (ilMDLanguageItem::_getPossibleLanguageCodes() as $lngcode) {
85  $langs[$lngcode] = $lng->txt("meta_l_" . $lngcode);
86  }
87  asort($langs);
88  return $langs;
89  }
$lng
+ Here is the call graph for this function:

◆ _getPossibleLanguageCodes() [1/3]

static ilMDLanguageItem::_getPossibleLanguageCodes ( )
static

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

58  {
59  return array("aa","ab","af","am","ar","as","ay","az","ba","be","bg","bh",
60  "bi","bn","bo","br","ca","co","cs","cy","da","de","dz","el","en","eo",
61  "es","et","eu","fa","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu",
62  "ha","he","hi","hr","hu","hy","ia","ie","ik","id","is","it","iu","ja",
63  "jv","ka","kk","kl","km","kn","ko","ks","ku","ky","la","ln",
64  "lo","lt","lv","mg","mi","mk","ml","mn","mo","mr","ms","mt",
65  "my","na","ne","nl","no","oc","om","or","pa","pl","ps","pt",
66  "qu","rm","rn","ro",
67  "ru","rw",
68  "sa","sd","sg","sh","si","sk","sl","sm","sn","so","sq","sr","ss","st",
69  "su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts",
70  "tt","tw","ug","uk","ur","uz","vi","vo","wo","xh","yi","yo","za","zh",
71  "zu");
72  }

◆ _getPossibleLanguageCodes() [2/3]

ilMDLanguageItem::_getPossibleLanguageCodes ( )

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

58  {
59  return array("aa","ab","af","am","ar","as","ay","az","ba","be","bg","bh",
60  "bi","bn","bo","br","ca","co","cs","cy","da","de","dz","el","en","eo",
61  "es","et","eu","fa","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu",
62  "ha","he","hi","hr","hu","hy","ia","ie","ik","id","is","it","iu","ja",
63  "jv","ka","kk","kl","km","kn","ko","ks","ku","ky","la","ln",
64  "lo","lt","lv","mg","mi","mk","ml","mn","mo","mr","ms","mt",
65  "my","na","ne","nl","no","oc","om","or","pa","pl","ps","pt",
66  "qu","rm","rn","ro",
67  "ru","rw",
68  "sa","sd","sg","sh","si","sk","sl","sm","sn","so","sq","sr","ss","st",
69  "su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts",
70  "tt","tw","ug","uk","ur","uz","vi","vo","wo","xh","yi","yo","za","zh",
71  "zu");
72  }

◆ _getPossibleLanguageCodes() [3/3]

static ilMDLanguageItem::_getPossibleLanguageCodes ( )
static

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

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

58  {
59  return array("aa","ab","af","am","ar","as","ay","az","ba","be","bg","bh",
60  "bi","bn","bo","br","ca","co","cs","cy","da","de","dz","el","en","eo",
61  "es","et","eu","fa","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu",
62  "ha","he","hi","hr","hu","hy","ia","ie","ik","id","is","it","iu","ja",
63  "jv","ka","kk","kl","km","kn","ko","ks","ku","ky","la","ln",
64  "lo","lt","lv","mg","mi","mk","ml","mn","mo","mr","ms","mt",
65  "my","na","ne","nl","no","oc","om","or","pa","pl","ps","pt",
66  "qu","rm","rn","ro",
67  "ru","rw",
68  "sa","sd","sg","sh","si","sk","sl","sm","sn","so","sq","sr","ss","st",
69  "su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts",
70  "tt","tw","ug","uk","ur","uz","vi","vo","wo","xh","yi","yo","za","zh",
71  "zu");
72  }
+ Here is the caller graph for this function:

◆ getLanguageCode() [1/3]

ilMDLanguageItem::getLanguageCode ( )

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

References $lang, $language_code, and _getPossibleLanguageCodes().

45  {
47  if (in_array($this->language_code, $lang)) {
48  return $this->language_code;
49  }
50  return false;
51  }
for($i=1; $i<=count($kw_cases_sel); $i+=1) $lang
Definition: langwiz.php:349
+ Here is the call graph for this function:

◆ getLanguageCode() [2/3]

ilMDLanguageItem::getLanguageCode ( )

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

References $lang, $language_code, and _getPossibleLanguageCodes().

45  {
47  if (in_array($this->language_code, $lang)) {
48  return $this->language_code;
49  }
50  return false;
51  }
for($i=1; $i<=count($kw_cases_sel); $i+=1) $lang
Definition: langwiz.php:349
+ Here is the call graph for this function:

◆ getLanguageCode() [3/3]

ilMDLanguageItem::getLanguageCode ( )

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

References $lang, $language_code, and _getPossibleLanguageCodes().

45  {
47  if (in_array($this->language_code, $lang)) {
48  return $this->language_code;
49  }
50  return false;
51  }
for($i=1; $i<=count($kw_cases_sel); $i+=1) $lang
Definition: langwiz.php:349
+ Here is the call graph for this function:

Field Documentation

◆ $language_code

ilMDLanguageItem::$language_code

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

Referenced by getLanguageCode().

◆ $possible_language_codes

ilMDLanguageItem::$possible_language_codes = array()

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


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