本文整理汇总了PHP中Catalog::getList方法的典型用法代码示例。如果您正苦于以下问题:PHP Catalog::getList方法的具体用法?PHP Catalog::getList怎么用?PHP Catalog::getList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Catalog
的用法示例。
在下文中一共展示了Catalog::getList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: index
public function index()
{
$oCategory = new Catalog_Category();
if (isset($_COOKIE['brandID'])) {
$this->show->brandID = $_COOKIE['brandID'];
} else {
$this->show->brandID = $oCategory->getFirst();
setcookie('brandID', $this->show->brandID, null, '/');
}
$this->show->categoryList = $oCategory->getList($this->show->brandID);
if (isset($_COOKIE['categoryID'])) {
$this->show->categoryID = $_COOKIE['categoryID'];
} else {
$this->show->categoryID = $oCategory->getFirstC($this->show->brandID);
setcookie('categoryID', $this->show->categoryID, null, '/');
}
$catalog = new Catalog();
$this->show->itemList = $catalog->getList($this->show->categoryID);
}
示例2: brand
public function brand()
{
if (!$this->show->itemID) {
redirect(BASE_PATH . 'catalog');
}
$this->show->item = $this->oCatalogBrand->getById($this->show->itemID);
$this->show->breadcrumbs[] = array('url' => BASE_PATH . 'catalog/category/' . $this->show->item['CategoryID'], 'title' => $this->show->item['Title']);
$oCatalog = new Catalog();
$this->show->itemList = $oCatalog->getList(0, $this->show->itemID);
}