ILIAS  release_7 Revision v7.30-3-g800a261c036
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.

78 {
79 global $DIC;
80
81 $lng = $DIC['lng'];
82
83 $lng->loadLanguageModule("meta");
84
85 $langs = array();
87 $langs[$lngcode] = $lng->txt("meta_l_" . $lngcode);
88 }
89 asort($langs);
90 return $langs;
91 }
global $DIC
Definition: goto.php:24
$lng

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

+ Here is the call graph for this function:

◆ _getPossibleLanguageCodes()

static ilMD5295LanguageItem::_getPossibleLanguageCodes ( )
static

Definition at line 57 of file class.ilMD5295LanguageItem.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 }

Referenced by _getLanguages(), and getLanguageCode().

+ Here is the caller graph for this function:

◆ getLanguageCode()

ilMD5295LanguageItem::getLanguageCode ( )

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

45 {
47 if (in_array($this->language_code, $lang)) {
49 }
50 return false;
51 }
$lang
Definition: xapiexit.php:8

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

+ 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: