Example #1
0
 function __get($name)
 {
     if (isset($name) && ctype_alnum($name)) {
         switch (strtolower($name)) {
             case 'model':
                 $this->{$name} = $this->loadModel();
                 break;
             case 'view':
                 $this->{$name} = $this->loadView();
                 break;
             default:
                 parent::__get($name);
                 break;
         }
         return $this->{$name};
     }
 }
Example #2
0
 public static function GetInstance()
 {
     if (!self::$QXC instanceof QXCore) {
         self::$QXC = new self();
     }
     return self::$QXC;
 }