本文整理汇总了PHP中Common::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Common::__construct方法的具体用法?PHP Common::__construct怎么用?PHP Common::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Common
的用法示例。
在下文中一共展示了Common::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
parent::__construct();
if ($this->config['SYS_MEMBER']) {
$this->adminMsg('系统禁止了会员功能');
}
}
示例2:
function __construct($that)
{
parent::__construct();
$this->that = $that;
$this->SetupSomeStuff();
$this->AskAndYeShallBeRewarded();
}
示例3: __construct
/**
* __construct
*/
public function __construct()
{
parent::__construct();
if ($this->my_login->checkLogin($this->arrCommon, URL_ADMIN_LOGIN)) {
$this->access();
}
}
示例4: __construct
public function __construct()
{
parent::__construct();
$this->load('cache');
$this->load('logging');
$this->dbh = new Database('slave');
}
示例5:
function __construct()
{
error_reporting(0);
parent::__construct();
$this->load->helper('sql_game', 'sql_player');
$this->load->library(array('facebook'));
}
示例6: __construct
public function __construct()
{
parent::__construct();
if (!in_array($this->action, array('ajaxswfupload', 'ueditor_upload')) && (!$this->session->is_set('user_id') && !get_cookie('member_id'))) {
$this->attMsg(lang('att-13'));
}
$this->dir = 'uploadfiles/';
}
示例7: __construct
public function __construct($params = array())
{
parent::__construct($params);
$this->setTitle($params['title']);
$this->setSubTitle($params['subTitle']);
$this->setTickerText($params['tickerText']);
$this->setVibrate($params['vibrate']);
}
示例8: __construct
public function __construct($name, $logger = null)
{
parent::__construct($logger);
$this->mockName = $name;
$this->expects = array();
$this->stubs = array();
$this->prefixError = "mock [{$name}]: ";
self::$mocks[] = $this;
}
示例9: __construct
/**
* 构造函数
*/
public function __construct()
{
parent::__construct();
$file = FCPATH . 'config/weixin.php';
$this->wx = is_file($file) ? string2array(file_get_contents($file)) : array();
define("TOKEN", $this->wx['token']);
define('WECHAT_THEME', SITE_PATH . basename(VIEW_DIR) . '/weixin/');
$this->cache->cache_dir = APP_ROOT . 'cache/weixin/';
}
示例10:
function __construct(&$DB = false, $id = null, $fieldName = null)
{
if ($DB && is_object($DB)) {
self::$DB =& $DB;
}
if ($id) {
parent::__construct($id, $fieldName);
}
}
示例11: __construct
protected function __construct($conf_nm = '')
{
//なぜかprivateにしたら怒られるためprotectedに設定
parent::__construct($conf_nm);
//シングルトンパターンを採用し、1回しかこの場所を通らないことを前提。
define('TWITTER_CONSUMER_KEY', $this->config['api_key']);
define('TWITTER_CONSUMER_SECRET', $this->config['api_secret']);
define('OAUTH_TOKEN', $this->config['access_token']);
define('OAUTH_SECRET', $this->config['access_token_secret']);
}
示例12: __construct
public function __construct($mockName, $methodName, $logger = null)
{
parent::__construct($logger);
$this->mockName = $mockName;
$this->methodName = $methodName;
$this->args = null;
$this->hash = null;
$this->valueToReturn = null;
$this->exceptionToRaise = null;
$this->prefixError = "Stub [{$methodName}]: ";
}
示例13: exit
function __construct()
{
parent::__construct();
if (!isset($_GET['gid']) or empty($_GET['gid'])) {
exit("Invalid");
} else {
$this->gid = $_GET['gid'];
}
$this->load->helper('sql_game', 'sql_player');
$this->load->library(array('facebook'));
}
示例14: exit
function __construct()
{
//error_reporting(0);
parent::__construct();
$this->load->helper(array('sql_player', 'sql_game', 'sql_suit'));
if (isset($_GET['id'])) {
$this->id = $_GET['id'];
} else {
exit('Please Specify a valid card');
}
}
示例15: __construct
public function __construct($model)
{
parent::__construct();
$this->model = $model;
$this->smarty = new Smarty();
$this->smarty->template_dir = __BASEDIR__ . "app/" . __APP__ . "/view/templates/";
$this->smarty->compile_dir = __BASEDIR__ . "app/" . __APP__ . "/view/templates_c/";
$this->smarty->config_dir = __BASEDIR__ . "app/" . __APP__ . "/view/config/";
$this->smarty->cache_dir = __BASEDIR__ . "app/" . __APP__ . "/view/cache/";
$this->smarty->assign("ticket", md5(__APP__));
}