ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilMD5295LanguageItem Class Reference
+ Collaboration diagram for ilMD5295LanguageItem:

Public Member Functions

 __construct ($a_code)
 
 getLanguageCode ()
 

Static Public Member Functions

static _getPossibleLanguageCodes ()
 
static _getLanguages ()
 

Data Fields

 $language_code
 
 $possible_language_codes = array()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilMD5295LanguageItem::__construct (   $a_code)

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

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

Member Function Documentation

◆ _getLanguages()

static ilMD5295LanguageItem::_getLanguages ( )
static

Definition at line 77 of file class.ilMD5295LanguageItem.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 (ilMD5295LanguageItem::_getPossibleLanguageCodes() as $lngcode) {
87  $langs[$lngcode] = $lng->txt("meta_l_" . $lngcode);
88  }
89  asort($langs);
90  return $langs;
91  }
$lng
$DIC
Definition: xapitoken.php:46
+ Here is the call graph for this function:

◆ _getPossibleLanguageCodes()

static ilMD5295LanguageItem::_getPossibleLanguageCodes ( )
static

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

Referenced by _getLanguages(), and getLanguageCode().

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()

ilMD5295LanguageItem::getLanguageCode ( )

Definition at line 44 of file class.ilMD5295LanguageItem.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  }
$lang
Definition: xapiexit.php:8
+ Here is the call graph for this function:

Field Documentation

◆ $language_code

ilMD5295LanguageItem::$language_code

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

Referenced by getLanguageCode().

◆ $possible_language_codes

ilMD5295LanguageItem::$possible_language_codes = array()

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


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