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


PHP base::__construct方法代码示例

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


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

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     $this->admin_logged_in();
     $this->load->model('m_admin');
     $this->load->library('cart');
 }
开发者ID:AlvaCorp,项目名称:BDA-Jaya-Accounting-System,代码行数:7,代码来源:dashboard.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     //only for member
     $this->load->model('m_admin');
     $this->load->model('m_course');
 }
开发者ID:ahmadfuad,项目名称:linuxourse,代码行数:7,代码来源:manage.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->dbLaiyuan = $this->load_model('laiyuan');
     $this->dbLeimu = $this->load_model('leimu');
     $this->dbSubyuan = $this->load_model('yuanlei');
 }
开发者ID:dalinhuang,项目名称:xxmeitu,代码行数:7,代码来源:laiyuan.php

示例4: usercontrol

 function usercontrol()
 {
     parent::__construct();
     $this->load('user');
     //note client 仅在需要时初始化 $this->app
     $this->app = $this->cache['apps'][UC_APPID];
 }
开发者ID:lz1988,项目名称:stourwebcms,代码行数:7,代码来源:user.php

示例5:

 function __construct()
 {
     //overwrite base function before construct
     parent::__construct(TRUE);
     $this->load->helper(array('form', 'url'));
     $this->load->library('form_validation');
 }
开发者ID:ressphere,项目名称:cb_iloveproperty,代码行数:7,代码来源:policy.php

示例6: control

 function control()
 {
     parent::__construct();
     $authkey = md5(UC_KEY . $_SERVER['HTTP_USER_AGENT'] . $this->onlineip);
     $this->time = time();
     $seccodeauth = getgpc('seccodeauth');
     $seccode = $this->authcode($seccodeauth, 'DECODE', $authkey);
     //$seccode = rand(100000, 999999);
     //$this->setcookie('uc_secc', $this->authcode($seccode."\t".$this->time, 'ENCODE'));
     @header("Expires: -1");
     @header("Cache-Control: no-store, private, post-check=0, pre-check=0, max-age=0", FALSE);
     @header("Pragma: no-cache");
     include_once UC_ROOT . 'lib/seccode.class.php';
     $code = new seccode();
     $code->code = $seccode;
     $code->type = 0;
     $code->width = 70;
     $code->height = 21;
     $code->background = 0;
     $code->adulterate = 1;
     $code->ttf = 1;
     $code->angle = 0;
     $code->color = 1;
     $code->size = 0;
     $code->shadow = 1;
     $code->animator = 0;
     $code->fontpath = UC_ROOT . 'images/fonts/';
     $code->datapath = UC_ROOT . 'images/';
     $code->includepath = '';
     $code->display();
 }
开发者ID:softhui,项目名称:discuz,代码行数:31,代码来源:seccode.php

示例7: crontab

 function crontab()
 {
     parent::__construct();
     $this->load('bind_log');
     $this->load('question');
     $argv = $this->getCmdArgv();
     // 获取命令行参数
     //根据传入的第一个变量确定执行的方法
     if ($argv['operation'] == "order_process") {
         $this->order_process();
     } else {
         if ($argv['operation'] == "default_assess") {
             $num = intval($argv['num']);
             $limitNum = $num > 0 ? $num : 100;
             $this->default_assess($limitNum);
         } else {
             if ($argv['operation'] == "view_update") {
                 $num = intval($argv['num']);
                 $limitNum = $num > 0 ? $num : 100;
                 $this->view_update($limitNum);
             } else {
                 if ($argv['operation'] == "history_map") {
                     $year = intval($argv['start']);
                     $this->history_map($year);
                 }
             }
         }
     }
 }
开发者ID:eappl,项目名称:prototype,代码行数:29,代码来源:crontab.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     //only for member
     // $this->memberOnly();
     $this->load->model('m_command');
 }
开发者ID:ahmadfuad,项目名称:linuxourse,代码行数:7,代码来源:regex.php

示例9: creditcontrol

 function creditcontrol()
 {
     parent::__construct();
     $this->init_input();
     $this->load('note');
     $this->load('misc');
 }
开发者ID:pan289091315,项目名称:Discuz,代码行数:7,代码来源:credit.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     $this->dbPic = $this->load_model('pic');
     $this->dbLeimu = $this->load_model('leimu');
     $this->dbTuji = $this->load_model('tuji');
 }
开发者ID:dalinhuang,项目名称:xxmeitu,代码行数:7,代码来源:tupian.php

示例11: load

 function __construct()
 {
     parent::__construct();
     $this->check();
     $this->app = load('m/app');
     $this->user_app = new user_app();
 }
开发者ID:grewumi,项目名称:erp.jianqu.org,代码行数:7,代码来源:sys.php

示例12: __construct

 public function __construct($id = 0)
 {
     parent::__construct();
     if ($id > 0) {
         $this->load($id);
     }
 }
开发者ID:BGCX261,项目名称:zjxt-svn-to-git,代码行数:7,代码来源:user.class.php

示例13: __construct

 public function __construct($config)
 {
     parent::__construct();
     //require semantics3 library
     require_once FCPATH . 'system/application/libraries/semantics3/Semantics3.php';
     $this->_requestor = new Semantics3_Products($config['key'], $config['secret']);
 }
开发者ID:kostya1017,项目名称:our,代码行数:7,代码来源:semantics.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     //only for member
     $this->load->model('m_discussion');
     $this->load->library('user_agent');
 }
开发者ID:ahmadfuad,项目名称:linuxourse,代码行数:7,代码来源:discussion.php

示例15: tagcontrol

 function tagcontrol()
 {
     parent::__construct();
     $this->init_input();
     $this->load('tag');
     $this->load('misc');
 }
开发者ID:eduNeusoft,项目名称:weixin,代码行数:7,代码来源:tag.php


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