You are here

protected function BatTypeController::cacheGet in Booking and Availability Management Tools for Drupal 7

Overridden.

Overrides DrupalDefaultEntityController::cacheGet

See also

DrupalDefaultEntityController::cacheGet()

File

modules/bat_unit/bat_unit.module, line 2123

Class

BatTypeController
The Controller for BatType entities.

Code

protected function cacheGet($ids, $conditions = array()) {
  if (!empty($this->entityCache) && $ids !== array()) {
    $entities = $ids ? array_intersect_key($this->entityCache, array_flip($ids)) : $this->entityCache;
    return $this
      ->applyConditions($entities, $conditions);
  }
  return array();
}