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


PHP SystemControl::__construct方法代码示例

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


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

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     Language::read('refund');
     $model_vr_refund = Model('vr_refund');
     $model_vr_refund->getRefundStateArray();
 }
开发者ID:dotku,项目名称:shopnc_cnnewyork,代码行数:7,代码来源:vr_refund.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     Language::read('stat');
     import('function.statistics');
     import('function.datehelper');
 }
开发者ID:Maplecms,项目名称:shopnc-yhmall,代码行数:7,代码来源:stat_trade.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     Language::read('stat');
     import('function.statistics');
     import('function.datehelper');
     $model = Model('stat');
     //存储参数
     $this->search_arr = $_REQUEST;
     //处理搜索时间
     if (in_array($this->search_arr['op'], array('pricerange', 'hotgoods', 'goods_sale'))) {
         $this->search_arr = $model->dealwithSearchTime($this->search_arr);
         //获得系统年份
         $year_arr = getSystemYearArr();
         //获得系统月份
         $month_arr = getSystemMonthArr();
         //获得本月的周时间段
         $week_arr = getMonthWeekArr($this->search_arr['week']['current_year'], $this->search_arr['week']['current_month']);
         Tpl::output('year_arr', $year_arr);
         Tpl::output('month_arr', $month_arr);
         Tpl::output('week_arr', $week_arr);
     }
     Tpl::output('search_arr', $this->search_arr);
     /**
      * 处理商品分类
      */
     $this->choose_gcid = ($t = intval($_REQUEST['choose_gcid'])) > 0 ? $t : 0;
     $gccache_arr = Model('goods_class')->getGoodsclassCache($this->choose_gcid, 3);
     $this->gc_arr = $gccache_arr['showclass'];
     Tpl::output('gc_json', json_encode($gccache_arr['showclass']));
     Tpl::output('gc_choose_json', json_encode($gccache_arr['choose_gcid']));
 }
开发者ID:xuxuecheng,项目名称:shopnc,代码行数:32,代码来源:stat_goods.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     Language::read('stat');
     import('function.statistics');
     import('function.datehelper');
     $model = Model('stat');
     //存储参数
     $this->search_arr = $_REQUEST;
     //处理搜索时间
     if (in_array($_REQUEST['op'], array('hotrank', 'storesales'))) {
         $this->search_arr = $model->dealwithSearchTime($this->search_arr);
         //获得系统年份
         $year_arr = getSystemYearArr();
         //获得系统月份
         $month_arr = getSystemMonthArr();
         //获得本月的周时间段
         $week_arr = getMonthWeekArr($this->search_arr['week']['current_year'], $this->search_arr['week']['current_month']);
         Tpl::output('year_arr', $year_arr);
         Tpl::output('month_arr', $month_arr);
         Tpl::output('week_arr', $week_arr);
     }
     Tpl::output('search_arr', $this->search_arr);
     //店铺分类
     $this->store_class = rkcache('store_class', true);
     Tpl::output('store_class', $this->store_class);
 }
开发者ID:noikiy,项目名称:ejia,代码行数:27,代码来源:stat_store.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     Language::read('stat');
     import('function.statistics');
     import('function.datehelper');
     $model = Model('stat');
     //存储参数
     $this->search_arr = $_REQUEST;
     //处理搜索时间
     if (in_array($_REQUEST['op'], array('list'))) {
         $this->search_arr = $model->dealwithSearchTime($this->search_arr);
         //获得系统年份
         $year_arr = getSystemYearArr();
         //获得系统月份
         $month_arr = getSystemMonthArr();
         //获得本月的周时间段
         $week_arr = getMonthWeekArr($this->search_arr['week']['current_year'], $this->search_arr['week']['current_month']);
         Tpl::output('year_arr', $year_arr);
         Tpl::output('month_arr', $month_arr);
         Tpl::output('week_arr', $week_arr);
     }
     Tpl::output('search_arr', $this->search_arr);
     $conn = (require BASE_DATA_PATH . '/../core/framework/db/mssqlpdo.php');
     $treesql = 'select  b.id , b.name,b.districtnumber,b.parentid pId from map_org_wechat a, Organization b where a.orgid = b.id ';
     $treestmt = $conn->query($treesql);
     $this->treedata_list = array();
     while ($row = $treestmt->fetch(PDO::FETCH_OBJ)) {
         array_push($this->treedata_list, $row);
     }
     Tpl::output('treelist', $this->treedata_list);
 }
开发者ID:JokeLook,项目名称:xingkang,代码行数:32,代码来源:healthplatform.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $conn = (require BASE_DATA_PATH . '/../core/framework/db/mssqlpdo.php');
     $treesql = 'select  b.id , b.name,b.districtnumber,b.parentid pId from map_org_wechat a, Organization b where a.orgid = b.id ';
     $treestmt = $conn->query($treesql);
     $this->treedata_list = array();
     while ($row = $treestmt->fetch(PDO::FETCH_OBJ)) {
         array_push($this->treedata_list, $row);
     }
     Tpl::output('treelist', $this->treedata_list);
     $this->getTreeData();
     $stmt = $conn->query(' select * from Center_codes where type=\'iBuy_Type\' order by code ');
     $this->types = array();
     while ($row = $stmt->fetch(PDO::FETCH_OBJ)) {
         array_push($this->types, $row);
     }
     //        $this->types = array(0 => '期初入库', 1 => '采购入库', 2 => '购进退回', 3 => '盘盈', 5 => '领用', 12 => '盘亏', 14 => '领用退回', 50 => '采购计划',);
     Tpl::output('types', $this->types);
     $this->goodtype = array(0 => '药品', 1 => '卫生用品', 2 => '诊疗项目', 3 => '特殊材料');
     Tpl::output('goodtype', $this->goodtype);
     $stmt = $conn->query(' select distinct orgid from map_org_wechat order by orgid ');
     $this->orgidarray = array();
     while ($row = $stmt->fetch(PDO::FETCH_NUM)) {
         array_push($this->orgidarray, $row[0]);
     }
 }
