Class cItemCache
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.
Package: Core\GenericDB
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Murat Purc <murat@purc.de>
Located at classes/genericdb/class.item.cache.php
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Murat Purc <murat@purc.de>
Located at classes/genericdb/class.item.cache.php
protected
|
#
__construct( string $sTable, array $aOptions = array() )
Constructor to create an instance of this class. |
protected
|
|
public static
|
#
getInstance( string $sTable, array $aOptions = array() )
Returns item cache instance, creates it, if not done before. Works as a singleton for one specific table. |
public
array
|
|
public
array|null
|
|
public
array|null
|
#
getItemByProperty( mixed $mProperty, mixed $mValue )
Returns existing entry from cache by matching propery value. |
public
array|null
|
#
getItemByProperties( array $aProperties )
Returns existing entry from cache by matching properties and their values. |
public
|null
|
|
public
|null
|
|
public
|null
|
protected static
array
|
$_oInstances | array() |
#
List of self instances (cItemCache) |
protected
array
|
$_aItemsCache | array() |
#
Assoziative cache array |
protected
string
|
$_sTable | '' |
#
Table name for current instance |
protected
integer
|
$_iMaxItemsToCache | 10 |
#
Max number of items to cache |
protected
boolean
|
$_bEnable | false |
#
Enable caching |