本文整理汇总了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');
}
示例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']));
}
示例3: __construct
public function __construct() {
parent::__construct();
//检查是否开启
if (intval(C('promotion_allow')) !== 1) {
showMessage(Language::get('promotion_unavailable'), urlShop('seller_center', 'index'),'','error');
}
}
示例4: __construct
public function __construct()
{
parent::__construct();
if (!empty($_SESSION['seller_id'])) {
@header('location: index.php?act=seller_center');
die;
}
}
示例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');
}
}
示例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';
}
}
示例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');
}
}
示例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');
}
}
示例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;
}
}
示例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);
}
示例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);
}
示例12: __construct
public function __construct()
{
parent::__construct();
Language::read('member_store_index');
}
示例13: __construct
public function __construct()
{
error_reporting(0);
parent::__construct();
}
示例14: __construct
public function __construct()
{
parent::__construct();
}
示例15: __construct
public function __construct()
{
parent::__construct();
Language::read('member_store_statistics');
import('function.statistics');
}