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


PHP AdminController::__construct方法代码示例

本文整理汇总了PHP中Admin\Controller\AdminController::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminController::__construct方法的具体用法?PHP AdminController::__construct怎么用?PHP AdminController::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Admin\Controller\AdminController的用法示例。


在下文中一共展示了AdminController::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     $orderModel = new \Loan\Model\OrderModel();
     $this->_field_text_map['order_type'] = $this->_order_type = $orderModel->getType();
     $this->_field_text_map['status'] = $this->_status = $orderModel->getStatus();
 }
开发者ID:torry999,项目名称:lingshi,代码行数:7,代码来源:OrderFinanceController.class.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     $model = new \Loan\Model\CompanyModel();
     $this->_type = $model->getType();
     $this->_field_text_map = ['type' => $this->_type, 'status' => $this->_status];
 }
开发者ID:torry999,项目名称:lingshi,代码行数:7,代码来源:CompanyController.class.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->assign('menu', 'weixin');
     $this->assign('mLeft', 'weixin_' . strtolower(ACTION_NAME));
     $this->weixin = C('WEIXIN');
 }
开发者ID:000LongMarch000,项目名称:wx,代码行数:7,代码来源:WeixinController.class.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $this->assign('module', 4);
     $this->appeal = D('Appeal');
     $this->appeal_reply = D('Appeal_reply');
 }
开发者ID:qinzhi,项目名称:taoj,代码行数:7,代码来源:AppealController.class.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     $orderModel = new \Loan\Model\OrderModel();
     $this->_type = $orderModel->getType();
     $this->_status = $orderModel->getStatus();
 }
开发者ID:torry999,项目名称:lingshi,代码行数:7,代码来源:OrderController.class.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->orderForm = D('OrderForm');
     $this->orderGoods = D('OrderGoods');
     $this->customer = D('Customer');
     $this->relation = new OrderRelationModel();
 }
开发者ID:yunzhiclub,项目名称:wemall,代码行数:8,代码来源:OrderManagerController.class.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     $this->goods = D('Goods');
     $this->myUpload = $this->upload;
     $path = './Picture/Goods/';
     $this->myUpload->savePath = $path;
     $this->urlArray = array('urlonSheleves' => U('onShelevesManager'), 'urlunderSheleves' => U('underShelevesManager'), 'urladd' => U('add'));
 }
开发者ID:yunzhiclub,项目名称:wemall,代码行数:9,代码来源:IndexController.class.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $config = D("Config");
     $configArr = $config->fetConfig();
     $this->beginDate = $configArr[0]['value'];
     $this->endDate = $configArr[1]['value'];
     $this->dateArr = $this->_getTimes();
 }
开发者ID:yunzhiclub,项目名称:wemall,代码行数:9,代码来源:SettleController.class.php

示例9: __construct

 public function __construct()
 {
     $model_id = I('model_id');
     $this->m_name = $model_id;
     if (is_numeric($model_id)) {
         $this->m_info = get_model($model_id);
     } else {
         $this->m_info = M('Model')->where("`table`='{$model_id}'")->find();
     }
     parent::__construct();
 }
开发者ID:735579768,项目名称:Ainiku,代码行数:11,代码来源:ArchiveController.class.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_type_config[1] = 'PC版-首页-精选商品';
     foreach ($this->_category() as $id => $name) {
         $this->_type_config['3_' . $id] = 'PC版-首页-分类-' . $name;
     }
     $this->_type_config[2] = '手机版-首页-精选商品';
     foreach ($this->_category() as $id => $name) {
         $this->_type_config['4_' . $id] = '手机版-首页-分类-' . $name;
     }
     $this->assign('_type', $this->_type_config);
 }
开发者ID:torry999,项目名称:lingshi,代码行数:13,代码来源:WebRecommendController.class.php

示例11: __construct

 public function __construct()
 {
     parent::__construct();
     $this->assign('menu', 'user');
     $this->assign('mLeft', 'user_' . strtolower(ACTION_NAME));
 }
开发者ID:000LongMarch000,项目名称:wx,代码行数:6,代码来源:UserController.class.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     $this->AuthRole = D('AuthRole');
 }
开发者ID:qinzhi,项目名称:fruiter,代码行数:5,代码来源:AuthController.class.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     $this->attr = D('Attr');
 }
开发者ID:qinzhi,项目名称:fruiter,代码行数:5,代码来源:GoodsAttrController.class.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     $this->goodsModel = D('Goods');
 }
开发者ID:qinzhi,项目名称:fruiter,代码行数:5,代码来源:GoodsController.class.php

示例15: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_field_text_map = ['status' => [1 => '正常', 0 => '禁用'], 'level' => ['1' => '校园主任', '2' => '学区经理', '3' => '校园经理', '4' => '校园专员']];
 }
开发者ID:torry999,项目名称:lingshi,代码行数:5,代码来源:SalesmanController.class.php


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