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
7ecebc72
Commit
7ecebc72
authored
14 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
Move FeedsTermElement up to the parser level.
parent
ad927e9e
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
mappers/taxonomy.inc
+0
-12
0 additions, 12 deletions
mappers/taxonomy.inc
plugins/FeedsParser.inc
+17
-0
17 additions, 0 deletions
plugins/FeedsParser.inc
with
17 additions
and
12 deletions
mappers/taxonomy.inc
+
0
−
12
View file @
7ecebc72
...
@@ -6,18 +6,6 @@
...
@@ -6,18 +6,6 @@
* Mapper that exposes a node's taxonomy vocabularies as mapping targets.
* Mapper that exposes a node's taxonomy vocabularies as mapping targets.
*/
*/
/**
* Encapsulates a taxonomy style term object.
*/
class
FeedsTermElement
extends
FeedsElement
{
public
$tid
,
$vid
;
public
function
__construct
(
$term
)
{
parent
::
__construct
(
$term
->
name
);
$this
->
tid
=
$term
->
tid
;
$this
->
vid
=
$term
->
vid
;
}
}
/**
/**
* Implementation of hook_feeds_parser_sources_alter().
* Implementation of hook_feeds_parser_sources_alter().
*/
*/
...
...
This diff is collapsed.
Click to expand it.
plugins/FeedsParser.inc
+
17
−
0
View file @
7ecebc72
...
@@ -133,6 +133,23 @@ class FeedsElement {
...
@@ -133,6 +133,23 @@ class FeedsElement {
}
}
}
}
/**
* Encapsulates a taxonomy style term object.
*/
class
FeedsTermElement
extends
FeedsElement
{
public
$tid
,
$vid
;
/**
* @param $term
* A stdClass object that is a Drupal taxonomy term.
*/
public
function
__construct
(
$term
)
{
parent
::
__construct
(
$term
->
name
);
$this
->
tid
=
$term
->
tid
;
$this
->
vid
=
$term
->
vid
;
}
}
/**
/**
* Enclosure element, can be part of the result array.
* Enclosure element, can be part of the result array.
*/
*/
...
...
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