本文整理汇总了PHP中ShopFunctions::categoryTree方法的典型用法代码示例。如果您正苦于以下问题:PHP ShopFunctions::categoryTree方法的具体用法?PHP ShopFunctions::categoryTree怎么用?PHP ShopFunctions::categoryTree使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ShopFunctions
的用法示例。
在下文中一共展示了ShopFunctions::categoryTree方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: categoryListTree
public static function categoryListTree($selectedCategories = array(), $cid = 0, $level = 0, $disabledFields = array())
{
if (empty(self::$categoryTree)) {
// vmTime('Start with categoryListTree');
$cache = JFactory::getCache('com_virtuemart_cats');
$cached = $cache->getCaching();
$cache->setCaching(1);
self::$categoryTree = $cache->call(array('ShopFunctions', 'categoryListTreeLoop'), $selectedCategories, $cid, $level, $disabledFields);
$cache->setCaching($cached);
// self::$categoryTree = self::categoryListTreeLoop($selectedCategories, $cid, $level, $disabledFields);
// vmTime('end loop categoryListTree '.self::$counter);
}
return self::$categoryTree;
}
示例2: categoryListTree
static public function categoryListTree ($selectedCategories = array(), $cid = 0, $level = 0, $disabledFields = array()) {
if (empty(self::$categoryTree)) {
$cache = JFactory::getCache ('com_virtuemart_cats');
$cache->setCaching (1);
$app = JFactory::getApplication ();
$vendorId = VmConfig::isSuperVendor();
self::$categoryTree = $cache->call (array('ShopFunctions', 'categoryListTreeLoop'), $selectedCategories, $cid, $level, $disabledFields,$app->isSite(),$vendorId,VmConfig::$vmlang);
}
return self::$categoryTree;
}