public function FeedsSQLParser::parse in Feeds SQL 7
Implements FeedsParser::parse().
File
- plugins/
FeedsSQLParser.inc, line 11
Class
- FeedsSQLParser
- Parses data from an SQL database.
Code
public function parse(FeedsSource $source, FeedsFetcherResult $fetcher_result) {
$source_config = $source
->getConfigFor($this);
// Construct the standard form of the parsed feed
$result = new FeedsParserResult();
$result->title = '';
$result->description = '';
$result->link = '';
// Iterate through the fetcher results
foreach ($fetcher_result
->getRaw() as $index => $row) {
$result->items[$index] = (array) $row;
}
// Create a result object and return it.
return $result;
}