本文整理汇总了PHP中AgileSellerManager::current_logged_seller_id方法的典型用法代码示例。如果您正苦于以下问题:PHP AgileSellerManager::current_logged_seller_id方法的具体用法?PHP AgileSellerManager::current_logged_seller_id怎么用?PHP AgileSellerManager::current_logged_seller_id使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AgileSellerManager
的用法示例。
在下文中一共展示了AgileSellerManager::current_logged_seller_id方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_current_logged_seller_home_category_id
public static function get_current_logged_seller_home_category_id()
{
if (!Module::isInstalled("agilemultipleseller")) {
return 0;
}
${"GLOBALS"}["pzvnnqi"] = "id_seller";
require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
${${"GLOBALS"}["tpubctvvlkrd"]} = AgileSellerManager::current_logged_seller_id();
if (${${"GLOBALS"}["pzvnnqi"]} <= 0) {
return 0;
}
${${"GLOBALS"}["qwrpbc"]} = new SellerInfo(SellerInfo::getIdBSellerId(${${"GLOBALS"}["tpubctvvlkrd"]}));
if ($sellerinfo->id_category_default <= 2) {
return 0;
}
${${"GLOBALS"}["ykrvqmx"]} = new Category($sellerinfo->id_category_default, Context::getContext()->language->id);
if (!Validate::isLoadedObject(${${"GLOBALS"}["ykrvqmx"]})) {
return 0;
}
return $sellerinfo->id_category_default;
}
示例2: get_current_logged_seller_home_category_id
public static function get_current_logged_seller_home_category_id()
{
${"GLOBALS"}["fqgxtnved"] = "id_seller";
if (!Module::isInstalled("agilemultipleseller")) {
return 0;
}
require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
${${"GLOBALS"}["fqgxtnved"]} = AgileSellerManager::current_logged_seller_id();
if (${${"GLOBALS"}["ghjbfbenq"]} <= 0) {
return 0;
}
${${"GLOBALS"}["fgxqhdsi"]} = new SellerInfo(SellerInfo::getIdBSellerId(${${"GLOBALS"}["ghjbfbenq"]}));
${"GLOBALS"}["dpwcnuha"] = "category";
if ($sellerinfo->id_category_default <= 2) {
return 0;
}
${${"GLOBALS"}["dpwcnuha"]} = new Category($sellerinfo->id_category_default, Context::getContext()->language->id);
if (!Validate::isLoadedObject(${${"GLOBALS"}["xslqxxkw"]})) {
return 0;
}
return $sellerinfo->id_category_default;
}
示例3: get_current_logged_seller_home_category_id
public static function get_current_logged_seller_home_category_id()
{
${"GLOBALS"}["jmshhuxctr"] = "category";
${"GLOBALS"}["dqsyfllglj"] = "id_seller";
${"GLOBALS"}["bfdapv"] = "sellerinfo";
if (!Module::isInstalled("agilemultipleseller")) {
return 0;
}
require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
$avkymxsi = "id_seller";
${"GLOBALS"}["ctdshgh"] = "category";
${$avkymxsi} = AgileSellerManager::current_logged_seller_id();
if (${${"GLOBALS"}["pbiyrsaos"]} <= 0) {
return 0;
}
${${"GLOBALS"}["bfdapv"]} = new SellerInfo(SellerInfo::getIdBSellerId(${${"GLOBALS"}["dqsyfllglj"]}));
if ($sellerinfo->id_category_default <= 2) {
return 0;
}
${${"GLOBALS"}["jmshhuxctr"]} = new Category($sellerinfo->id_category_default, Context::getContext()->language->id);
if (!Validate::isLoadedObject(${${"GLOBALS"}["ctdshgh"]})) {
return 0;
}
return $sellerinfo->id_category_default;
}
示例4: get_current_logged_seller_home_category_id
public static function get_current_logged_seller_home_category_id()
{
if (!Module::isInstalled('agilemultipleseller')) {
return 0;
}
require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
$id_seller = AgileSellerManager::current_logged_seller_id();
if ($id_seller <= 0) {
return 0;
}
$sellerinfo = new SellerInfo(SellerInfo::getIdBSellerId($id_seller));
if ($sellerinfo->id_category_default <= 2) {
return 0;
}
$category = new Category($sellerinfo->id_category_default, Context::getContext()->language->id);
if (!Validate::isLoadedObject($category)) {
return 0;
}
return $sellerinfo->id_category_default;
}