Add's automatic caching to an registry target object.

package Gems
subpackage Registry
copyright Copyright (c) 2011 Erasmus MC
license New BSD License
since Class available since version 1.5
inherited_from \Gems_Registry_TargetAbstract

 Methods

Creates the object.

__construct(mixed $id) 

Parameters

$id

mixed

Whatever identifies this object.

Returns a callable if a method is called as a variable

__get(string $name) : Callable
Inherited

Parameters

$name

string

Returns

Callable

Should be called after answering the request to allow the Target to check if all required registry values have been set correctly.

checkRegistryRequestsAnswers() : boolean

Returns

booleanFalse if required are missing.

Empty the cache of the organization

invalidateCache() : \Gems_User_Organization

Returns

\Gems_User_Organization(continutation pattern)

isset() safe array access helper function.

_get(string $name) : mixed

Parameters

$name

string

Returns

mixed

array access test helper function.

_has(string $name) : boolean

Parameters

$name

string

Returns

boolean

Changes a value and signals the cache.

_set(string $name, mixed $value) : \Gems_Registry_CachedArrayTargetAbstract

Parameters

$name

string

$value

mixed

Returns

\Gems_Registry_CachedArrayTargetAbstract(continuation pattern)

Load the data when the cache is empty.

loadData(mixed $id) : array

Parameters

$id

mixed

Returns

arrayThe array of data values

Get the cacheId for the organization

_getCacheId() : string

Returns

string

 Properties

 

Does this data item exist?

$exists : boolean

Default

false
 

Variable to add tags to the cache for cleanup.

$_cacheTags : array

Default

array()
 

The current data.

$_data : array

Default

 

The id for this data

$_id : mixed

Default

 

$cache

$cache : \Zend_Cache_Core

Default

 

Return false on checkRegistryRequestsAnswers when the anser is not an array

$requireArray : boolean

Default

true