本文整理汇总了PHP中Secure_area::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Secure_area::__construct方法的具体用法?PHP Secure_area::__construct怎么用?PHP Secure_area::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Secure_area
的用法示例。
在下文中一共展示了Secure_area::__construct方法的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);
}
示例2:
function __construct()
{
parent::__construct();
$this->load->library('sale_lib');
$this->load->model('Item');
$this->load->model('Cash');
}
示例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');
}
示例4:
function __construct()
{
parent::__construct('sales');
$this->load->library('sale_lib');
$this->load->library('barcode_lib');
$this->Sale->create_sales_items_temp_table();
}
示例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);
}
}
示例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'));
}
}
示例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);
}
}
示例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);
}
}
示例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');
}
示例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);
}
}
示例11: __construct
public function __construct()
{
parent::__construct('config');
}
示例12:
function __construct()
{
parent::__construct('item_kits');
}
示例13: __construct
public function __construct()
{
parent::__construct();
}
示例14:
function __construct($module_id = null)
{
parent::__construct($module_id);
}
示例15:
function __construct()
{
parent::__construct('reports');
$this->load->helper('report');
}