addItem()
getInstance()
getItem()
getItemByProperties()
getItemByProperty()
getItemsCache()
removeItem()
__clone()
__construct()
$_aItemsCache
$_bEnable
$_iFrame
$_iMaxItemsToCache
$_oInstances
$_sTable
Class Contenido_ItemCache.
Implements features to cache entries, usually result sets of Item classes. Contains a list of self instances, where each instance contains cached Items fore one specific table.
author | Murat Purc |
---|---|
version | 0.1.2 |
copyright | four for business AG <www.4fb.de> |
addItem(mixed $mId, array $aData) : void
mixed
array
Usually the recordset
getInstance(string $sTable, array $aOptions)
Works as a singleton for one specific table.
string
Table name
array
Options array as follows: - $aOptions['max_items_to_cache'] = (int) Number of items to cache - $aOptions['enable'] = (bool) Flag to enable caching
getItem(mixed $mId) : array | null
mixed
array
null
getItemByProperties(array $aProperties) : array | null
array
Assoziative key value pairs
array
null
getItemByProperty(mixed $mProperty, mixed $mValue) : array | null
mixed
mixed
array
null
getItemsCache() : array
array
removeItem(mixed $mId) : void
mixed
__clone()
__construct(string $sTable, array $aOptions)
string
Table name
array
Options array as follows: - $aOptions['max_items_to_cache'] = (int) Number of items to cache - $aOptions['enable'] = (bool) Flag to enable caching
$_aItemsCache : array
$_bEnable : bool
$_iFrame
$_iMaxItemsToCache : int
$_oInstances : array
$_sTable : string