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
arrayUsually the recordset
getInstance(string $sTable, array $aOptions)
Works as a singleton for one specific table.
stringTable name
arrayOptions 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
arraynull
getItemByProperties(array $aProperties) : array | null
arrayAssoziative key value pairs
arraynull
getItemByProperty(mixed $mProperty, mixed $mValue) : array | null
mixed
mixed
arraynull
getItemsCache() : array
arrayremoveItem(mixed $mId) : void
mixed
removeItems(array $aIds) : void
array
__clone()
__construct(string $sTable, array $aOptions)
stringTable name
arrayOptions 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