WorkflowRelationsAndAttributesToTreeAdapter Class Reference

Inheritance diagram for WorkflowRelationsAndAttributesToTreeAdapter:
WizardModelRelationsAndAttributesToTreeAdapter

Public Member Functions

 __construct (Workflow $workflow, $treeType)
 getData ($nodeId)

Protected Member Functions

 getChildrenNodeData (ModelRelationsAndAttributesToWorkflowAdapter $modelToWorkflowAdapter, RedBeanModel $precedingModel=null, $precedingRelation=null, $nodeIdPrefix=null)
 getAttributesData (ModelRelationsAndAttributesToWorkflowAdapter $modelToWorkflowAdapter, RedBeanModel $precedingModel=null, $precedingRelation=null)
 makeModelRelationsAndAttributesToWorkflowAdapter ($moduleClassName, $modelClassName)
 resolvePrecedingModelRelationAndAdapterByNodeId ($nodeId, &$modelToWorkflowAdapter, &$precedingModel, &$precedingRelation)

Protected Attributes

 $workflow

Detailed Description

Helper class for adapting relation and attribute data into tree data

Definition at line 40 of file WorkflowRelationsAndAttributesToTreeAdapter.php.


Constructor & Destructor Documentation

__construct ( Workflow workflow,
treeType 
)
Parameters:
Workflow $workflow
string $treeType

Definition at line 51 of file WorkflowRelationsAndAttributesToTreeAdapter.php.


Member Function Documentation

getData ( nodeId  ) 
Parameters:
string $nodeId
Returns:
array

Definition at line 62 of file WorkflowRelationsAndAttributesToTreeAdapter.php.

getChildrenNodeData ( ModelRelationsAndAttributesToWorkflowAdapter modelToWorkflowAdapter,
RedBeanModel precedingModel = null,
precedingRelation = null,
nodeIdPrefix = null 
) [protected]
Parameters:
ModelRelationsAndAttributesToWorkflowAdapter $modelToWorkflowAdapter
RedBeanModel $precedingModel
null|string $precedingRelation
null|string $nodeIdPrefix
Returns:
array
Exceptions:
NotSupportedException if one of the relations for the selectable data does not have a module class name defined

Definition at line 109 of file WorkflowRelationsAndAttributesToTreeAdapter.php.

getAttributesData ( ModelRelationsAndAttributesToWorkflowAdapter modelToWorkflowAdapter,
RedBeanModel precedingModel = null,
precedingRelation = null 
) [protected]
Parameters:
ModelRelationsAndAttributesToWorkflowAdapter $modelToWorkflowAdapter
RedBeanModel $precedingModel
null|string $precedingRelation
Returns:
array
Exceptions:
NotSupportedException if the treeType is invalid or null

Definition at line 152 of file WorkflowRelationsAndAttributesToTreeAdapter.php.

makeModelRelationsAndAttributesToWorkflowAdapter ( moduleClassName,
modelClassName 
) [protected]
Parameters:
string $moduleClassName
string $modelClassName
Returns:
ModelRelationsAndAttributesToWorkflowAdapter based object

Definition at line 170 of file WorkflowRelationsAndAttributesToTreeAdapter.php.

resolvePrecedingModelRelationAndAdapterByNodeId ( nodeId,
&$  modelToWorkflowAdapter,
&$  precedingModel,
&$  precedingRelation 
) [protected]
Parameters:
string $nodeId
ModelRelationsAndAttributesToWorkflowAdapter $modelToWorkflowAdapter
RedBeanModel $precedingModel
string $precedingRelation

Definition at line 184 of file WorkflowRelationsAndAttributesToTreeAdapter.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Thu Jul 27 07:10:31 2017