本文整理匯總了PHP中categories::generatebrowseList方法的典型用法代碼示例。如果您正苦於以下問題:PHP categories::generatebrowseList方法的具體用法?PHP categories::generatebrowseList怎麽用?PHP categories::generatebrowseList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類categories
的用法示例。
在下文中一共展示了categories::generatebrowseList方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: categories
<?php
// +----------------------------------------------------------------------
// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email author@demila.org
// +----------------------------------------------------------------------
_setView(__FILE__);
_setTitle($langArray['browse_categories_setTitle']);
$categoryID = get_id(1);
if (is_numeric($categoryID) || $categoryID == 'all') {
require_once ROOT_PATH . '/apps/categories/models/categories.class.php';
$categoriesClass = new categories();
$categories = $categoriesClass->getAll();
abr('categories', $categories);
} else {
$allCategories = $categoriesClass->getAllWithChilds(0, " `visible` = 'true' ");
$categoriesbrowseList = $categoriesClass->generatebrowseList($allCategories);
abr('categoriesbrowseList', $categoriesbrowseList);
}