Utility function for the user of consents.

package Gems
subpackage Util
copyright Copyright (c) 2015 Erasmus MC
license New BSD License
since Class available since version 1.7.1
inherited_from \Gems_Registry_CachedArrayTargetAbstract

 Methods

Creates the object.

__construct(mixed $id) 
Inherited

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

Compatibility mode, for use with logical operators returns this->getCode()

__toString() : string

Returns

string

Can you use the data with this code

canBeUsed() : boolean

Returns

boolean

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

checkRegistryRequestsAnswers() : boolean
Inherited

Returns

booleanFalse if required are missing.

Returns the complete record.

getAllData() : array

Returns

array

The reception code.

getCode() : string

Returns

string

getDescription()

getDescription() : boolean

Returns

boolean

hasDescription()

hasDescription() : boolean

Returns

boolean

Empty the cache of the organization

invalidateCache() : \Gems_User_Organization
Inherited

Returns

\Gems_User_Organization(continutation pattern)

isset() safe array access helper function.

_get(string $name) : mixed
Inherited

Parameters

$name

string

Returns

mixed

array access test helper function.

_has(string $name) : boolean
Inherited

Parameters

$name

string

Returns

boolean

Changes a value and signals the cache.

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

Parameters

$name

string

$value

mixed

Returns

\Gems_Registry_CachedArrayTargetAbstract(continuation pattern)

Load the data when the cache is empty.

loadData(mixed $id) : array
inherited_from \Gems_Registry_CachedArrayTargetAbstract::loadData()

Parameters

$id

mixed

Returns

arrayThe array of data values

Load the data when the cache is empty.

loadData(mixed $id) : array
Inherited

Parameters

$id

mixed

Returns

arrayThe array of data values

Get the cacheId for the organization

_getCacheId() : string
Inherited

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('consent')
inherited_from \Gems_Registry_CachedArrayTargetAbstract::_cacheTags
 

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

 

$db

$db : \Zend_Db_Adapter_Abstract

Default

 

Return false on checkRegistryRequestsAnswers when the anser is not an array

$requireArray : boolean

Default

false
inherited_from \Gems_Registry_CachedArrayTargetAbstract::requireArray
 

Return false on checkRegistryRequestsAnswers when the anser is not an array

$requireArray : boolean

Default

true
 

$util

$util : \Gems_Util

Default