本文整理汇总了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');
}