开发者ID:norain2050,项目名称:xingkang,代码行数:27,代码来源:storehouse.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     Language::read('stat');
     import('function.statistics');
     import('function.datehelper');
     $model = Model('stat');
     //存储参数
     $this->search_arr = $_REQUEST;
     //处理搜索时间
     if (in_array($_REQUEST['op'], array('list'))) {
         $this->search_arr = $model->dealwithSearchTime($this->search_arr);
         //获得系统年份
         $year_arr = getSystemYearArr();
         //获得系统月份
         $month_arr = getSystemMonthArr();
         //获得本月的周时间段
         $week_arr = getMonthWeekArr($this->search_arr['week']['current_year'], $this->search_arr['week']['current_month']);
         Tpl::output('year_arr', $year_arr);
         Tpl::output('month_arr', $month_arr);
         Tpl::output('week_arr', $week_arr);
     }
     $conn = (require BASE_DATA_PATH . '/../core/framework/db/mssqlpdo.php');
     $stmt = $conn->query(' select distinct orgid from map_org_wechat order by orgid ');
     $this->orgidarray = array();
     while ($row = $stmt->fetch(PDO::FETCH_NUM)) {
         array_push($this->orgidarray, $row[0]);
     }
     $this->getTreeData();
     Tpl::output('search_arr', $this->search_arr);
 }
开发者ID:norain2050,项目名称:xingkang,代码行数:31,代码来源:healthfile.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     Language::read('sns_sharesetting');
     $model = Model('sns_binding');
     $this->app_arr = $model->getApps();
 }
开发者ID:dotku,项目名称:shopnc_cnnewyork,代码行数:7,代码来源:sns_sharesetting.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     Language::read('flea_class');
     if ($GLOBALS['setting_config']['flea_isuse'] != '1') {
         showMessage(Language::get('flea_isuse_off_tips'), 'index.php?act=dashboard&op=welcome');
     }
 }
开发者ID:noikiy,项目名称:shopnc-minion,代码行数:8,代码来源:flea_class.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     // 检查抢购功能是否开启
     if (C('groupbuy_allow') != 1) {
         showMessage('虚拟抢购功能尚未开启', 'index.php?act=dashboard&op=welcome', 'html', 'error');
     }
 }
开发者ID:noikiy,项目名称:shopnc-minion,代码行数:8,代码来源:vr_groupbuy.php

示例11: __construct

 public function __construct()
 {
     parent::__construct();
     Uk86Language::uk86_read('setting,flea_index_setting');
     if ($GLOBALS['setting_config']['flea_isuse'] != '1') {
         uk86_showMessage(Uk86Language::uk86_get('flea_isuse_off_tips'), 'index.php?act=dashboard&op=welcome');
     }
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:8,代码来源:flea_index.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     Language::read('points');
     //判断系统是否开启积分功能
     if (C('points_isuse') != 1) {
         showMessage(Language::get('admin_points_unavailable'), 'index.php?act=dashboard&op=welcome', '', 'error');
     }
 }
开发者ID:noikiy,项目名称:shopnc-minion,代码行数:9,代码来源:points.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     //检查审核功能是否开启
     if (intval($_GET['promotion_allow']) !== 1 && intval(C('promotion_allow')) !== 1) {
         $url = array(array('url' => 'index.php?act=dashboard&op=welcome', 'msg' => L('close')), array('url' => 'index.php?act=promotion_bundling&promotion_allow=1', 'msg' => L('open')));
         showMessage('商品促销功能尚未开启', $url, 'html', 'succ', 1, 6000);
     }
 }
开发者ID:Maplecms,项目名称:shopnc-yhmall,代码行数:9,代码来源:promotion_booth.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     if (strtoupper(CHARSET) == 'GBK') {
         $_GET = Language::getGBK($_GET);
         $_POST = Language::getGBK($_POST);
     }
     Language::read('web_config');
 }
开发者ID:norain2050,项目名称:xingkang,代码行数:9,代码来源:web_api.php

示例15: __construct

 public function __construct()
 {
     parent::__construct();
     Language::read('region,flea_index');
     if ($GLOBALS['setting_config']['flea_isuse'] != 1) {
         showMessage(Language::get('flea_index_unable'), 'index.php?act=dashboard&op=welcome');
         // showMessage(Language::get('admin_ztc_unavailable'),'index.php?act=dashboard&op=welcome');
     }
 }
开发者ID:ff00x0,项目名称:shopnc,代码行数:9,代码来源:flea_region.php


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