/** * Кэш словарей таксономии * * @static * @return CArrayList */ public static function getCacheTaxonomy() { if (is_null(self::$_cacheTaxonomy)) { self::$_cacheTaxonomy = new CArrayList(); foreach (CActiveRecordProvider::getAllFromTable(TABLE_TAXONOMY, "name asc")->getItems() as $item) { $taxonomy = new CTaxonomy($item); self::$_cacheTaxonomy->add($taxonomy->getAlias(), $taxonomy); self::$_cacheTaxonomy->add($taxonomy->getId(), $taxonomy); } } return self::$_cacheTaxonomy; }