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
9743f5dc
Commit
9743f5dc
authored
15 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
#706984 lyricnz: Add FeedsSimplePie::parseExtensions() to allow parsing to be customized.
parent
6fdd53f0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.txt
+2
-0
2 additions, 0 deletions
CHANGELOG.txt
plugins/FeedsSimplePieParser.inc
+9
-1
9 additions, 1 deletion
plugins/FeedsSimplePieParser.inc
with
11 additions
and
1 deletion
CHANGELOG.txt
+
2
−
0
View file @
9743f5dc
...
@@ -4,6 +4,8 @@
...
@@ -4,6 +4,8 @@
Feeds 6.x 1.0 xxxxx xx, 2010-xx-xx
Feeds 6.x 1.0 xxxxx xx, 2010-xx-xx
----------------------------------
----------------------------------
- #706984 lyricnz: Add FeedsSimplePie::parseExtensions() to allow parsing to be
customized.
- #728854 Scott Reynolds: Fix $queue->createItem() fails.
- #728854 Scott Reynolds: Fix $queue->createItem() fails.
- #707098 alex_b: Improve performance of nodeapi and access checks.
- #707098 alex_b: Improve performance of nodeapi and access checks.
- #726012 alex_b: Fix RSS descriptions not being reset in
- #726012 alex_b: Fix RSS descriptions not being reset in
...
...
This diff is collapsed.
Click to expand it.
plugins/FeedsSimplePieParser.inc
+
9
−
1
View file @
9743f5dc
...
@@ -110,14 +110,22 @@ class FeedsSimplePieParser extends FeedsParser {
...
@@ -110,14 +110,22 @@ class FeedsSimplePieParser extends FeedsParser {
}
}
$item
[
'domains'
]
=
$domains
;
$item
[
'domains'
]
=
$domains
;
$item
[
'tags'
]
=
$tags
;
$item
[
'tags'
]
=
$tags
;
// Stick the raw data onto the feed item.
// Allow parsing to be extended.
$this
->
parseExtensions
(
$item
,
$simplepie_item
);
$item
[
'raw'
]
=
$simplepie_item
->
data
;
$item
[
'raw'
]
=
$simplepie_item
->
data
;
$batch
->
addItem
(
$item
);
$batch
->
addItem
(
$item
);
}
}
// Release parser.
// Release parser.
unset
(
$parser
);
unset
(
$parser
);
}
}
/**
* Allow extension of FeedsSimplePie item parsing.
*/
protected
function
parseExtensions
(
&
$item
,
$simplepie_item
)
{}
/**
/**
* Return mapping sources.
* Return mapping sources.
*/
*/
...
...
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