Exemple #1
0
 public static function getInstance()
 {
     if (is_null(self::$instance)) {
         self::$instance = new Translator();
     }
     return self::$instance;
 }
 /**
  * Get Translator
  *
  * Provides access to the Translator singleton
  *
  * @return Translator The translator object
  */
 public static function getTranslator()
 {
     if (self::$instance == null) {
         self::$instance = new Translator();
     }
     return self::$instance;
 }