Esempio n. 1
0
 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;
 }
Esempio n. 2
0
	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;
	}