189 $this->leaf = $isLeaf == TRUE;
291 $this->t3TextSourceField = $textSourceField;
340 $this->t3InCopyMode = $inCopyMode == TRUE;
359 $this->t3InCutMode = $inCutMode == TRUE;
434 $this->spriteIconCode = $spriteIcon;
472 $this->record = (array)
$record;
510 parent::setChildNodes($childNodes);
511 if ($childNodes->count()) {
541 public function toArray($addChildNodes = TRUE) {
542 $arrayRepresentation = array(
543 'serializeClassName' => get_class($this),
544 'id' => $this->
getId(),
567 $arrayRepresentation[
'leaf'] = FALSE;
571 $copy = $arrayRepresentation;
572 $arrayRepresentation[
'nodeData'] = $copy;
574 $arrayRepresentation[
'children'] = $this->childNodes->toArray();
576 return $arrayRepresentation;
586 parent::dataFromArray($data);
588 $this->
setText($data[
'label'], $data[
't3TextSourceField'], $data[
'prefix'], $data[
'suffix']);
590 $this->
setCls($data[
'cls']);
604 if (isset($data[
'leaf'])) {
setText($text, $textSourceField='title', $prefix='', $suffix='')
setLabelIsEditable($labelIsEditable)
toArray($addChildNodes=TRUE)
setEditableText($editableText)
setAllowChildren($allowChildren)
setContextInfo($contextInfo)
setSpriteIconCode($spriteIcon)
setIsDropTarget($isDropTarget)
setInCopyMode($inCopyMode)
setExpandable($expandable)
setChildNodes(\TYPO3\CMS\Backend\Tree\TreeNodeCollection $childNodes)