当前位置: 首页>>代码示例>>PHP>>正文


PHP AgileSellerManager::getProducts方法代码示例

本文整理汇总了PHP中AgileSellerManager::getProducts方法的典型用法代码示例。如果您正苦于以下问题:PHP AgileSellerManager::getProducts方法的具体用法?PHP AgileSellerManager::getProducts怎么用?PHP AgileSellerManager::getProducts使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AgileSellerManager的用法示例。


在下文中一共展示了AgileSellerManager::getProducts方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: initContent

 public function initContent()
 {
     $btmiidgws = "filterby";
     parent::initContent();
     $tpnbrkrdt = "products_nb";
     $dpfxmrmwh = "def_id_currency";
     $vzesbwi = "def_id_currency";
     ${$dpfxmrmwh} = (int) Configuration::get("PS_CURRENCY_DEFAULT");
     ${"GLOBALS"}["roxwkcvqhflj"] = "filterby";
     $fqpfpxqeh = "extraCondition";
     ${${"GLOBALS"}["mnobbzfvnp"]} = "";
     ${$btmiidgws} = Tools::getValue("agile_filterby");
     ${${"GLOBALS"}["gocvemsdbgb"]} = Tools::getValue("agile_filterval");
     if (${${"GLOBALS"}["roxwkcvqhflj"]} != "" && ${${"GLOBALS"}["gocvemsdbgb"]} != "") {
         ${"GLOBALS"}["oailbaupy"] = "extraCondition";
         ${"GLOBALS"}["pdessrponr"] = "filterval";
         $fooqqgucst = "filterby";
         $sekwzwjn = "filterval";
         $jhdbckrgnsy = "filterby";
         ${"GLOBALS"}["swoifnfpm"] = "filterby";
         ${"GLOBALS"}["cjfbvvp"] = "filterby";
         if (${$fooqqgucst} == "p.active" || ${$jhdbckrgnsy} == "po.approved" || ${${"GLOBALS"}["swoifnfpm"]} == "p.id_product") {
             ${${"GLOBALS"}["oailbaupy"]} = " AND " . ${${"GLOBALS"}["ghisjkbpjr"]} . "=" . (int) ${$sekwzwjn};
         } else {
             ${${"GLOBALS"}["mnobbzfvnp"]} = " AND " . ${${"GLOBALS"}["cjfbvvp"]} . " like '%" . ${${"GLOBALS"}["pdessrponr"]} . "%' ";
         }
     }
     $kdnvyur = "products";
     ${${"GLOBALS"}["vzoewvefm"]} = AgileSellerManager::getProducts($this->sellerinfo->id_seller, $this->context, true, $this->p, $this->n, $this->orderBy, $this->orderWay, ${${"GLOBALS"}["mnobbzfvnp"]});
     $this->pagination(${$tpnbrkrdt});
     ${"GLOBALS"}["qhyunwxg"] = "products";
     ${${"GLOBALS"}["qhyunwxg"]} = AgileSellerManager::getProducts($this->sellerinfo->id_seller, $this->context, false, $this->p, $this->n, $this->orderBy, $this->orderWay, ${$fqpfpxqeh});
     self::$smarty->assign(array("seller_tab_id" => 3, "products" => ${$kdnvyur}, "is_apprpved_required" => intval(Configuration::get("AGILE_MS_PRODUCT_APPROVAL")), "def_id_currency" => ${$vzesbwi}, "is_legacy_image" => (int) Configuration::get("PS_LEGACY_IMAGES"), "psize" => (int) Tools::getValue("n"), "pnum" => (int) Tools::getValue("p"), "agile_orderby" => $this->orderBy == "" ? "p.date_add" : $this->orderBy, "agile_orderway" => $this->orderWay == "" ? "DESC" : $this->orderWay, "agile_filterby" => Tools::getValue("agile_filterby"), "agile_filterval" => Tools::getValue("agile_filterval")));
     $this->setTemplate("sellerproducts.tpl");
 }
开发者ID:sho5kubota,项目名称:guidingyou2,代码行数:35,代码来源:sellerproducts.php


注:本文中的AgileSellerManager::getProducts方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。