当前位置: 首页>>代码示例>>PHP>>正文


PHP Auth_Controller::__construct方法代码示例

本文整理汇总了PHP中Auth_Controller::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Auth_Controller::__construct方法的具体用法?PHP Auth_Controller::__construct怎么用?PHP Auth_Controller::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Auth_Controller的用法示例。


在下文中一共展示了Auth_Controller::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     $this->userrepository = new UserRepository();
     $this->generaluserrepository = new GeneralUserRepository();
     $this->adminrepository = new AdminRepository();
 }
开发者ID:pratishshr,项目名称:Aawaaj,代码行数:7,代码来源:GeneralUser.php

示例2: redirect

 function __construct()
 {
     parent::__construct();
     if (!$this->User_model->has_relation_access(element('loginname', $this->session->userdata('user')))) {
         redirect(site_url('proj'), 'refresh');
     }
 }
开发者ID:revlis7,项目名称:pp,代码行数:7,代码来源:relation.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->userrepository = new UserRepository();
     $this->adminrepository = new AdminRepository();
     $this->organizationrepository = new OrganizationRepository();
 }
开发者ID:pratishshr,项目名称:Aawaaj,代码行数:7,代码来源:Organization.php

示例4: __construct

 public function __construct($request, $response)
 {
     ignore_user_abort(TRUE);
     parent::__construct($request, $response);
     self::$db_prefix = Database::instance('default')->table_prefix();
     self::$db_charset = Core::config('database.default.charset');
 }
开发者ID:JeffPedro,项目名称:project-garage-sale,代码行数:7,代码来源:update.php

示例5: redirect

 function __construct()
 {
     parent::__construct();
     if ($this->ion_auth->is_admin() === FALSE) {
         redirect('/');
     }
 }
开发者ID:avenirer,项目名称:ion_auth_installation,代码行数:7,代码来源:Register.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->fundrepository = new FundRepository();
     $this->payrepository = new PayRepository();
     $this->adminrepository = new AdminRepository();
 }
开发者ID:pratishshr,项目名称:Aawaaj,代码行数:7,代码来源:Fund.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     $this->userrepository = new UserRepository();
     $this->welfarerepository = new WelfareRepository();
     $this->adminrepository = new AdminRepository();
 }
开发者ID:pratishshr,项目名称:Aawaaj,代码行数:7,代码来源:Welfare.php

示例8: redirect

 function __construct()
 {
     parent::__construct();
     if (!$this->ion_auth->in_group('admin')) {
         $this->postal->add('You are not allowed to visit the Users page', 'error');
         redirect('dashboard');
     }
 }
开发者ID:avenirer,项目名称:Base-CI,代码行数:8,代码来源:Users.php

示例9: redirect

 function __construct()
 {
     parent::__construct();
     $this->load->model('opportunity_source_model');
     if (!$this->ion_auth->in_group('admin')) {
         $this->postal->add('You are not allowed to visit the opportunity sources page', 'error');
         redirect('dashboard');
     }
 }
开发者ID:NaszvadiG,项目名称:avecrm,代码行数:9,代码来源:Opportunity_sources.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->library('parser');
     $this->parser->set_theme('default');
     $this->data = array();
     $this->data['title'] = '';
     $this->data['keyword'] = '';
     $this->data['description'] = '';
 }
开发者ID:puppylet,项目名称:codecuibap,代码行数:10,代码来源:MY_Controller.php

示例11: redirect

 function __construct()
 {
     parent::__construct(false);
     if ($this->login->is_login() === true) {
         $redurl = $this->input->get('redurl', true);
         if ($redurl != '') {
             redirect($redurl, 'refresh');
         }
         redirect(site_url('tsmain'), 'refresh');
     }
 }
开发者ID:revlis7,项目名称:pp,代码行数:11,代码来源:auth.php

示例12: redirect

 function __construct()
 {
     parent::__construct();
     if (!$this->ion_auth->in_group('admin')) {
         $this->postal->add('You are not allowed to visit the MASTER page', 'error');
         redirect('admin');
     }
     $this->load->model('website_model');
     $this->load->library('form_validation');
     $this->load->helper('form');
 }
开发者ID:NaszvadiG,项目名称:avecrm,代码行数:11,代码来源:Master.php

示例13: __construct

 public function __construct()
 {
     // Parent __construct
     parent::__construct();
     // Load Settings
     $this->settings_model->load('blog');
     // Load Model
     $this->load->model('backend/bloger_model');
     // Load Helper
     $this->load->helper('text');
     $this->load->helper('pagination');
 }
开发者ID:xemmex,项目名称:codeigniter3-website-template,代码行数:12,代码来源:Bloger.php

示例14: redirect

 function __construct()
 {
     parent::__construct();
     $this->load->model('opportunity_model');
     $this->load->model('conversation_model');
     $this->load->model('contact_model');
     /*
           if(!$this->ion_auth->in_group('admin'))
           {
               $this->postal->add('You are not allowed to visit the Users page','error');
               redirect('dashboard');
           }*/
 }
开发者ID:avenirer,项目名称:avecrm,代码行数:13,代码来源:Opportunities.php

示例15: array

 /**
  *
  * Contruct that checks you are loged in before nothing else happens!
  */
 function __construct(Request $request, Response $response)
 {
     parent::__construct($request, $response);
     //we check if that action can be done, if not redirected to the index
     if (!$this->allowed_crud_action()) {
         $url = Route::get('oc-panel')->uri(array('controller' => $this->request->controller(), 'action' => 'index'));
         $this->request->redirect($url);
     }
     //url used in the breadcrumb
     $url_bread = Route::url('oc-panel', array('controller' => $this->request->controller()));
     Breadcrumbs::add(Breadcrumb::factory()->set_title(ucfirst(__($this->_orm_model)))->set_url($url_bread));
     //action
     Breadcrumbs::add(Breadcrumb::factory()->set_title(ucfirst(__($this->request->action()))));
 }
开发者ID:Wildboard,项目名称:WbWebApp,代码行数:18,代码来源:crud.php


注:本文中的Auth_Controller::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。