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();
  }
}