/** * get the files of the release. * * @param int $relase_id the ID of the release the files belong to */ function &getFRSFilesFromDb($release_id) { $_id = (int) $release_id; $dao =& $this->_getFRSFileDao(); $dar = $dao->searchByReleaseId($_id); $files = array(); if (!$dar->isError() && $dar->valid()) { while ($dar->valid()) { $data_array =& $dar->current(); $files[] = FRSFileFactory::getFRSFileFromArray($data_array); $dar->next(); } } return $files; }