當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。