Example #1
0
 function __construct()
 {
     $this->conf = array('model' => 'Timeoff_model', 'path' => 'staff/timeoffs', 'entity' => 'timeoff');
     parent::__construct(USER_MODEL::LEVEL_STAFF);
     $this->{$this->model} = $this->auth->user()->timeoff;
     $this->{$this->model}->user = $this->auth->user();
     $this->data['fields'] = $this->process_fields();
 }
Example #2
0
 function __construct()
 {
     $this->conf = array('model' => 'User_model', 'path' => 'admin/users', 'entity' => 'user', 'export' => 'users');
     parent::__construct(User_model::LEVEL_ADMIN);
     $CI =& ci_get_instance();
     if ($CI->app_conf->get('login_with') != 'username') {
         unset($this->{$this->model}->validation['username']);
     }
 }
Example #3
0
 function __construct()
 {
     $this->conf = array('model' => 'Shift_model', 'path' => 'admin/shifts', 'entity' => 'shift', 'after_save' => 'shift');
     parent::__construct(User_model::LEVEL_MANAGER);
     /* check how many locations do we have */
     $lm = new Location_Model();
     $location_count = $lm->count();
     $this->data['location_count'] = $location_count;
 }
Example #4
0
 function __construct()
 {
     $this->conf = array('model' => 'Shift_model', 'path' => 'staff/shifts', 'entity' => 'shift');
     parent::__construct(USER_MODEL::LEVEL_STAFF);
     $this->{$this->model} = $this->auth->user()->shift;
     $this->{$this->model}->user = $this->auth->user();
     //		$this->data['fields'] = $this->process_fields();
     //		parent::__construct( USER_MODEL::LEVEL_STAFF, 'staff/shifts' );
     /* check how many locations do we have */
     $lm = new Location_Model();
     $location_count = $lm->count();
     $this->data['location_count'] = $location_count;
 }
Example #5
0
 function __construct()
 {
     $this->conf = array('model' => 'Logaudit_model', 'path' => 'logaudit/admin', 'entity' => 'logaudit');
     parent::__construct(USER_MODEL::LEVEL_MANAGER);
 }
Example #6
0
 function __construct()
 {
     $this->conf = array('model' => 'Location_model', 'path' => 'admin/locations', 'entity' => 'location');
     parent::__construct();
 }
Example #7
0
 function __construct()
 {
     $this->conf = array('model' => 'Shift_template_model', 'path' => 'admin/shift_templates', 'entity' => 'shift_template');
     parent::__construct(User_model::LEVEL_ADMIN);
 }