/** * Все вопросы к ГОСам, какие есть * * @static * @return CArrayList */ public static function getAllQuestions() { if (!self::$_cacheInit) { self::$_cacheInit = true; foreach (CActiveRecordProvider::getAllFromTable(TABLE_SEB_QUESTIONS)->getItems() as $i) { $q = new CSEBQuestion($i); self::getCacheQuestions()->add($q->getId(), $q); } } return self::getCacheQuestions(); }