/** * Все протоколы заседаний кафедры * * @static * @return CArrayList */ public static function getAllDepProtocols() { if (!self::$_cacheDepProtocolsInit) { self::$_cacheDepProtocolsInit = true; foreach (CActiveRecordProvider::getAllFromTable(TABLE_DEPARTMENT_PROTOCOLS)->getItems() as $i) { $protocol = new CDepartmentProtocol($i); self::getCacheDepProtocols()->add($protocol->getId(), $protocol); } } return self::getCacheDepProtocols(); }