本文整理匯總了PHP中common::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP common::__construct方法的具體用法?PHP common::__construct怎麽用?PHP common::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類common
的用法示例。
在下文中一共展示了common::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
public function __construct()
{
parent::__construct();
$this->member_lib->adminCheck();
$this->load->model('liveschedule_model');
$this->load->model('popupschedule_dt_model');
}
示例2: __construct
public function __construct()
{
parent::__construct();
$this->load->model("news_model");
$this->load->model("view_model");
$this->load->model("mypage_model");
}
示例3: login
/**
* 用戶登陸
* @param string $username
* @param string $password
* @throws Exception
*/
public function login($username, $password)
{
try {
if (empty($username)) {
throw new Exception('請填寫用戶名');
}
if (empty($password)) {
throw new Exception('請填寫密碼');
}
$username = addslashes($username);
$password = md5(addslashes($password));
$mysql = C('mysql');
if (!($result = $mysql->fetchOne('id', 'user', "name='{$username}' and pass='{$password}'"))) {
throw new Exception('登陸失敗');
}
$_SESSION['uid'] = $result['id'];
$_SESSION['username'] = $username;
parent::__construct();
$this->check_permission(__FUNCTION__);
jump('登陸成功', 'admin.php', true);
} catch (Exception $e) {
echo $e->getMessage();
jump('', 'login.html');
}
}
示例4:
function __construct($request)
{
parent::__construct($request);
$this->page_title = "ログイン";
$this->header_file = "index_head.tpl";
// 基本処理オブジェクト生成
$this->oMgr = new index_mgr();
}
示例5:
function __construct($request)
{
parent::__construct($request);
$this->page_title = "マスタメンテナンス";
$this->header_file = "msts_head.tpl";
// 基本処理オブジェクト生成
$this->oMgr = new common_mgr();
}
示例6:
function __construct($request)
{
parent::__construct($request);
$this->page_title = "入退室管理システム登録情報検索";
$this->header_file = "card_search_head.tpl";
// 基本処理オブジェクト生成
$this->oMgr = new card_search_mgr();
}
示例7:
function __construct($request)
{
parent::__construct($request);
$this->page_title = "VPN検索";
$this->header_file = "vpns_search_head.tpl";
// 基本処理オブジェクト生成
$this->oMgr = new vpns_search_mgr();
}
示例8:
function __construct($request)
{
parent::__construct($request);
$this->page_title = "メールアカウント設定";
$this->header_file = "init_mail_head.tpl";
// 基本処理オブジェクト生成
$this->oMgr = new init_mail_mgr();
}
示例9:
function __construct($request)
{
parent::__construct($request);
$this->page_title = "システムエラー";
$this->header_file = "system_error_head.tpl";
// 基本処理オブジェクト生成
$this->oMgr = new system_error_mgr();
}
示例10:
function __construct($request)
{
parent::__construct($request);
$this->page_title = "利用者登録";
$this->header_file = "users_regist_head.tpl";
// 基本処理オブジェクト生成
$this->oMgr = new users_regist_mgr();
}
示例11: __construct
public function __construct()
{
parent::__construct();
$this->load->model("content_model");
$this->load->model("tag_model");
$this->load->model("program_model");
$this->load->model("view_model");
}
示例12:
function __construct($request)
{
parent::__construct($request);
$this->page_title = "プリンタドライバ名割り當て";
$this->header_file = "printer_driver_add_head.tpl";
// 基本処理オブジェクト生成
$this->oMgr = new printer_driver_add_mgr();
}
示例13:
function __construct($request)
{
parent::__construct($request);
$this->page_title = "メインメニュー";
$this->header_file = "menu_head.tpl";
// 基本処理オブジェクト生成
$this->oMgr = new menu_mgr();
}
示例14:
function __construct($request)
{
parent::__construct($request);
$this->page_title = "マイページ";
$this->header_file = "mypage_head.tpl";
// 基本処理オブジェクト生成
$this->oMgr = new mypage_mgr();
}
示例15: __construct
public function __construct()
{
parent::__construct();
$this->member_lib->adminCheck();
$this->load->model('mainfocus_model');
$this->load->model('content_model');
$this->load->model('program_model');
}