Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feeds
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
feeds
Commits
1653533c
Commit
1653533c
authored
15 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
feeds.module
+5
-0
5 additions, 0 deletions
feeds.module
plugins/FeedsCSVParser.inc
+19
-0
19 additions, 0 deletions
plugins/FeedsCSVParser.inc
plugins/FeedsSyndicationParser.inc
+0
-8
0 additions, 8 deletions
plugins/FeedsSyndicationParser.inc
with
24 additions
and
8 deletions
feeds.module
+
5
−
0
View file @
1653533c
...
@@ -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'
,
...
...
This diff is collapsed.
Click to expand it.
plugins/FeedsCSVParser.inc
0 → 100644
+
19
−
0
View file @
1653533c
<?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
This diff is collapsed.
Click to expand it.
plugins/FeedsSyndicationParser.inc
+
0
−
8
View file @
1653533c
...
@@ -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.
*/
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment