Beispiel #1
0
 public static function get()
 {
     if (!isset(self::$_instance)) {
         $c = __CLASS__;
         self::$_instance = new $c();
     }
     return self::$_instance;
 }
Beispiel #2
0
 /**
  * Constructor
  * 
  * @param void
  */
 public function __construct()
 {
     parent::__construct();
     $this->_model = new User();
     $this->_view = new UserView($this->_model);
     if (!PModules::moduleLoaded('user')) {
         throw new PException('Require module "user"!');
     }
 }
 protected function loadPModules($class_loader)
 {
     PSurveillance::setPoint('loading_modules');
     $Mod = PModules::get();
     $Mod->setModuleDir(SCRIPT_BASE . 'modules');
     $Mod->loadModules();
     PSurveillance::setPoint('modules_loaded');
 }