/** * Exports the given keywords to CSV * * @return string the generated CSV code **/ function exportKeywordsToCSV($testproject_id, $delim = ';') { $kwIDs = $this->getKeywordIDsFor($testproject_id); $csv = null; for ($idx = 0; $idx < sizeof($kwIDs); $idx++) { $keyword = new tlKeyword($kwIDs[$idx]); $keyword->readFromDb($this->db); $keyword->writeToCSV($csv, $delim); } return $csv; }