All Data Structures Functions Variables Pages
Public Member Functions | Protected Member Functions | Protected Attributes
WorkflowRelationsAndAttributesToTreeAdapter Class Reference
Inheritance diagram for WorkflowRelationsAndAttributesToTreeAdapter:
WizardModelRelationsAndAttributesToTreeAdapter

Public Member Functions

 __construct (Workflow $workflow, $treeType)
 
 getData ($nodeId)
 
- Public Member Functions inherited from WizardModelRelationsAndAttributesToTreeAdapter
 getTreeType ()
 

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 Member Functions inherited from WizardModelRelationsAndAttributesToTreeAdapter
 makeNodeId ($relation, $nodeIdPrefix=null)
 
 resolveTreeTypeForMakingOrExplodingNodeId ()
 
 resolveNodeIdPrefixByNodeId ($nodeId)
 
 resolveNodeIdByRemovingTreeType ($nodeId)
 

Protected Attributes

 $workflow
 
- Protected Attributes inherited from WizardModelRelationsAndAttributesToTreeAdapter
 $treeType
 

Additional Inherited Members

- Static Public Member Functions inherited from WizardModelRelationsAndAttributesToTreeAdapter
static removeTreeTypeFromNodeId ($nodeId, $treeType)
 
static resolveInputPrefixData ($formModelClassName, $treeType, $rowNumber)
 
static resolveAttributeByNodeId ($nodeIdWithoutTreeType)
 

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
NotSupportedExceptionif 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
NotSupportedExceptionif 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:
Generated on Mon Jan 27 2020 07:10:52