PersistenceActionKeyProvider Class Reference

Detailed Description

PersistenceActionKeyProvider searches for action keys in the application storage.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 28 of file PersistenceActionKeyProvider.php.

+ Inheritance diagram for PersistenceActionKeyProvider:

Public Member Functions

 __construct ()
 
 __destruct ()
 
 setEntityType ($entityType)
 
 setValueMap ($valueMap)
 
 containsKey ($actionKey)
 
 getKeyValue ($actionKey)
 
 getId ()
 
 keyChanged (PersistenceEvent $event)
 

Protected Member Functions

 getAllKeyValues ()
 
 getSingleKeyValue ($actionKey)
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Constructor.

Definition at line 41 of file PersistenceActionKeyProvider.php.

◆ __destruct()

__destruct ( )

Destructor.

Definition at line 49 of file PersistenceActionKeyProvider.php.

Member Function Documentation

◆ setEntityType()

setEntityType (   $entityType)

Set the entity type to search in.

Parameters
$entityTypeString

Definition at line 58 of file PersistenceActionKeyProvider.php.

◆ setValueMap()

setValueMap (   $valueMap)

Set the value map for the entity type.

Parameters
$valueMapAssociative array that maps the keys 'resource', 'context', 'action', 'value' to value names of the entity type.

Definition at line 68 of file PersistenceActionKeyProvider.php.

◆ containsKey()

containsKey (   $actionKey)

◆ getKeyValue()

getKeyValue (   $actionKey)

◆ getId()

getId ( )
See also
ActionKeyProvider::getId()

Implements ActionKeyProvider.

Definition at line 101 of file PersistenceActionKeyProvider.php.

◆ getAllKeyValues()

getAllKeyValues ( )
protected

Get all key values from the storage.

Returns
Associative array with action keys as keys

Definition at line 112 of file PersistenceActionKeyProvider.php.

◆ getSingleKeyValue()

getSingleKeyValue (   $actionKey)
protected

Get a single key value from the storage.

Parameters
$actionKeyThe action key
Returns
String

Definition at line 138 of file PersistenceActionKeyProvider.php.

◆ keyChanged()

keyChanged ( PersistenceEvent  $event)

Listen to PersistentEvent.

Parameters
$eventPersistentEvent instance

Definition at line 156 of file PersistenceActionKeyProvider.php.