Exemple #1
0
 public function __construct()
 {
     parent::__construct('sales');
     $this->load->library('sale_lib');
     $this->load->library('barcode_lib');
     $this->load->library('email_lib');
 }
Exemple #2
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('yummly_model');
     $this->load->model('settings_model');
     $this->settings_model->initialize($this->data['user']['id']);
     // make settings available to views
     $this->data['settings'] = $this->settings_model->getSettingsArray();
     // get and remap options (diets, allergies, cuisines, holidays, etc.. and giant ingredient array)
     foreach ($this->settings_model->getOptionsArray() as $key => $value) {
         $this->data['settings'][$key] = $value;
     }
 }
Exemple #3
0
 public function __construct()
 {
     parent::__construct('reports');
     $method_name = $this->uri->segment(2);
     $exploder = explode('_', $method_name);
     if (sizeof($exploder) > 1) {
         preg_match('/(?:inventory)|([^_.]*)(?:_graph|_row)?$/', $method_name, $matches);
         preg_match('/^(.*?)([sy])?$/', array_pop($matches), $matches);
         $submodule_id = $matches[1] . (count($matches) > 2 ? $matches[2] : 's');
         // check access to report submodule
         if (!$this->Employee->has_grant('reports_' . $submodule_id, $this->Employee->get_logged_in_employee_info()->person_id)) {
             redirect('no_access/reports/reports_' . $submodule_id);
         }
     }
     $this->load->helper('report');
 }
Exemple #4
0
 public function __construct()
 {
     parent::__construct();
 }
Exemple #5
0
 public function __construct()
 {
     parent::__construct('messages');
     $this->load->library('sms_lib');
 }
Exemple #6
0
 public function __construct()
 {
     parent::__construct('config');
     $this->load->library('barcode_lib');
 }
 public function __construct()
 {
     parent::__construct('receivings');
     $this->load->library('receiving_lib');
     $this->load->library('barcode_lib');
 }
Exemple #8
0
 public function __construct()
 {
     parent::__construct('item_kits');
 }
Exemple #9
0
 public function __construct()
 {
     parent::__construct('items');
     $this->load->library('item_lib');
 }
Exemple #10
0
 public function __construct()
 {
     parent::__construct('giftcards');
 }
Exemple #11
0
 public function __construct($module_id = NULL)
 {
     parent::__construct($module_id);
 }