Ejemplo n.º 1
0
 /**
  * Returns class instance
  * @param $includeCache bool
  * @return BOL_LanguageService
  */
 public static function getInstance($includeCache = true)
 {
     if (!isset(self::$classInstance)) {
         try {
             self::$classInstance = OW::getClassInstance(self::class, $includeCache);
         } catch (ReflectionException $ex) {
             self::$classInstance = new self($includeCache);
         }
     }
     return self::$classInstance;
 }
Ejemplo n.º 2
0
 /**
  * Returns class instance
  *
  * @return BOL_LanguageService
  */
 public static function getInstance($includeCache = true)
 {
     if (!isset(self::$classInstance)) {
         self::$classInstance = new self($includeCache);
     }
     return self::$classInstance;
 }