public function EntityFieldQuery::age

cis7 entity.inc public EntityFieldQuery::age($age)
cle7 entity.inc public EntityFieldQuery::age($age)
elmsmedia7 entity.inc public EntityFieldQuery::age($age)
icor7 entity.inc public EntityFieldQuery::age($age)
meedjum_blog7 entity.inc public EntityFieldQuery::age($age)
mooc7 entity.inc public EntityFieldQuery::age($age)

Queries the current or every revision.

Note that this only affects field conditions. Property conditions always apply to the current revision. @TODO: Once revision tables have been cleaned up, revisit this.

Parameters

$age:

  • FIELD_LOAD_CURRENT (default): Query the most recent revisions for all entities. The results will be keyed by entity type and entity ID.
  • FIELD_LOAD_REVISION: Query all revisions. The results will be keyed by entity type and entity revision ID.

Return value

EntityFieldQuery The called object.

File

includes/entity.inc, line 1049

Class

EntityFieldQuery
Retrieves entities matching a given set of conditions.

Code

public function age($age) {
  $this->age = $age;
  return $this;
}
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.