LAYOUT_PRIORITY
LAYOUT_PRIORITY
Represents a tree structure over many Fuman_Table's.
The action is different to other actions, because it can added multiple times with various unique names. Its also possible to configures unique actions.
Used Uri Param to route to Fuman_Action_Unique_Abstract : unique_name
$_responseData : \Fuman_Response_Data
initConfigByRequest(\Fuman_Request $request, \Fuman_Form_Model_Basic $formModel, \Fuman_Db_Record $record)
Init config by request
\Fuman_Request | $request | |
\Fuman_Form_Model_Basic | $formModel | |
\Fuman_Db_Record | $record |
prepareConfig(\Fuman_Form_Model_Basic $formModel) : void
Creates config field with a list of table to chose from. The chosen table will be addable in the tree.
\Fuman_Form_Model_Basic | $formModel |
getActionDescriptor() : \Fuman_Action_Descriptor|null
Gets action descriptor
onRecordDeleted(\Fuman_Db_Record $record) : void
When a record was deleted, its node in the tree will be deleted as well.
\Fuman_Db_Record | $record |
onRecordSaved(\Fuman_Db_Record $record) : void
When a record was saved and the correct uri-params are set, a new node in the tree will be created.
Required uri-params:
app_core_action_tree:name : unique-name of tree.
app_core_action_tree:id_parent parent id of new node.
[optional]app_core_action_tree:id_previous : id of the previous node.
\Fuman_Db_Record | $record |
_isProtectionHashValid(string $appName, string $actionName, \Fuman_Table $table, string $id) : boolean
Check protection hash
string | $appName | |
string | $actionName | |
\Fuman_Table | $table | |
string | $id |