Detailed Description
PersistenceActionKeyProvider searches for action keys in the application storage.
Definition at line 28 of file PersistenceActionKeyProvider.php.
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
-
$entityType String
Definition at line 58 of file PersistenceActionKeyProvider.php.
◆ setValueMap()
setValueMap | ( | $valueMap | ) |
Set the value map for the entity type.
- Parameters
-
$valueMap Associative 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 | ) |
- See also
- ActionKeyProvider::containsKey()
Implements ActionKeyProvider.
Definition at line 75 of file PersistenceActionKeyProvider.php.
◆ getKeyValue()
getKeyValue | ( | $actionKey | ) |
- See also
- ActionKeyProvider::getKeyValue()
Implements ActionKeyProvider.
Definition at line 82 of file PersistenceActionKeyProvider.php.
◆ getId()
getId | ( | ) |
- See also
- ActionKeyProvider::getId()
Implements ActionKeyProvider.
Definition at line 101 of file PersistenceActionKeyProvider.php.
◆ 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()
|
protected |
Get a single key value from the storage.
- Parameters
-
$actionKey The action key
- Returns
- String
Definition at line 138 of file PersistenceActionKeyProvider.php.
◆ keyChanged()
keyChanged | ( | PersistenceEvent | $event | ) |
Listen to PersistentEvent.
- Parameters
-
$event PersistentEvent instance
Definition at line 156 of file PersistenceActionKeyProvider.php.