entitycache.taxonomy.inc in Entity cache 7
Taxonomy entity controllers with persistent cache.
File
includes/entitycache.taxonomy.incView source
<?php
/**
* @file
* Taxonomy entity controllers with persistent cache.
*/
/**
* Taxonomy term entity controller class with persistent cache.
*/
class EntityCacheTaxonomyTermController extends TaxonomyTermController implements EntityCacheEntityControllerInterface {
/**
* {@inheritdoc}
*/
public function resetCache(array $ids = NULL) {
EntityCacheControllerHelper::resetEntityCache($this, $ids);
$this
->resetStaticCache($ids);
}
/**
* {@inheritdoc}
*/
public function resetStaticCache(array $ids = NULL) {
parent::resetCache($ids);
}
/**
* {@inheritdoc}
*/
public function load($ids = array(), $conditions = array()) {
return EntityCacheControllerHelper::entityCacheLoad($this, $ids, $conditions);
}
}
/**
* Taxonomy vocabulary entity controller class with persistent cache.
*/
class EntityCacheTaxonomyVocabularyController extends TaxonomyVocabularyController implements EntityCacheEntityControllerInterface {
/**
* {@inheritdoc}
*/
public function resetCache(array $ids = NULL) {
EntityCacheControllerHelper::resetEntityCache($this, $ids);
$this
->resetStaticCache($ids);
}
/**
* {@inheritdoc}
*/
public function resetStaticCache(array $ids = NULL) {
parent::resetCache($ids);
}
/**
* {@inheritdoc}
*/
public function load($ids = array(), $conditions = array()) {
return EntityCacheControllerHelper::entityCacheLoad($this, $ids, $conditions);
}
}
Classes
Name![]() |
Description |
---|---|
EntityCacheTaxonomyTermController | Taxonomy term entity controller class with persistent cache. |
EntityCacheTaxonomyVocabularyController | Taxonomy vocabulary entity controller class with persistent cache. |