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}; } }
public static function GetInstance() { if (!self::$QXC instanceof QXCore) { self::$QXC = new self(); } return self::$QXC; }