Пример #1
0
 /**
  * Main Instance
  *
  * @staticvar 	array 	$instance
  * @return 		The one true instance
  */
 public static function instance()
 {
     if (!isset(self::$instance)) {
         self::$instance = new self();
         self::$instance->init();
     }
     return self::$instance;
 }
Пример #2
0
 /**
  * Main Instance
  *
  * @staticvar 	array 	$instance
  * @return 		The one true instance
  */
 public static function instance()
 {
     if (!isset(self::$instance)) {
         self::$instance = new self();
         self::$instance->actions();
         self::$instance->filters();
     }
     return self::$instance;
 }