本文整理匯總了PHP中base_controller::checkDrp方法的典型用法代碼示例。如果您正苦於以下問題:PHP base_controller::checkDrp方法的具體用法?PHP base_controller::checkDrp怎麽用?PHP base_controller::checkDrp使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類base_controller
的用法示例。
在下文中一共展示了base_controller::checkDrp方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: _storenav_content
private function _storenav_content()
{
$store = M('Store');
$nav = M('Store_nav');
$store = $store->getStoreById($this->store_session['store_id'], $this->user_session['uid']);
$nav = $nav->getStoreNav($this->store_session['store_id']);
$use_nav_pages = $store['use_nav_pages'];
if (!empty($use_nav_pages)) {
$use_nav_pages = explode(',', $use_nav_pages);
} else {
$use_nav_pages = array();
}
$this->assign('use_nav_pages', $use_nav_pages);
if (!empty($nav['data'])) {
$this->assign('nav_menus', unserialize($nav['data']));
}
$style_id = !empty($nav['style']) ? $nav['style'] : 1;
if ($style_id == 1) {
$this->assign('style', '微信公眾號自定義菜單樣式');
} else {
if ($style_id == 2) {
$this->assign('style', 'APP導航模板');
} else {
if ($style_id == 3) {
$this->assign('style', '帶購物車導航模板');
}
}
}
//菜單數量限製
$shopnav_limit[1] = 3;
$shopnav_limit[2] = 5;
$shopnav_limit[3] = 4;
$this->assign('shopnav_limit', $shopnav_limit);
$this->assign('style_id', $style_id);
$this->assign('nav', $nav);
$this->assign('store', $store);
parent::checkDrp();
if (!empty($this->store_session['drp_supplier_id']) && empty($this->store_session['drp_level'])) {
$this->assign('allow_store_drp', false);
}
}