コード例 #1
0
ファイル: Sales.php プロジェクト: mnapier/opensourcepos
 public function __construct()
 {
     parent::__construct('sales');
     $this->load->library('sale_lib');
     $this->load->library('barcode_lib');
     $this->load->library('email_lib');
 }
コード例 #2
0
ファイル: ajw.php プロジェクト: httvncoder/ajw-recipe-search
 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;
     }
 }
コード例 #3
0
ファイル: Reports.php プロジェクト: gerarldlee/opensourcepos
 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');
 }
コード例 #4
0
ファイル: Home.php プロジェクト: gerarldlee/opensourcepos
 public function __construct()
 {
     parent::__construct();
 }
コード例 #5
0
ファイル: Messages.php プロジェクト: mnapier/opensourcepos
 public function __construct()
 {
     parent::__construct('messages');
     $this->load->library('sms_lib');
 }
コード例 #6
0
ファイル: Config.php プロジェクト: gerarldlee/opensourcepos
 public function __construct()
 {
     parent::__construct('config');
     $this->load->library('barcode_lib');
 }
コード例 #7
0
 public function __construct()
 {
     parent::__construct('receivings');
     $this->load->library('receiving_lib');
     $this->load->library('barcode_lib');
 }
コード例 #8
0
ファイル: Item_kits.php プロジェクト: mnapier/opensourcepos
 public function __construct()
 {
     parent::__construct('item_kits');
 }
コード例 #9
0
ファイル: Items.php プロジェクト: gerarldlee/opensourcepos
 public function __construct()
 {
     parent::__construct('items');
     $this->load->library('item_lib');
 }
コード例 #10
0
ファイル: Giftcards.php プロジェクト: mnapier/opensourcepos
 public function __construct()
 {
     parent::__construct('giftcards');
 }
コード例 #11
0
ファイル: Persons.php プロジェクト: mnapier/opensourcepos
 public function __construct($module_id = NULL)
 {
     parent::__construct($module_id);
 }