当前位置: 首页>>代码示例>>PHP>>正文


PHP Admin::__construct方法代码示例

本文整理汇总了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/');
     }
 }
开发者ID:43431655,项目名称:qizhongbao,代码行数:7,代码来源:createhtml.php

示例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();
                 }
             }
         }
     }
 }
开发者ID:bharat383,项目名称:phpminiframework,代码行数:35,代码来源:User.class.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->StatisticData();
     $this->LatestUsers();
     $this->LatestMessages();
 }
开发者ID:bharat383,项目名称:phpminiframework,代码行数:7,代码来源:Dashboard.class.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->helper(array('url', 'form'));
     $this->load->library(array('session'));
     $this->load->model('M_tags');
 }
开发者ID:singgihsap,项目名称:elearning,代码行数:7,代码来源:Tags.php

示例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");
 }
开发者ID:ridwanskaterock,项目名称:coc-ri-comunnity,代码行数:7,代码来源:Vendor_user.php

示例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;
     }
 }
开发者ID:reytuty,项目名称:facil,代码行数:32,代码来源:Attribute.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     $this->CI =& get_instance();
     $this->load->library('form_validation');
     $this->load->model('config_model');
 }
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:7,代码来源:aliexpress.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     if (!defined('XIAOCMS_MEMBER')) {
         $this->show_message('没有安装会员模块,请去XiaoCms下载安装', 2, 'http://www.xiaocms.com');
     }
 }
开发者ID:43431655,项目名称:qizhongbao,代码行数:7,代码来源:member.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $this->link = $this->model('linkage');
     $this->level = 0;
     $this->childnode = array();
 }
开发者ID:kennyhonghui,项目名称:zhuoxi,代码行数:7,代码来源:LinkageController.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     //Load Dependencies
     $this->load->model("admin/model_pm");
     $this->load->model("admin/model_pm_history");
 }
开发者ID:ridwanskaterock,项目名称:coc-ri-comunnity,代码行数:7,代码来源:Pm.php

示例11: __construct

 public function __construct()
 {
     parent::__construct();
     \CI::auth()->check_access('Admin', true);
     \CI::load()->model('Locations');
     \CI::lang()->load('locations');
 }
开发者ID:lekhangyahoo,项目名称:gonline,代码行数:7,代码来源:AdminLocations.php

示例12:

 function __construct()
 {
     parent::__construct();
     \CI::auth()->check_access('Admin', true);
     \CI::lang()->load('categories');
     \CI::load()->model('Categories');
 }
开发者ID:buzkall,项目名称:GoCart3,代码行数:7,代码来源:AdminCategories.php

示例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);
 }
开发者ID:rainbow88,项目名称:hummel,代码行数:7,代码来源:BlockController.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     \CI::auth()->check_access('Admin', true);
     \CI::load()->model(['Categories', 'Products', 'Pages']);
     \CI::lang()->load('sitemap');
 }
开发者ID:lekhangyahoo,项目名称:gonline,代码行数:7,代码来源:AdminSitemap.php

示例15: __construct

 public function __construct($path)
 {
     parent::__construct($path);
     $this->CheckAction();
     //权限验证
     $this->update_path = ROOT . 'upgrade/';
 }
开发者ID:noikiy,项目名称:meilala,代码行数:7,代码来源:upgrade.php


注:本文中的Admin::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。