Skip to content
Snippets Groups Projects
Commit 1653533c authored by Alex Barth's avatar Alex Barth
Browse files

Add CSV parser, remove getName and getDescription methods from parsers.

parent 30dc0832
No related branches found
No related tags found
No related merge requests found
...@@ -43,6 +43,11 @@ function feeds_feeds_plugin() { ...@@ -43,6 +43,11 @@ function feeds_feeds_plugin() {
'file' => drupal_get_path('module', 'feeds') .'/plugins/FeedsHttpFetcher.inc', 'file' => drupal_get_path('module', 'feeds') .'/plugins/FeedsHttpFetcher.inc',
'parent' => 'FeedsFetcher', 'parent' => 'FeedsFetcher',
), ),
'FeedsCSVParser' => array(
'name' => t('CSV parser'),
'file' => drupal_get_path('module', 'feeds') .'/plugins/FeedsCSVParser.inc',
'parent' => 'FeedsParser',
),
'FeedsSyndicationParser' => array( 'FeedsSyndicationParser' => array(
'name' => t('Common syndication parser'), 'name' => t('Common syndication parser'),
'file' => drupal_get_path('module', 'feeds') .'/plugins/FeedsSyndicationParser.inc', 'file' => drupal_get_path('module', 'feeds') .'/plugins/FeedsSyndicationParser.inc',
......
<?php
// $Id$
class FeedsCSVParser extends FeedsParser {
/**
* Parses a raw string and returns a Feed object from it.
*/
public function parse($raw) {
}
/**
* Return mapping sources.
*/
public function getMappingSources() {
return array();
}
}
\ No newline at end of file
...@@ -3,14 +3,6 @@ ...@@ -3,14 +3,6 @@
class FeedsSyndicationParser extends FeedsParser { class FeedsSyndicationParser extends FeedsParser {
public static function getName() {
return t('Syndication Parser');
}
public static function getDescription() {
return t('Parses RSS and Atom feeds.');
}
/** /**
* Parses a raw string and returns a Feed object from it. * Parses a raw string and returns a Feed object from it.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment