/** * Кэш форм обучения * * @static * @return CArrayList */ public static function getCacheEducationForms() { if (is_null(self::$_cacheEdForms)) { self::$_cacheEdForms = new CArrayList(); foreach (CActiveRecordProvider::getAllFromTable(TABLE_EDUCATION_FORMS)->getItems() as $item) { $term = new CTerm($item); self::$_cacheEdForms->add($term->getId(), $term); } } return self::$_cacheEdForms; }