本文整理汇总了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');
}
示例2: __construct
public function __construct()
{
parent::__construct();
//only for member
$this->load->model('m_admin');
$this->load->model('m_course');
}
示例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');
}
示例4: usercontrol
function usercontrol()
{
parent::__construct();
$this->load('user');
//note client 仅在需要时初始化 $this->app
$this->app = $this->cache['apps'][UC_APPID];
}
示例5:
function __construct()
{
//overwrite base function before construct
parent::__construct(TRUE);
$this->load->helper(array('form', 'url'));
$this->load->library('form_validation');
}
示例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();
}
示例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);
}
}
}
}
}
示例8: __construct
public function __construct()
{
parent::__construct();
//only for member
// $this->memberOnly();
$this->load->model('m_command');
}
示例9: creditcontrol
function creditcontrol()
{
parent::__construct();
$this->init_input();
$this->load('note');
$this->load('misc');
}
示例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');
}
示例11: load
function __construct()
{
parent::__construct();
$this->check();
$this->app = load('m/app');
$this->user_app = new user_app();
}
示例12: __construct
public function __construct($id = 0)
{
parent::__construct();
if ($id > 0) {
$this->load($id);
}
}
示例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']);
}
示例14: __construct
public function __construct()
{
parent::__construct();
//only for member
$this->load->model('m_discussion');
$this->load->library('user_agent');
}
示例15: tagcontrol
function tagcontrol()
{
parent::__construct();
$this->init_input();
$this->load('tag');
$this->load('misc');
}