本文整理汇总了PHP中MircroShopControl类的典型用法代码示例。如果您正苦于以下问题:PHP MircroShopControl类的具体用法?PHP MircroShopControl怎么用?PHP MircroShopControl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了MircroShopControl类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
parent::__construct();
if (!empty($_GET['data_type']) && $_GET['data_type'] === 'json') {
$this->data_type = 'json';
}
}
示例2: __construct
public function __construct()
{
parent::__construct();
$member_info = array();
$owner_flag = TRUE;
$member_id = $_SESSION['member_id'];
if (isset($_GET['member_id']) && intval($_GET['member_id']) > 0) {
$member_id = $_GET['member_id'];
if ($_GET['member_id'] != $_SESSION['member_id']) {
$owner_flag = FALSE;
}
}
if (empty($member_id)) {
header('Location: ' . MICROSHOP_SITE_URL);
die;
}
$model_member = Model('member');
$member_info = $model_member->infoMember(array('member_id' => $member_id));
if (!empty($member_info)) {
$this->member_info = $member_info;
$member_info = self::get_member_detail_info($member_info);
if (!$member_info) {
header('location: ' . MICROSHOP_SITE_URL);
die;
}
Tpl::output('member_info', $member_info);
} else {
header('Location: ' . MICROSHOP_SITE_URL);
die;
}
//是否本人标志
Tpl::output('owner_flag', $owner_flag);
//访问计数
$model_micro_member_info = Model('micro_member_info');
$visit_count = $model_micro_member_info->updateMemberVisitCount($member_info['member_id']);
Tpl::output('visit_count', $visit_count);
//是否关注
if (!empty($_SESSION['member_id']) && !$owner_flag) {
$model = Model();
$gz_array = $model->table('sns_friend')->where(array('friend_frommid' => $_SESSION['member_id'], 'friend_tomid' => array('in', $member_info['member_id'])))->select();
if (empty($gz_array)) {
Tpl::output('follow_flag', TRUE);
} else {
Tpl::output('follow_flag', FALSE);
}
}
Tpl::output('html_title', $member_info['member_name'] . '-' . Language::get('nc_microshop') . '-' . C('site_name'));
Tpl::output('index_sign', '');
}
示例3: __construct
public function __construct()
{
parent::__construct();
Tpl::output('index_sign', 'store');
}
示例4: __construct
public function __construct()
{
parent::__construct();
}
示例5: __construct
public function __construct()
{
parent::__construct();
self::check_login();
Tpl::output('index_sign', '');
}