class FeedsParserResult

  1. cis7 sites/all/modules/ulmus/feeds/plugins/FeedsParser.inc FeedsParserResult
  2. cle7 sites/all/modules/ulmus/feeds/plugins/FeedsParser.inc FeedsParserResult
  3. elmsmedia7 sites/all/modules/ulmus/feeds/plugins/FeedsParser.inc FeedsParserResult
  4. icor7 sites/all/modules/ulmus/feeds/plugins/FeedsParser.inc FeedsParserResult
  5. meedjum_blog7 sites/all/modules/ulmus/feeds/plugins/FeedsParser.inc FeedsParserResult
  6. mooc7 sites/all/modules/ulmus/feeds/plugins/FeedsParser.inc FeedsParserResult

A result of a parsing stage.

Hierarchy

Expanded class hierarchy of FeedsParserResult

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
FeedsParserResult::$current_item public property
FeedsParserResult::$description public property
FeedsParserResult::$items public property
FeedsParserResult::$link public property
FeedsParserResult::$title public property
FeedsParserResult::currentItem public function
FeedsParserResult::shiftItem public function @todo Move to a nextItem() based approach, not consuming the item array. Can only be done once we don't cache the entire batch object between page loads for batching anymore.
FeedsParserResult::__construct public function Constructor.

File

sites/all/modules/ulmus/feeds/plugins/FeedsParser.inc, line 11
Contains FeedsParser and related classes.

View source
class FeedsParserResult extends FeedsResult {
  public $title;
  public $description;
  public $link;
  public $items;
  public $current_item;

  /**
   * Constructor.
   */
  public function __construct($items = array()) {
    $this->title = '';
    $this->description = '';
    $this->link = '';
    $this->items = $items;
  }

  /**
   * @todo Move to a nextItem() based approach, not consuming the item array.
   *   Can only be done once we don't cache the entire batch object between page
   *   loads for batching anymore.
   *
   * @return
   *   Next available item or NULL if there is none. Every returned item is
   *   removed from the internal array.
   */
  public function shiftItem() {
    $this->current_item = array_shift($this->items);
    return $this->current_item;
  }

  /**
   * @return
   *   Current result item.
   */
  public function currentItem() {
    return empty($this->current_item) ? NULL : $this->current_item;
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.