/** * @return CArrayList|null */ public static function getCacheDiplomConfirmations() { if (is_null(self::$_cacheDiplomConfirmations)) { self::$_cacheDiplomConfirmations = new CArrayList(); foreach (CActiveRecordProvider::getAllFromTable(TABLE_DIPLOM_CONFIRMATIONS)->getItems() as $item) { $term = new CTerm($item); self::$_cacheDiplomConfirmations->add($term->getId(), $term); } } return self::$_cacheDiplomConfirmations; }