本文整理汇总了PHP中AgileSellerManager::getAcitveProductsListed方法的典型用法代码示例。如果您正苦于以下问题:PHP AgileSellerManager::getAcitveProductsListed方法的具体用法?PHP AgileSellerManager::getAcitveProductsListed怎么用?PHP AgileSellerManager::getAcitveProductsListed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AgileSellerManager
的用法示例。
在下文中一共展示了AgileSellerManager::getAcitveProductsListed方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: limited_by_membership
public static function limited_by_membership($id_seller)
{
if (intval(${${"GLOBALS"}["tpubctvvlkrd"]}) > 0 and Module::isInstalled("agilemembership") and intval(Configuration::get("AGILE_MEMBERSHIP_SELLER_INTE")) > 0) {
include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
$igckop = "id_seller";
include_once _PS_ROOT_DIR_ . "/modules/agilemembership/agilemembership.php";
$kkyparclft = "membershiptype";
$lbvzyb = "membership";
include_once _PS_ROOT_DIR_ . "/modules/agilemembership/MembershipType.php";
include_once _PS_ROOT_DIR_ . "/modules/agilemembership/CustomerMembership.php";
${${"GLOBALS"}["qwrpbc"]} = new SellerInfo(SellerInfo::getIdBSellerId(${$igckop}));
${"GLOBALS"}["sjqvdo"] = "num";
${${"GLOBALS"}["rzogbmiaosx"]} = new CustomerMembership(CustomerMembership::getIdByCustomerId($sellerinfo->id_customer));
if (!Validate::isLoadedObject(${$lbvzyb})) {
return true;
}
${$kkyparclft} = new MembershipType($membership->id_membership_type);
if (!Validate::isLoadedObject(${${"GLOBALS"}["mbcacw"]})) {
return true;
}
if (!AgileMembership::isActivated($sellerinfo->id_customer) or !AgileMembership::isMemberFeePaid($sellerinfo->id_customer)) {
return true;
}
${${"GLOBALS"}["sjqvdo"]} = AgileSellerManager::getAcitveProductsListed(${${"GLOBALS"}["tpubctvvlkrd"]});
${"GLOBALS"}["aeoptjd"] = "num";
if (${${"GLOBALS"}["aeoptjd"]} >= intval($membershiptype->listing_max) and intval($membershiptype->listing_max) > 0) {
return true;
}
return false;
}
return false;
}
示例2: limited_by_membership
public static function limited_by_membership($id_seller)
{
if (intval(${${"GLOBALS"}["ghjbfbenq"]}) > 0 and Module::isInstalled("agilemembership") and intval(Configuration::get("AGILE_MEMBERSHIP_SELLER_INTE")) > 0) {
$fdlzwmoqj = "num";
include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
include_once _PS_ROOT_DIR_ . "/modules/agilemembership/agilemembership.php";
include_once _PS_ROOT_DIR_ . "/modules/agilemembership/MembershipType.php";
$wpdcvqoxy = "sellerinfo";
include_once _PS_ROOT_DIR_ . "/modules/agilemembership/CustomerMembership.php";
${$wpdcvqoxy} = new SellerInfo(SellerInfo::getIdBSellerId(${${"GLOBALS"}["ghjbfbenq"]}));
${${"GLOBALS"}["wvxnbvhc"]} = new CustomerMembership(CustomerMembership::getIdByCustomerId($sellerinfo->id_customer));
if (!Validate::isLoadedObject(${${"GLOBALS"}["wvxnbvhc"]})) {
return true;
}
${${"GLOBALS"}["ulmwafwenh"]} = new MembershipType($membership->id_membership_type);
if (!Validate::isLoadedObject(${${"GLOBALS"}["ulmwafwenh"]})) {
return true;
}
if (!AgileMembership::isActivated($sellerinfo->id_customer) or !AgileMembership::isMemberFeePaid($sellerinfo->id_customer)) {
return true;
}
${${"GLOBALS"}["ntqtncirr"]} = AgileSellerManager::getAcitveProductsListed(${${"GLOBALS"}["ghjbfbenq"]});
if (${$fdlzwmoqj} >= intval($membershiptype->listing_max) and intval($membershiptype->listing_max) > 0) {
return true;
}
return false;
}
return false;
}
示例3: limited_by_membership
public static function limited_by_membership($id_seller)
{
if (intval(${${"GLOBALS"}["pbiyrsaos"]}) > 0 and Module::isInstalled("agilemembership") and intval(Configuration::get("AGILE_MEMBERSHIP_SELLER_INTE")) > 0) {
include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
include_once _PS_ROOT_DIR_ . "/modules/agilemembership/agilemembership.php";
include_once _PS_ROOT_DIR_ . "/modules/agilemembership/MembershipType.php";
$fufeamxcyjr = "membership";
${"GLOBALS"}["bqmujrr"] = "membership";
include_once _PS_ROOT_DIR_ . "/modules/agilemembership/CustomerMembership.php";
$yltnxtalslm = "sellerinfo";
${$yltnxtalslm} = new SellerInfo(SellerInfo::getIdBSellerId(${${"GLOBALS"}["pbiyrsaos"]}));
${"GLOBALS"}["jarywcgnwfk"] = "id_seller";
${${"GLOBALS"}["bqmujrr"]} = new CustomerMembership(CustomerMembership::getIdByCustomerId($sellerinfo->id_customer));
$iyqbnpykyel = "num";
if (!Validate::isLoadedObject(${$fufeamxcyjr})) {
return true;
}
${${"GLOBALS"}["hjvoddgpxb"]} = new MembershipType($membership->id_membership_type);
if (!Validate::isLoadedObject(${${"GLOBALS"}["hjvoddgpxb"]})) {
return true;
}
if (!AgileMembership::isActivated($sellerinfo->id_customer) or !AgileMembership::isMemberFeePaid($sellerinfo->id_customer)) {
return true;
}
${$iyqbnpykyel} = AgileSellerManager::getAcitveProductsListed(${${"GLOBALS"}["jarywcgnwfk"]});
if (${${"GLOBALS"}["vuefcasbu"]} >= intval($membershiptype->listing_max) and intval($membershiptype->listing_max) > 0) {
return true;
}
return false;
}
return false;
}
示例4: limited_by_membership
public static function limited_by_membership($id_seller)
{
if (intval($id_seller) > 0 and Module::isInstalled('agilemembership') and intval(Configuration::get('AGILE_MEMBERSHIP_SELLER_INTE')) > 0) {
include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
include_once _PS_ROOT_DIR_ . "/modules/agilemembership/agilemembership.php";
include_once _PS_ROOT_DIR_ . "/modules/agilemembership/MembershipType.php";
include_once _PS_ROOT_DIR_ . "/modules/agilemembership/CustomerMembership.php";
$sellerinfo = new SellerInfo(SellerInfo::getIdBSellerId($id_seller));
$membership = new CustomerMembership(CustomerMembership::getIdByCustomerId($sellerinfo->id_customer));
if (!Validate::isLoadedObject($membership)) {
return true;
}
$membershiptype = new MembershipType($membership->id_membership_type);
if (!Validate::isLoadedObject($membershiptype)) {
return true;
}
if (!AgileMembership::isActivated($sellerinfo->id_customer) or !AgileMembership::isMemberFeePaid($sellerinfo->id_customer)) {
return true;
}
$num = AgileSellerManager::getAcitveProductsListed($id_seller);
if ($num >= intval($membershiptype->listing_max) and intval($membershiptype->listing_max) > 0) {
return true;
}
return false;
}
return false;
}