2 namespace TYPO3\CMS\Backend\Tree;
191 $this->leaf = $isLeaf ==
true;
303 $this->t3TextSourceField = $textSourceField;
357 $this->t3InCopyMode = $inCopyMode ==
true;
378 $this->t3InCutMode = $inCutMode ==
true;
461 $this->spriteIconCode = $spriteIcon;
503 $this->record = (array)
$record;
545 parent::setChildNodes($childNodes);
546 if ($childNodes->count()) {
578 public function toArray($addChildNodes =
true)
580 $arrayRepresentation = array(
581 'serializeClassName' => get_class($this),
582 'id' => $this->
getId(),
605 $arrayRepresentation[
'leaf'] =
false;
609 $copy = $arrayRepresentation;
610 $arrayRepresentation[
'nodeData'] = $copy;
612 $arrayRepresentation[
'children'] = $this->childNodes->toArray();
614 return $arrayRepresentation;
625 parent::dataFromArray($data);
627 $this->
setText($data[
'label'], $data[
't3TextSourceField'], $data[
'prefix'], $data[
'suffix']);
629 $this->
setCls($data[
'cls']);
643 if (isset($data[
'leaf'])) {