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
8debb0a2
Commit
8debb0a2
authored
15 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
Mark up code in comments.
parent
5a5ebbdc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/FeedsBatch.inc
+4
-0
4 additions, 0 deletions
includes/FeedsBatch.inc
with
4 additions
and
0 deletions
includes/FeedsBatch.inc
+
4
−
0
View file @
8debb0a2
...
...
@@ -32,16 +32,20 @@ class FeedsBatch {
* A Parser must populate a FeedsImportBatch object through the set methods upon
* parse(). For instance:
*
* @code
* $batch->setItems($parsed_rows);
* $batch->setTitle('My imported document');
* @endcode
*
* Finally, a processor can work off the information produced on the parsing
* stage by consuming items with $batch->shiftItem().
*
* @code
* while ($item = $batch->shiftItem()) {
* $object = $this->map($item);
* $object->save();
* }
* @endcode
*
* Note: Knowledge of the internal structure of a single item in the $items
* array is managed by the mapping API specified in FeedsParser class and
...
...
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