2 namespace TYPO3\CMS\Backend\Tree;
78 if ($this->childNodes !== null) {
79 unset($this->childNodes);
80 $this->childNodes = null;
101 if ($this->childNodes !== null) {
157 return $this->
id == $other->getId();
173 if ($this->
equals($other)) {
176 return $this->
id > $other->getId() ? 1 : -1;
185 public function toArray($addChildNodes =
true)
187 $arrayRepresentation = array(
188 'serializeClassName' => get_class($this),
191 if ($this->parentNode !== null) {
192 $arrayRepresentation[
'parentNode'] = $this->parentNode->toArray(
false);
194 $arrayRepresentation[
'parentNode'] =
'';
197 $arrayRepresentation[
'childNodes'] = $this->childNodes->toArray();
199 $arrayRepresentation[
'childNodes'] =
'';
201 return $arrayRepresentation;
212 $this->
setId($data[
'id']);
213 if (isset($data[
'parentNode']) && $data[
'parentNode'] !==
'') {
216 if (isset($data[
'childNodes']) && $data[
'childNodes'] !==
'') {
240 $arrayRepresentation =
unserialize($serializedString);
241 if ($arrayRepresentation[
'serializeClassName'] !== get_class($this)) {
242 throw new \TYPO3\CMS\Core\Exception(
'Deserialized object type is not identical!', 1294586646);