本文整理汇总了PHP中ShopUrl::canAddThisUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP ShopUrl::canAddThisUrl方法的具体用法?PHP ShopUrl::canAddThisUrl怎么用?PHP ShopUrl::canAddThisUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ShopUrl
的用法示例。
在下文中一共展示了ShopUrl::canAddThisUrl方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init_shop_header
$sql = 'SELECT distinct LOWER(TRIM(sil.' . AgileMultipleShop::SHOP_BY_CUSTOM_FIELD . ')) AS id, TRIM(sil.' . AgileMultipleShop::SHOP_BY_CUSTOM_FIELD . ') AS name
FROM `' . _DB_PREFIX_ . 'sellerinfo_lang` sil
WHERE sil.id_lang = ' . $context->cookie->id_lang . ' AND LENGTH(TRIM(sil.' . AgileMultipleShop::SHOP_BY_CUSTOM_FIELD . ')) > 0
ORDER BY sil.' . AgileMultipleShop::SHOP_BY_CUSTOM_FIELD . ' ASC
';
} else {
$sql = 'SELECT distinct LOWER(TRIM(si.' . AgileMultipleShop::SHOP_BY_CUSTOM_FIELD . ')) AS id, TRIM(si.' . AgileMultipleShop::SHOP_BY_CUSTOM_FIELD . ') AS name
FROM `' . _DB_PREFIX_ . 'sellerinfo` si
ORDER BY si.' . AgileMultipleShop::SHOP_BY_CUSTOM_FIELD . ' ASC
';
}
break;
}
if (empty($sql)) {
return array();
}
return Db::getInstance()->ExecuteS($sql);
}
public static function init_shop_header()
{
$main_shop = new Shop(Configuration::get('PS_SHOP_DEFAULT'));
include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
Context::getContext()->smarty->assign(array('is_agilemultipleshop_installed' => 1, 'header_logo_mode' => intval(Configuration::get('ASP_HEADER_LOGO_MODE')), 'base_dir_default' => $main_shop->getBaseURL(), 'seller_shop_name' => Context::getContext()->shop->name, 'id_shop_owner' => Shop::$id_shop_owner, 'seller_logo_url' => isset(Shop::$sellerinfo) ? SellerInfo::get_seller_logo_url_static(Shop::$sellerinfo->id) : ''));
}
public static function clear_blockcategory_cache()
{
@session_start();
if (!isset($_SESSION['id_shop_owner'])) {
$_SESSION['id_shop_owner'] = 0;
}
if ($_SESSION['id_shop_owner'] != Shop::$id_shop_owner) {
$_SESSION['id_shop_owner'] = Shop::$id_shop_owner;
Context::getContext()->smarty->clearAllCache();
}
}
public static function get_rewrite_rules()
{