本文整理汇总了PHP中Admin::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Admin::__construct方法的具体用法?PHP Admin::__construct怎么用?PHP Admin::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Admin
的用法示例。
在下文中一共展示了Admin::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
parent::__construct();
if ($this->site_config['diy_url'] != 2) {
$this->show_message('生成静态功能是收费的', 2, 'http://www.xiaocms.com/buy/');
}
}
示例2: __construct
public function __construct()
{
parent::__construct();
if (isset($_POST['submit_add'])) {
$this->AddNewUser();
} else {
if (isset($_GET['action']) && $_GET['action'] == "edit" && isset($_GET['id']) && is_numeric($_GET['id'])) {
if (isset($_POST['submit_edit'])) {
$this->UpdateUser();
} else {
$info_array = array("where" => "user_id='" . $_GET['id'] . "'");
$this->data = $this->GetSingleRecord("user_master", $info_array);
}
} else {
if (isset($_GET['action']) && $_GET['action'] == "status" && isset($_GET['status']) && is_numeric($_GET['status']) && isset($_GET['id']) && $_GET['id'] > 1) {
$info_array = array("active_status" => $_GET['status']);
$records = $this->UpdateRecord("user_master", $info_array, "user_id='" . $_GET['id'] . "'");
if ($records > 0) {
$_SESSION['admin_response'] = array("status" => "success", "message" => " Active status has been changed successfully.");
}
$this->RedirectPage($this->pagefilename);
} else {
if (isset($_GET['action']) && $_GET['action'] == "delete" && isset($_GET['id']) && $_GET['id'] > 1) {
$records = $this->DeleteRecord("user_master", "user_id='" . $_GET['id'] . "'");
if ($records > 0) {
$_SESSION['admin_response'] = array("status" => "success", "message" => " Record has been deleted successfully.");
}
$this->RedirectPage($this->pagefilename);
} else {
$this->DisplayData();
}
}
}
}
}
示例3: __construct
public function __construct()
{
parent::__construct();
$this->StatisticData();
$this->LatestUsers();
$this->LatestMessages();
}
示例4: __construct
public function __construct()
{
parent::__construct();
$this->load->helper(array('url', 'form'));
$this->load->library(array('session'));
$this->load->model('M_tags');
}
示例5: __construct
public function __construct()
{
parent::__construct();
$this->load->model("admin/model_vendor_user");
$this->load->model("admin/model_vendor_user_region");
$this->config->load("auth");
}
示例6: __construct
public function __construct($arrayRestFolder = NULL)
{
parent::__construct($arrayRestFolder);
if ($arrayRestFolder != NULL) {
$this->arrayRestFolder = $arrayRestFolder;
$this->arrayVariable = Navigation::getVariableArraySlug($this->arrayRestFolder);
}
$this->module = DataHandler::getValueByArrayIndex($this->arrayVariable, "module") ? DataHandler::getValueByArrayIndex($this->arrayVariable, "module") : "theme";
switch ($this->module) {
case "style":
$this->DAO = StyleDAO::getInstance();
break;
case "technique":
$this->DAO = TechniqueDAO::getInstance();
break;
case "type":
$this->DAO = TypeDAO::getInstance();
break;
case "format":
$this->DAO = FormatDAO::getInstance();
break;
case "composition":
$this->DAO = CompositionDAO::getInstance();
break;
case "theme":
$this->DAO = ThemeDAO::getInstance();
break;
default:
$this->DAO = ThemeDAO::getInstance();
break;
}
}
示例7: __construct
public function __construct()
{
parent::__construct();
$this->CI =& get_instance();
$this->load->library('form_validation');
$this->load->model('config_model');
}
示例8: __construct
public function __construct()
{
parent::__construct();
if (!defined('XIAOCMS_MEMBER')) {
$this->show_message('没有安装会员模块,请去XiaoCms下载安装', 2, 'http://www.xiaocms.com');
}
}
示例9: __construct
public function __construct()
{
parent::__construct();
$this->link = $this->model('linkage');
$this->level = 0;
$this->childnode = array();
}
示例10: __construct
public function __construct()
{
parent::__construct();
//Load Dependencies
$this->load->model("admin/model_pm");
$this->load->model("admin/model_pm_history");
}
示例11: __construct
public function __construct()
{
parent::__construct();
\CI::auth()->check_access('Admin', true);
\CI::load()->model('Locations');
\CI::lang()->load('locations');
}
示例12:
function __construct()
{
parent::__construct();
\CI::auth()->check_access('Admin', true);
\CI::lang()->load('categories');
\CI::load()->model('Categories');
}
示例13: __construct
public function __construct()
{
parent::__construct();
$this->block = $this->model('block');
$this->type = array(1 => lang('a-blo-0'), 2 => lang('a-blo-1'), 3 => lang('a-blo-2'));
$this->view->assign('type', $this->type);
}
示例14: __construct
public function __construct()
{
parent::__construct();
\CI::auth()->check_access('Admin', true);
\CI::load()->model(['Categories', 'Products', 'Pages']);
\CI::lang()->load('sitemap');
}
示例15: __construct
public function __construct($path)
{
parent::__construct($path);
$this->CheckAction();
//权限验证
$this->update_path = ROOT . 'upgrade/';
}