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

Public Member Functions

 __construct ($a_code)
 
 getLanguageCode ()
 
 __construct ($a_code)
 
 getLanguageCode ()
 
 __construct ($a_code)
 
 getLanguageCode ()
 

Data Fields

 $language_code
 
 $possible_language_codes = array()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct() [1/3]

ilMDLanguageElement::__construct (   $a_code)

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

39  {
40  $this->language_code = $a_code;
41 
42  $this->possible_language_codes = array("aa","ab","af","am","ar","as","ay","az","ba","be","bg","bh",
43  "bi","bn","bo","br","ca","co","cs","cy","da","de","dz","el","en","eo",
44  "es","et","eu","fa","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu",
45  "ha","he","hi","hr","hu","hy","ia","ie","ik","id","is","it","iu","ja",
46  "jv","ka","kk","kl","km","kn","ko","ks","ku","ky","la","ln",
47  "lo","lt","lv","mg","mi","mk","ml","mn","mo","mr","ms","mt",
48  "my","na","ne","nl","no","oc","om","or","pa","pl","ps","pt",
49  "qu","rm","rn","ro",
50  "ru","rw",
51  "sa","sd","sg","sh","si","sk","sl","sm","sn","so","sq","sr","ss","st",
52  "su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts",
53  "tt","tw","ug","uk","ur","uz","vi","vo","wo","xh","yi","yo","za","zh",
54  "zu");
55  }

◆ __construct() [2/3]

ilMDLanguageElement::__construct (   $a_code)

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

39  {
40  $this->language_code = $a_code;
41 
42  $this->possible_language_codes = array("aa","ab","af","am","ar","as","ay","az","ba","be","bg","bh",
43  "bi","bn","bo","br","ca","co","cs","cy","da","de","dz","el","en","eo",
44  "es","et","eu","fa","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu",
45  "ha","he","hi","hr","hu","hy","ia","ie","ik","id","is","it","iu","ja",
46  "jv","ka","kk","kl","km","kn","ko","ks","ku","ky","la","ln",
47  "lo","lt","lv","mg","mi","mk","ml","mn","mo","mr","ms","mt",
48  "my","na","ne","nl","no","oc","om","or","pa","pl","ps","pt",
49  "qu","rm","rn","ro",
50  "ru","rw",
51  "sa","sd","sg","sh","si","sk","sl","sm","sn","so","sq","sr","ss","st",
52  "su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts",
53  "tt","tw","ug","uk","ur","uz","vi","vo","wo","xh","yi","yo","za","zh",
54  "zu");
55  }

◆ __construct() [3/3]

ilMDLanguageElement::__construct (   $a_code)

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

39  {
40  $this->language_code = $a_code;
41 
42  $this->possible_language_codes = array("aa","ab","af","am","ar","as","ay","az","ba","be","bg","bh",
43  "bi","bn","bo","br","ca","co","cs","cy","da","de","dz","el","en","eo",
44  "es","et","eu","fa","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu",
45  "ha","he","hi","hr","hu","hy","ia","ie","ik","id","is","it","iu","ja",
46  "jv","ka","kk","kl","km","kn","ko","ks","ku","ky","la","ln",
47  "lo","lt","lv","mg","mi","mk","ml","mn","mo","mr","ms","mt",
48  "my","na","ne","nl","no","oc","om","or","pa","pl","ps","pt",
49  "qu","rm","rn","ro",
50  "ru","rw",
51  "sa","sd","sg","sh","si","sk","sl","sm","sn","so","sq","sr","ss","st",
52  "su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts",
53  "tt","tw","ug","uk","ur","uz","vi","vo","wo","xh","yi","yo","za","zh",
54  "zu");
55  }

Member Function Documentation

◆ getLanguageCode() [1/3]

ilMDLanguageElement::getLanguageCode ( )

Definition at line 58 of file class.ilMDLanguageElement.php.

References $language_code.

59  {
60  if (in_array($this->language_code, $this->possible_language_codes)) {
61  return $this->language_code;
62  }
63  return false;
64  }

◆ getLanguageCode() [2/3]

ilMDLanguageElement::getLanguageCode ( )

Definition at line 58 of file class.ilMDLanguageElement.php.

References $language_code.

59  {
60  if (in_array($this->language_code, $this->possible_language_codes)) {
61  return $this->language_code;
62  }
63  return false;
64  }

◆ getLanguageCode() [3/3]

ilMDLanguageElement::getLanguageCode ( )

Definition at line 58 of file class.ilMDLanguageElement.php.

References $language_code.

59  {
60  if (in_array($this->language_code, $this->possible_language_codes)) {
61  return $this->language_code;
62  }
63  return false;
64  }

Field Documentation

◆ $language_code

ilMDLanguageElement::$language_code

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

Referenced by getLanguageCode().

◆ $possible_language_codes

ilMDLanguageElement::$possible_language_codes = array()

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


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