Example #1
0
 public static function getInstance()
 {
     if (self::$objectInstance === null) {
         self::$objectInstance = new ISO_Language();
     }
     return self::$objectInstance;
 }
Example #2
0
 /**
  * The function returns language name by its code.
  * 
  * @static
  * @access public
  * @param string $code The language code.
  * @return string The name.
  */
 public static function getName($code)
 {
     return ISO_Language::getInstance()->get($code);
 }