78 if ($this->childNodes !== NULL) {
79 unset($this->childNodes);
80 $this->childNodes = NULL;
99 if ($this->childNodes !== NULL) {
150 return $this->
id == $other->getId();
165 if ($this->
equals($other)) {
168 return $this->
id > $other->getId() ? 1 : -1;
177 public function toArray($addChildNodes = TRUE) {
178 $arrayRepresentation = array(
179 'serializeClassName' => get_class($this),
182 if ($this->parentNode !== NULL) {
183 $arrayRepresentation[
'parentNode'] = $this->parentNode->toArray(FALSE);
185 $arrayRepresentation[
'parentNode'] =
'';
188 $arrayRepresentation[
'childNodes'] = $this->childNodes->toArray();
190 $arrayRepresentation[
'childNodes'] =
'';
192 return $arrayRepresentation;
202 $this->
setId($data[
'id']);
203 if (isset($data[
'parentNode']) && $data[
'parentNode'] !==
'') {
206 if (isset($data[
'childNodes']) && $data[
'childNodes'] !==
'') {
228 $arrayRepresentation =
unserialize($serializedString);
229 if ($arrayRepresentation[
'serializeClassName'] !== get_class($this)) {
230 throw new \TYPO3\CMS\Core\Exception(
'Deserialized object type is not identical!', 1294586646);
toArray($addChildNodes=TRUE)
setParentNode(\TYPO3\CMS\Backend\Tree\TreeNode $parentNode=NULL)
equals(\TYPO3\CMS\Backend\Tree\TreeNode $other)
static makeInstance($className)
unserialize($serializedString)
setChildNodes(\TYPO3\CMS\Backend\Tree\TreeNodeCollection $childNodes)
__construct(array $data=array())