interface DrupalEntityControllerInterface

  1. cis7 includes/entity.inc DrupalEntityControllerInterface
  2. cle7 includes/entity.inc DrupalEntityControllerInterface
  3. elmsmedia7 includes/entity.inc DrupalEntityControllerInterface
  4. icor7 includes/entity.inc DrupalEntityControllerInterface
  5. meedjum_blog7 includes/entity.inc DrupalEntityControllerInterface
  6. mooc7 includes/entity.inc DrupalEntityControllerInterface

Interface for entity controller classes.

All entity controller classes specified via the 'controller class' key returned by hook_entity_info() or hook_entity_info_alter() have to implement this interface.

Most simple, SQL-based entity controllers will do better by extending DrupalDefaultEntityController instead of implementing this interface directly.

Hierarchy

Expanded class hierarchy of DrupalEntityControllerInterface

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
DrupalEntityControllerInterface::load public function Loads one or more entities.
DrupalEntityControllerInterface::resetCache public function Resets the internal, static entity cache.

File

includes/entity.inc, line 14

View source
interface DrupalEntityControllerInterface {

  /**
   * Resets the internal, static entity cache.
   *
   * @param $ids
   *   (optional) If specified, the cache is reset for the entities with the
   *   given ids only.
   */
  public function resetCache(array $ids = NULL);

  /**
   * Loads one or more entities.
   *
   * @param $ids
   *   An array of entity IDs, or FALSE to load all entities.
   * @param $conditions
   *   An array of conditions in the form 'field' => $value.
   *
   * @return
   *   An array of entity objects indexed by their ids. When no results are
   *   found, an empty array is returned.
   */
  public function load($ids = array(), $conditions = array());
}
1 string reference to 'DrupalEntityControllerInterface'
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.