Example #1
0
 public static function getInstance()
 {
     if (!is_object(self::$_instance)) {
         self::$_instance = new FrontController();
     }
     return self::$_instance;
 }
Example #2
0
 public static function getInstance()
 {
     if (!self::$_instance instanceof self) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
 public static function getInstance()
 {
     if (!self::$_instance instanceof self) {
         self::$_instance = new FrontController();
     }
     return self::$_instance;
 }
 /**
  * @static
  * @return FrontController
  */
 public static function getInstance()
 {
     if (null === self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Example #5
0
 public static function getInstance()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
 public static function getInstance()
 {
     //инициализация FrontController
     if (!self::$_instance instanceof FrontController) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Example #7
0
 public static function getInstance()
 {
     // получение экземпляра класса FrontController
     if (!self::$_instance instanceof self) {
         // проверка наличия в переменной $_instance экземпляра класса FrontController
         self::$_instance = new self();
     }
     // создание экземпляра класса FrontController
     return self::$_instance;
 }