Ejemplo n.º 1
0
 public static function GetAll()
 {
     $taxes = isset(self::$TAXES) ? self::$TAXES : null;
     if (!$taxes && CModule::IncludeModule('sale')) {
         $taxes = array();
         $dbResultList = CSaleTax::GetList(array('NAME' => 'ASC'));
         while ($arTax = $dbResultList->Fetch()) {
             $taxes[$arTax['ID']] = $arTax;
         }
         self::$TAXES = $taxes;
     }
     return $taxes;
 }