TYPO3
7.6
|
Public Member Functions | |
__construct (array $data=array()) | |
asort () | |
nodeCompare (\TYPO3\CMS\Backend\Tree\TreeNode $node,\TYPO3\CMS\Backend\Tree\TreeNode $otherNode) | |
serialize () | |
unserialize ($serializedString) | |
toArray () | |
dataFromArray ($data) | |
Tree Node Collection
Definition at line 20 of file TreeNodeCollection.php.
__construct | ( | array | $data = array() | ) |
Constructor
You can move an initial data array to initialize the instance and further objects. This is useful for the deserialization.
array | $data |
Definition at line 30 of file TreeNodeCollection.php.
References TreeNodeCollection\dataFromArray().
asort | ( | ) |
Sorts the internal nodes array
Definition at line 42 of file TreeNodeCollection.php.
Referenced by SortedTreeNodeCollection\append().
dataFromArray | ( | $data | ) |
Sets the data of the node collection by a given array
array | $data |
Definition at line 109 of file TreeNodeCollection.php.
Referenced by TreeNodeCollection\__construct(), and TreeNodeCollection\unserialize().
nodeCompare | ( | \TYPO3\CMS\Backend\Tree\TreeNode | $node, |
\TYPO3\CMS\Backend\Tree\TreeNode | $otherNode | ||
) |
Compares a node with another one
Definition at line 54 of file TreeNodeCollection.php.
serialize | ( | ) |
Returns the serialized instance
Definition at line 64 of file TreeNodeCollection.php.
References TreeNodeCollection\toArray().
toArray | ( | ) |
Returns the collection in an array representation for e.g. serialization
Definition at line 90 of file TreeNodeCollection.php.
Referenced by TreeNodeCollection\serialize().
unserialize | ( | $serializedString | ) |
Initializes the current object with a serialized instance
string | $serializedString |
\TYPO3\CMS\Core\Exception | if the deserialized is not identical to the current class |
Definition at line 76 of file TreeNodeCollection.php.
References TreeNodeCollection\dataFromArray().