本文整理汇总了PHP中AgileSellerManager::get_all_children方法的典型用法代码示例。如果您正苦于以下问题:PHP AgileSellerManager::get_all_children方法的具体用法?PHP AgileSellerManager::get_all_children怎么用?PHP AgileSellerManager::get_all_children使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AgileSellerManager
的用法示例。
在下文中一共展示了AgileSellerManager::get_all_children方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_all_children
public static function get_all_children($id_category)
{
$xfpggdtrvhh = "recs";
${"GLOBALS"}["gqnlnjrtcgt"] = "list";
${${"GLOBALS"}["gqnlnjrtcgt"]} = array();
$swkjpmjjilo = "rec";
if (!intval(${${"GLOBALS"}["dixowghpr"]})) {
return ${${"GLOBALS"}["dalbbuvbftd"]};
}
${${"GLOBALS"}["dalbbuvbftd"]}[] = intval(${${"GLOBALS"}["dixowghpr"]});
${${"GLOBALS"}["iikyewhoyyrc"]} = "SELECT id_category FROM " . _DB_PREFIX_ . "category where id_parent=" . ${${"GLOBALS"}["dixowghpr"]};
${${"GLOBALS"}["rqyabsu"]} = Db::getInstance()->ExecuteS(${${"GLOBALS"}["iikyewhoyyrc"]});
if (empty(${$xfpggdtrvhh})) {
return ${${"GLOBALS"}["dalbbuvbftd"]};
}
foreach (${${"GLOBALS"}["rqyabsu"]} as ${$swkjpmjjilo}) {
$vyiqcemoa = "list";
${$vyiqcemoa} = array_merge(${${"GLOBALS"}["dalbbuvbftd"]}, AgileSellerManager::get_all_children(${${"GLOBALS"}["yjoepdqnnn"]}["id_category"]));
}
return ${${"GLOBALS"}["dalbbuvbftd"]};
}
示例2: IsProductInMedicalCategory
public static function IsProductInMedicalCategory($id_product)
{
$hjcigiv = "result";
$lstmhbaguh = "result";
${"GLOBALS"}["rlyxqggizyx"] = "result";
${"GLOBALS"}["ktxcrkcysi"] = "list";
${${"GLOBALS"}["ixtqbqiuxlh"]} = implode(AgileSellerManager::get_all_children(Configuration::get("AGILE_MEDICAL_PRODUCT_CID")), ",");
$ywugilyfsisi = "sql";
${${"GLOBALS"}["fajsjwqsq"]} = "SELECT id_category from " . _DB_PREFIX_ . "category_product where id_category in (" . ${${"GLOBALS"}["ktxcrkcysi"]} . ") AND id_product =" . ${${"GLOBALS"}["jcoawuufl"]};
${$hjcigiv} = Db::getInstance()->getRow(${$ywugilyfsisi});
if (isset(${$lstmhbaguh}["id_category"]) and intval(${${"GLOBALS"}["rlyxqggizyx"]}["id_category"]) > 0) {
return true;
}
return false;
}
示例3: get_all_children
public static function get_all_children($id_category)
{
${"GLOBALS"}["fehlcixbi"] = "list";
${"GLOBALS"}["gywxcs"] = "list";
${${"GLOBALS"}["gywxcs"]} = array();
${"GLOBALS"}["kbmreomoun"] = "sql";
$nqmwwoi = "rec";
$fztqnno = "list";
if (!intval(${${"GLOBALS"}["flyhbkzmeyxr"]})) {
return ${$fztqnno};
}
$jnhrpdrfie = "list";
$xiythlbmhb = "id_category";
${${"GLOBALS"}["wlgbkuymqn"]}[] = intval(${${"GLOBALS"}["flyhbkzmeyxr"]});
${${"GLOBALS"}["kbmreomoun"]} = "SELECT id_category FROM " . _DB_PREFIX_ . "category where id_parent=" . ${$xiythlbmhb};
$toovgivxhtdm = "recs";
${$toovgivxhtdm} = Db::getInstance()->ExecuteS(${${"GLOBALS"}["qgysnkscmqt"]});
if (empty(${${"GLOBALS"}["uhwphpeuvt"]})) {
return ${$jnhrpdrfie};
}
foreach (${${"GLOBALS"}["uhwphpeuvt"]} as ${$nqmwwoi}) {
$njgftmjypb = "rec";
${${"GLOBALS"}["wlgbkuymqn"]} = array_merge(${${"GLOBALS"}["wlgbkuymqn"]}, AgileSellerManager::get_all_children(${$njgftmjypb}["id_category"]));
}
return ${${"GLOBALS"}["fehlcixbi"]};
}
示例4: get_all_children
public static function get_all_children($id_category)
{
$qqpworyu = "id_category";
$ltmivxymw = "list";
${"GLOBALS"}["dgpiabawmf"] = "list";
${"GLOBALS"}["qagnbuqvkn"] = "sql";
${${"GLOBALS"}["azjcfgupwi"]} = array();
if (!intval(${${"GLOBALS"}["byvrhys"]})) {
return ${${"GLOBALS"}["dgpiabawmf"]};
}
${${"GLOBALS"}["azjcfgupwi"]}[] = intval(${${"GLOBALS"}["byvrhys"]});
${${"GLOBALS"}["sywhpwni"]} = "SELECT id_category FROM " . _DB_PREFIX_ . "category where id_parent=" . ${$qqpworyu};
${${"GLOBALS"}["juqfmunu"]} = Db::getInstance()->ExecuteS(${${"GLOBALS"}["qagnbuqvkn"]});
if (empty(${${"GLOBALS"}["juqfmunu"]})) {
return ${$ltmivxymw};
}
foreach (${${"GLOBALS"}["juqfmunu"]} as ${${"GLOBALS"}["ofvnbep"]}) {
${"GLOBALS"}["hyatktif"] = "rec";
$qgfsdhgaikb = "list";
${${"GLOBALS"}["azjcfgupwi"]} = array_merge(${$qgfsdhgaikb}, AgileSellerManager::get_all_children(${${"GLOBALS"}["hyatktif"]}["id_category"]));
}
return ${${"GLOBALS"}["azjcfgupwi"]};
}
示例5: get_all_children
public static function get_all_children($id_category)
{
$list = array();
if (!intval($id_category)) {
return $list;
}
$list[] = intval($id_category);
$sql = 'SELECT id_category FROM ' . _DB_PREFIX_ . 'category where id_parent=' . $id_category;
$recs = Db::getInstance()->ExecuteS($sql);
if (empty($recs)) {
return $list;
}
foreach ($recs as $rec) {
$list = array_merge($list, AgileSellerManager::get_all_children($rec['id_category']));
}
return $list;
}