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


PHP BaseSellerControl::__construct方法代码示例

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


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

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     $model_refund = Model('refund_return');
     $model_refund->getRefundStateArray();
     Language::read('member_store_index');
 }
开发者ID:ff00x0,项目名称:shopnc,代码行数:7,代码来源:store_return.php

示例2: __construct

    public function __construct(){
        parent::__construct();
		Language::read('member_store_statistics');
		import('function.statistics');
        import('function.datehelper');
        $model = Model('stat');
        //存储参数
		$this->search_arr = $_REQUEST;
		//处理搜索时间
		if (in_array($this->search_arr['op'],array('price','hotgoods'))){
		    $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:noikiy,项目名称:ejia,代码行数:31,代码来源:statistics_goods.php

示例3: __construct

 public function __construct() {
     parent::__construct();
     //检查是否开启
     if (intval(C('promotion_allow')) !== 1) {
         showMessage(Language::get('promotion_unavailable'), urlShop('seller_center', 'index'),'','error');
     }
 }
开发者ID:noikiy,项目名称:ejia,代码行数:7,代码来源:store_promotion_booth.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     if (!empty($_SESSION['seller_id'])) {
         @header('location: index.php?act=seller_center');
         die;
     }
 }
开发者ID:flying3615,项目名称:chuniang,代码行数:8,代码来源:seller_login.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     Language::read('member_layout,promotion_mansong');
     //检查满就送是否开启
     if (intval(C('promotion_allow')) !== 1) {
         showMessage(Language::get('promotion_unavailable'), 'index.php?act=seller_center', '', 'error');
     }
 }
开发者ID:dotku,项目名称:shopnc_cnnewyork,代码行数:9,代码来源:store_promotion_mansong.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     if ($_GET['type'] != '' && $_GET['type'] != 'select') {
         $_GET['type'] = 'select';
     }
     if ($_POST['type'] != '' && $_POST['type'] != 'select') {
         $_POST['type'] = 'select';
     }
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:10,代码来源:store_transport.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     Language::read('member_store_brand');
     $lang = Language::getLangContent();
     //卖家店铺是否审核的判断
     if ($this->store_info['store_state'] == 2) {
         showMessage($lang['store_auditing_tip'], 'index.php?act=store', 'html', 'error');
     }
 }
开发者ID:norain2050,项目名称:xingkang,代码行数:10,代码来源:store_brand.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     /**
      * 读取语言包
      */
     Language::read('member_layout,member_store_promotion_bundling');
     //检查是否开启
     if (intval(C('promotion_allow')) !== 1) {
         showMessage(Language::get('promotion_unavailable'), urlShop('seller_center', 'index'), '', 'error');
     }
 }
开发者ID:noikiy,项目名称:cunkou,代码行数:12,代码来源:store_promotion_bundling.php

示例9: __construct

	public function __construct() {
		parent::__construct();
		$add_time_to = date("Y-m-d");
		$time_from = array();
		$time_from['7'] = strtotime($add_time_to)-60*60*24*7;
		$time_from['60'] = strtotime($add_time_to)-60*60*24*60;
		$add_time_from = date("Y-m-d",$time_from['60']);
		Tpl::output('minDate', $add_time_from);//只能查看2个月内数据
		Tpl::output('maxDate', $add_time_to);
		if (empty($_GET['add_time_from']) || $_GET['add_time_from'] < $add_time_from) {//默认显示7天内数据
			$_GET['add_time_from'] = date("Y-m-d",$time_from['7']);
		}
		if (empty($_GET['add_time_to']) || $_GET['add_time_to'] > $add_time_to) {
			$_GET['add_time_to'] = $add_time_to;
		}
	}
开发者ID:noikiy,项目名称:ejia,代码行数:16,代码来源:store_im.php

示例10: __construct

	public function __construct() {
		parent::__construct() ;
		//读取语言包
		Language::read('member_layout,member_voucher');
		//判断系统是否开启代金券功能
		if (C('voucher_allow') != 1){
			showMessage(Language::get('voucher_unavailable'),'index.php?act=store','html','error');
		}
		//申请记录状态
		$this->applystate_arr = array('new'=>array(1,Language::get('voucher_applystate_new')),'verify'=>array(2,Language::get('voucher_applystate_verify')),'cancel'=>array(3,Language::get('voucher_applystate_cancel')));
		//套餐状态
		$this->quotastate_arr = array('activity'=>array(1,Language::get('voucher_quotastate_activity')),'cancel'=>array(2,Language::get('voucher_quotastate_cancel')),'expire'=>array(3,Language::get('voucher_quotastate_expire')));
		//代金券模板状态
		$this->templatestate_arr = array('usable'=>array(1,Language::get('voucher_templatestate_usable')),'disabled'=>array(2,Language::get('voucher_templatestate_disabled')));
		Tpl::output('applystate_arr',$this->applystate_arr);
		Tpl::output('quotastate_arr',$this->quotastate_arr);
		Tpl::output('templatestate_arr',$this->templatestate_arr);
	}
开发者ID:noikiy,项目名称:ejia,代码行数:18,代码来源:store_voucher.php

示例11: __construct

    public function __construct(){
        parent::__construct();
        Language::read('stat');
        import('function.statistics');
        import('function.datehelper');
        $model = Model('stat');
        //存储参数
		$this->search_arr = $_REQUEST;
		//处理搜索时间
	    $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);
    }
开发者ID:noikiy,项目名称:ejia,代码行数:21,代码来源:statistics_flow.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     Language::read('member_store_index');
 }
开发者ID:ff00x0,项目名称:shopnc,代码行数:5,代码来源:store_setting.php

示例13: __construct

 public function __construct()
 {
     error_reporting(0);
     parent::__construct();
 }
开发者ID:lehman3087,项目名称:wanhaoshop,代码行数:5,代码来源:designer.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:4,代码来源:store_vr_bill.php

示例15: __construct

 public function __construct()
 {
     parent::__construct();
     Language::read('member_store_statistics');
     import('function.statistics');
 }
开发者ID:mengtaolin,项目名称:shopping,代码行数:6,代码来源:statistics_general.php


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