Example #1
0
 public function __construct()
 {
     parent::__construct();
     # initialize the Perms controller
     $this->_model = new Perms();
     $this->activeSection = 'perms';
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     # initialize the auth controller
     $this->req_id = isset($this->req_id) ? $this->req_id : '';
     $this->_model = new Auth(is_numeric($this->req_id) ? $this->req_id : NULL);
     $this->activeSection = 'auth';
 }
Example #3
0
 public function __construct()
 {
     parent::__construct();
     if (!isset($this->cache) || !is_array($this->cache)) {
         static::raiseError(__METHOD__ . '(), $cache property is not an array!', true);
         return;
     }
     if (!isset($this->cache_index) || !is_array($this->cache_index)) {
         static::raiseError(__METHOD__ . '(), $cache_index property is not an array!', true);
         return;
     }
 }
Example #4
0
 public function __construct()
 {
     parent::__construct();
     # initialize the Prefs controller
     /*
             $this->params['uid'] = (isset($this->params['uid'])) ? $this->params['uid'] : '';
     
             $this->_model = new Prefs((is_numeric($this->params['uid']) ? $this->params['uid'] : ''));
     */
     $this->_model = new Prefs();
     $this->activeSection = 'prefs';
 }
Example #5
0
 public function __construct()
 {
     if (!$this->removeExpiredJobs()) {
         static::raiseError('removeExpiredJobs() returned false!', true);
         return false;
     }
     try {
         $this->registerHandler('delete-request', array($this, 'handleDeleteRequest'));
         $this->registerHandler('save-request', array($this, 'handleSaveRequest'));
     } catch (\Exception $e) {
         static::raiseError(__METHOD__ . '(), failed to register handlers!', true);
         return false;
     }
     // Define the JSON errors.
     $constants = get_defined_constants(true);
     $this->json_errors = array();
     foreach ($constants["json"] as $name => $value) {
         if (!strncmp($name, "JSON_ERROR_", 11)) {
             $this->json_errors[$value] = $name;
         }
     }
     parent::__construct();
     return true;
 }
Example #6
0
 public function __construct(SearchModel $model)
 {
     parent::__construct($model);
     $this->model = $model;
 }
Example #7
0
 public function __construct(ProfileModel $model)
 {
     parent::__construct($model);
     $this->model = $model;
 }
Example #8
0
 public function __construct(DefaultModel $model)
 {
     parent::__construct($model);
     $this->model = $model;
 }
 public function __construct(SubdescriptionModel $model)
 {
     parent::__construct($model);
     $this->model = $model;
 }
Example #10
0
 public function __construct(CheckOrderModel $model)
 {
     parent::__construct($model);
     $this->model = $model;
 }