WizardModelRelationsAndAttributesToTreeAdapter Class Reference

Inheritance diagram for WizardModelRelationsAndAttributesToTreeAdapter:
ReportRelationsAndAttributesToTreeAdapter WorkflowRelationsAndAttributesToTreeAdapter CalendarReportRelationsAndAttributesToTreeAdapter MergeTagsReportRelationsAndAttributesToTreeAdapter

Public Member Functions

 getTreeType ()

Static Public Member Functions

static removeTreeTypeFromNodeId ($nodeId, $treeType)
static resolveInputPrefixData ($formModelClassName, $treeType, $rowNumber)
static resolveAttributeByNodeId ($nodeIdWithoutTreeType)

Protected Member Functions

 makeNodeId ($relation, $nodeIdPrefix=null)
 resolveTreeTypeForMakingOrExplodingNodeId ()
 resolveNodeIdPrefixByNodeId ($nodeId)
 resolveNodeIdByRemovingTreeType ($nodeId)

Protected Attributes

 $treeType

Detailed Description

Helper class for adapting relation and attribute data into tree data Extended by adapters in reporting and workflow

Definition at line 41 of file WizardModelRelationsAndAttributesToTreeAdapter.php.


Member Function Documentation

static removeTreeTypeFromNodeId ( nodeId,
treeType 
) [static]
See also:
ReportsDefaultController::actionAddAttributeFromTree for an example of where this is called from The nodeId has the treeType as a prefix in order to distinguish from other nodes in the user interface.
Parameters:
string $nodeId
string $treeType
Returns:
string nodeId without the prefixed treeType

Definition at line 55 of file WizardModelRelationsAndAttributesToTreeAdapter.php.

static resolveInputPrefixData ( formModelClassName,
treeType,
rowNumber 
) [static]
See also:
ReportsDefaultController::actionAddAttributeFromTree for an example of where this is called from
Parameters:
string $formModelClassName
string $treeType
integer $rowNumber
Returns:
array of input prefix parts. Excludes the last element which is typically an attribute since this is not part of the prefix for an Element. Adds in the formModelClassName, a treeType, and then the rowNumber as the first 2 elements.

Definition at line 72 of file WizardModelRelationsAndAttributesToTreeAdapter.php.

static resolveAttributeByNodeId ( nodeIdWithoutTreeType  )  [static]

Extracts the attribute which is the last part of the nodeId and

Returns:
the attribute string.
See also:
ReportsDefaultController::actionAddAttributeFromTree for an example of where this is called from
Parameters:
string $nodeIdWithoutTreeType
Returns:
string

Definition at line 90 of file WizardModelRelationsAndAttributesToTreeAdapter.php.

getTreeType (  ) 
Returns:
string

Definition at line 99 of file WizardModelRelationsAndAttributesToTreeAdapter.php.

makeNodeId ( relation,
nodeIdPrefix = null 
) [protected]
Parameters:
string $relation
null|string $nodeIdPrefix
Returns:
string

Definition at line 109 of file WizardModelRelationsAndAttributesToTreeAdapter.php.

resolveNodeIdPrefixByNodeId ( nodeId  )  [protected]
Parameters:
string $nodeId
Returns:
null|string

Definition at line 131 of file WizardModelRelationsAndAttributesToTreeAdapter.php.

resolveNodeIdByRemovingTreeType ( nodeId  )  [protected]
Parameters:
$nodeId 
Returns:
string

Definition at line 146 of file WizardModelRelationsAndAttributesToTreeAdapter.php.


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