Esempio n. 1
0
 private static function getCatalogPrices()
 {
     if (!isset(self::$catalogPriceCache)) {
         self::$catalogPriceCache = array();
         if (self::$catalogIncluded === null) {
             self::$catalogIncluded = Loader::includeModule('catalog');
         }
         if (self::$catalogIncluded) {
             $rsPrice = CCatalogGroup::GetListEx(array("SORT" => "ASC"), array(), false, false, array("ID", "NAME"));
             while ($price = $rsPrice->Fetch()) {
                 self::$catalogPriceCache[] = $price;
             }
         }
     }
     return self::$catalogPriceCache;
 }