class FeedsElement

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

Defines an element of a parsed result. Such an element can be a simple type, a complex type (derived from FeedsElement) or an array of either.

See also

FeedsEnclosure

Hierarchy

Expanded class hierarchy of FeedsElement

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
FeedsElement::$value protected property
FeedsElement::getValue public function @todo Make value public and deprecate use of getValue().
FeedsElement::__construct public function Constructor.
FeedsElement::__toString public function Magic method __toString() for printing and string conversion of this object.

File

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

View source
class FeedsElement {
  // The standard value of this element. This value can contain be a simple type,
  // a FeedsElement or an array of either.
  protected $value;

  /**
   * Constructor.
   */
  public function __construct($value) {
    $this->value = $value;
  }

  /**
   * @todo Make value public and deprecate use of getValue().
   *
   * @return
   *   Value of this FeedsElement represented as a scalar.
   */
  public function getValue() {
    return $this->value;
  }

  /**
   * Magic method __toString() for printing and string conversion of this
   * object.
   *
   * @return
   *   A string representation of this element.
   */
  public function __toString() {
    if (is_array($this->value)) {
      return 'Array';
    }
    if (is_object($this->value)) {
      return 'Object';
    }
    return (string) $this->getValue();
  }
}
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.