2 namespace TYPO3\CMS\Backend\Tree;
44 $this->uasort(array($this,
'nodeCompare'));
56 return $node->compareTo($otherNode);
78 $arrayRepresentation =
unserialize($serializedString);
79 if ($arrayRepresentation[
'serializeClassName'] !== get_class($this)) {
80 throw new \TYPO3\CMS\Core\Exception(
'Deserialized object type is not identical!', 1294586647);
92 $arrayRepresentation = array(
93 'serializeClassName' => get_class($this)
95 $iterator = $this->getIterator();
96 while ($iterator->valid()) {
97 $arrayRepresentation[] = $iterator->current()->toArray();
100 return $arrayRepresentation;
111 unset($data[
'serializeClassName']);
112 foreach ($data as $index => $nodeArray) {
113 $node = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance($nodeArray[
'serializeClassName'], $nodeArray);
114 $this->offsetSet($index, $node);