Esempio n. 1
0
 public static function getInstance()
 {
     if (self::$instance === NULL) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Esempio n. 2
0
 /**
  * @return MainMenu
  */
 public static function getInstance($controller, $action)
 {
     if (null === self::$instance) {
         self::$instance = new self::$className($controller, $action);
     }
     return self::$instance;
 }