class EntityMetadataArrayObject

  1. cis7 sites/all/modules/ulmus/entity/includes/entity.wrapper.inc EntityMetadataArrayObject
  2. cle7 sites/all/modules/ulmus/entity/includes/entity.wrapper.inc EntityMetadataArrayObject
  3. elmsmedia7 sites/all/modules/ulmus/entity/includes/entity.wrapper.inc EntityMetadataArrayObject
  4. icor7 sites/all/modules/ulmus/entity/includes/entity.wrapper.inc EntityMetadataArrayObject
  5. meedjum_blog7 sites/all/modules/ulmus/entity/includes/entity.wrapper.inc EntityMetadataArrayObject
  6. mooc7 sites/all/modules/ulmus/entity/includes/entity.wrapper.inc EntityMetadataArrayObject

An array object implementation keeping the reference on the given array so changes to the object are reflected in the passed array.

Hierarchy

Expanded class hierarchy of EntityMetadataArrayObject

Members

Contains filters are case sensitive

File

sites/all/modules/ulmus/entity/includes/entity.wrapper.inc, line 1178
Provides wrappers allowing easy usage of the entity metadata.

View source
class EntityMetadataArrayObject implements ArrayAccess, Countable, IteratorAggregate {

  protected $data;

  public function __construct(&$array) {
    $this->data = &$array;
  }

  public function &getArray() {
    return $this->data;
  }

  /**
   * Implements the ArrayAccess interface.
   */
  public function offsetGet($delta) {
    return $this->data[$delta];
  }

  public function offsetExists($delta) {
    return array_key_exists($delta, $this->data);
  }

  public function offsetSet($delta, $value) {
    $this->data[$delta] = $value;
  }

  public function offsetUnset($delta) {
    unset($this->data[$delta]);
  }

  public function count() {
    return count($this->data);
  }

  public function getIterator() {
    return new ArrayIterator($this->data);
  }
}
1 string reference to 'EntityMetadataArrayObject'
og-7.x-1.x.database.php in sites/all/modules/ulmus/og/tests/og-7.x-1.x.database.php
Filled installation of Drupal 7.0, for test purposes.
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.