Class cItemCache.
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.
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
removeItems(array $aIds) : void
array
__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
$_iMaxItemsToCache : int
$_oInstances : array
$_sTable : string