當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Secure_area類代碼示例

本文整理匯總了PHP中Secure_area的典型用法代碼示例。如果您正苦於以下問題:PHP Secure_area類的具體用法?PHP Secure_area怎麽用?PHP Secure_area使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Secure_area類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

 function __construct()
 {
     parent::__construct('reports');
     $this->load->helper('report');
     $this->has_profit_permission = $this->Employee->has_module_action_permission('reports', 'show_profit', $this->Employee->get_logged_in_employee_info()->person_id);
     $this->has_cost_price_permission = $this->Employee->has_module_action_permission('reports', 'show_cost_price', $this->Employee->get_logged_in_employee_info()->person_id);
 }
開發者ID:ekchanthorn,項目名稱:demo_loan,代碼行數:7,代碼來源:reports.php

示例2:

 function __construct()
 {
     parent::__construct();
     $this->load->library('sale_lib');
     $this->load->model('Item');
     $this->load->model('Cash');
 }
開發者ID:jericmillena,項目名稱:pos_cafe,代碼行數:7,代碼來源:cashier.php

示例3: __construct

 public function __construct()
 {
     parent::__construct('sales');
     $this->load->library('sale_lib');
     $this->sale_lib->nameS = $this->sale_lib->get_mode() . '_';
     $this->load->helper('report');
 }
開發者ID:gocanto,項目名稱:gocanto-pos,代碼行數:7,代碼來源:sales.php

示例4:

 function __construct()
 {
     parent::__construct('sales');
     $this->load->library('sale_lib');
     $this->load->library('barcode_lib');
     $this->Sale->create_sales_items_temp_table();
 }
開發者ID:salikur,項目名稱:opensourcepos,代碼行數:7,代碼來源:sales.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('Respuesta_model');
     if (!$this->usuario_model->has_permission($this->session->userdata('perfil'), 4)) {
         redirect('no_access/' . $module_id);
     }
 }
開發者ID:aeduc,項目名稱:mideteed,代碼行數:8,代碼來源:Respuesta.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     if ($key = $this->Appconfig->get('mc_api_key')) {
         $this->load->library('MailChimp', array($key), 'MailChimp');
     } else {
         show_error($this->lang->line('common_mailchimp_dashboard_rejected'));
     }
 }
開發者ID:relwell,項目名稱:PHP-Point-Of-Sale,代碼行數:9,代碼來源:mailchimpdash.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('ensayo_model');
     $this->load->model('alumno_model');
     $this->load->model('prueba_model');
     $this->load->model('hojarespuesta_model');
     $this->load->model('asignacionprueba_model');
     $this->load->helper('date');
     if (!$this->usuario_model->has_permission($this->session->userdata('perfil'), 1)) {
         redirect('no_access/' . $module_id);
     }
 }
開發者ID:aeduc,項目名稱:mideteed,代碼行數:13,代碼來源:Alumno.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('Prueba_model');
     $this->load->model('alumno_model');
     $this->load->model('colegio_model');
     $this->load->model('profesor_model');
     $this->load->model('registros_model');
     $this->load->model('Asignacionprueba_model');
     $this->load->model('comunas_model');
     $this->load->model('usuario_model');
     if (!$this->usuario_model->has_permission($this->session->userdata('perfil'), 2)) {
         redirect('no_access/' . $module_id);
     }
 }
開發者ID:aeduc,項目名稱:mideteed,代碼行數:15,代碼來源:Administrator.php

示例9: explode

 function __construct()
 {
     parent::__construct('reports');
     $method_name = $this->uri->segment(2);
     $exploder = explode('_', $method_name);
     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");
     $employee_id = $this->Employee->get_logged_in_employee_info()->person_id;
     // check access to report submodule
     if (sizeof($exploder) > 1 && !$this->Employee->has_grant('reports_' . $submodule_id, $employee_id)) {
         redirect('no_access/reports/reports_' . $submodule_id);
     }
     $this->load->helper('report');
 }
開發者ID:zerubbabel,項目名稱:pos,代碼行數:15,代碼來源:reports.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('prueba_model');
     $this->load->model('profesor_model');
     $this->load->model('alumno_model');
     $this->load->model('hojarespuesta_model');
     $this->load->model('asignacionprueba_model');
     $this->load->model('respuesta_model');
     $this->load->model('ensayo_model');
     $this->load->model('colegio_model');
     $this->load->model('nivel_model');
     $this->load->model('estadistica_model');
     if (!$this->usuario_model->has_permission($this->session->userdata('perfil'), 3)) {
         redirect('no_access/' . $module_id);
     }
 }
開發者ID:aeduc,項目名稱:mideteed,代碼行數:17,代碼來源:Profesor.php

示例11: __construct

 public function __construct()
 {
     parent::__construct('config');
 }
開發者ID:gocanto,項目名稱:gocanto-pos,代碼行數:4,代碼來源:config.php

示例12:

 function __construct()
 {
     parent::__construct('item_kits');
 }
開發者ID:jericmillena,項目名稱:pos_cafe,代碼行數:4,代碼來源:item_kits.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
 }
開發者ID:gocanto,項目名稱:gocanto-pos,代碼行數:4,代碼來源:home.php

示例14:

 function __construct($module_id = null)
 {
     parent::__construct($module_id);
 }
開發者ID:MaizerGomes,項目名稱:opensourcepos,代碼行數:4,代碼來源:person_controller.php

示例15:

 function __construct()
 {
     parent::__construct('reports');
     $this->load->helper('report');
 }
開發者ID:MaizerGomes,項目名稱:PHP-Point-Of-Sale,代碼行數:5,代碼來源:reports.php


注:本文中的Secure_area類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。