public function EntityAPIControllerExportable::resetCache

cis7 entity.controller.inc public EntityAPIControllerExportable::resetCache(array $ids = NULL)
cle7 entity.controller.inc public EntityAPIControllerExportable::resetCache(array $ids = NULL)
elmsmedia7 entity.controller.inc public EntityAPIControllerExportable::resetCache(array $ids = NULL)
icor7 entity.controller.inc public EntityAPIControllerExportable::resetCache(array $ids = NULL)
meedjum_blog7 entity.controller.inc public EntityAPIControllerExportable::resetCache(array $ids = NULL)
mooc7 entity.controller.inc public EntityAPIControllerExportable::resetCache(array $ids = NULL)

Overrides DrupalDefaultEntityController::resetCache().

Overrides EntityAPIController::resetCache

File

sites/all/modules/ulmus/entity/includes/entity.controller.inc, line 866
Provides a controller building upon the core controller but providing more features like full CRUD functionality.

Class

EntityAPIControllerExportable
A controller implementing exportables stored in the database.

Code

public function resetCache(array $ids = NULL) {
  $this->cacheComplete = FALSE;
  if (isset($ids)) {
    foreach (array_intersect_key($this->entityCache, array_flip($ids)) as $id => $entity) {
      unset($this->entityCacheByName[$this->entityCache[$id]->{$this->nameKey}]);
      unset($this->entityCache[$id]);
    }
  }
  else {
    $this->entityCache = array();
    $this->entityCacheByName = array();
  }
}
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.