/** * @return CArrayList */ private static function getCacheControlTypes() { if (is_null(self::$_cacheControlTypes)) { self::$_cacheControlTypes = new CArrayList(); foreach (CActiveRecordProvider::getWithCondition(TABLE_STUDENTS_CONTROL_TYPES, "1=1", "name asc")->getItems() as $item) { $term = new CTerm($item); self::$_cacheControlTypes->add($term->getId(), $term); } } return self::$_cacheControlTypes; }