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
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
__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
$_iFrame
$_iMaxItemsToCache : int
$_oInstances : array
$_sTable : string