TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Backend\Tree\ExtDirectNode Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Tree\ExtDirectNode:
TYPO3\CMS\Backend\Tree\TreeNode TYPO3\CMS\Backend\Tree\ComparableNodeInterface t3lib_tree_extdirect_Node TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode t3lib_tree_pagetree_Node

Public Member Functions

 setType ($type)
 
 getType ()
 
 setLeaf ($isLeaf)
 
 isLeafNode ()
 
 setExpandable ($expandable)
 
 isExpandable ()
 
 setExpanded ($expanded)
 
 isExpanded ()
 
 setDraggable ($draggable)
 
 isDraggable ()
 
 setIsDropTarget ($isDropTarget)
 
 isDropTarget ()
 
 setText ($text, $textSourceField='title', $prefix='', $suffix='')
 
 getText ()
 
 setEditableText ($editableText)
 
 getEditableText ()
 
 getTextSourceField ()
 
 setInCopyMode ($inCopyMode)
 
 isInCopyMode ()
 
 setInCutMode ($inCutMode)
 
 isInCutMode ()
 
 getPrefix ()
 
 getSuffix ()
 
 setCls ($class)
 
 getCls ()
 
 setQTip ($qtip)
 
 getQTip ()
 
 setSpriteIconCode ($spriteIcon)
 
 getSpriteIconCode ()
 
 setLabelIsEditable ($labelIsEditable)
 
 isLabelEditable ()
 
 setRecord ($record)
 
 getRecord ()
 
 setContextInfo ($contextInfo)
 
 getContextInfo ()
 
 setChildNodes (\TYPO3\CMS\Backend\Tree\TreeNodeCollection $childNodes)
 
 setAllowChildren ($allowChildren)
 
 canHaveChildren ()
 
 toArray ($addChildNodes=TRUE)
 
 dataFromArray ($data)
 
- Public Member Functions inherited from TYPO3\CMS\Backend\Tree\TreeNode
 __construct (array $data=array())
 
 setChildNodes (\TYPO3\CMS\Backend\Tree\TreeNodeCollection $childNodes)
 
 removeChildNodes ()
 
 getChildNodes ()
 
 hasChildNodes ()
 
 setId ($id)
 
 getId ()
 
 setParentNode (\TYPO3\CMS\Backend\Tree\TreeNode $parentNode=NULL)
 
 getParentNode ()
 
 equals (\TYPO3\CMS\Backend\Tree\TreeNode $other)
 
 compareTo ($other)
 
 toArray ($addChildNodes=TRUE)
 
 dataFromArray ($data)
 
 serialize ()
 
 unserialize ($serializedString)
 

Protected Attributes

 $type = ''
 
 $leaf = TRUE
 
 $expanded = FALSE
 
 $expandable = FALSE
 
 $draggable = TRUE
 
 $isDropTarget = TRUE
 
 $text = ''
 
 $editableText = ''
 
 $prefix = ''
 
 $suffix = ''
 
 $cls = ''
 
 $qtip = ''
 
 $spriteIconCode = ''
 
 $t3TextSourceField = ''
 
 $t3InCopyMode = FALSE
 
 $t3InCutMode = FALSE
 
 $record = array()
 
 $contextInfo = array()
 
 $labelIsEditable = TRUE
 
 $allowChildren = TRUE
 
- Protected Attributes inherited from TYPO3\CMS\Backend\Tree\TreeNode
 $id = ''
 
 $parentNode = NULL
 
 $childNodes = NULL
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Node for the usage with ExtDirect and ExtJS

Author
Stefan Galinski stefa.nosp@m.n.ga.nosp@m.linsk.nosp@m.i@gm.nosp@m.ail.c.nosp@m.om

Definition at line 21 of file ExtDirectNode.php.

Member Function Documentation

◆ canHaveChildren()

TYPO3\CMS\Backend\Tree\ExtDirectNode::canHaveChildren ( )

Checks if the node can have child nodes

Returns
boolean

Definition at line 531 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$allowChildren.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\toArray().

◆ dataFromArray()

◆ getCls()

TYPO3\CMS\Backend\Tree\ExtDirectNode::getCls ( )

Returns the css class(es)

Returns
string

Definition at line 404 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$cls.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\toArray().

◆ getContextInfo()

TYPO3\CMS\Backend\Tree\ExtDirectNode::getContextInfo ( )

Returns the context info

Returns
array

Definition at line 499 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$contextInfo.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\toArray().

◆ getEditableText()

TYPO3\CMS\Backend\Tree\ExtDirectNode::getEditableText ( )

Returns the editable text

Returns
string

Definition at line 320 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$editableText.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\toArray().

◆ getPrefix()

TYPO3\CMS\Backend\Tree\ExtDirectNode::getPrefix ( )

Returns the prefix text of the label

Returns
string

Definition at line 376 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$prefix.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\toArray().

◆ getQTip()

TYPO3\CMS\Backend\Tree\ExtDirectNode::getQTip ( )

Returns the quick tip

Returns
string

Definition at line 423 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$qtip.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\toArray().

◆ getRecord()

TYPO3\CMS\Backend\Tree\ExtDirectNode::getRecord ( )

Returns the database record array

Returns
array

Definition at line 480 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$record.

◆ getSpriteIconCode()

TYPO3\CMS\Backend\Tree\ExtDirectNode::getSpriteIconCode ( )

Returns the sprite icon code

Returns
string

Definition at line 442 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$spriteIconCode.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\toArray().

◆ getSuffix()

TYPO3\CMS\Backend\Tree\ExtDirectNode::getSuffix ( )

Returns the suffix text of the label

Returns
string

Definition at line 385 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$suffix.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\toArray().

◆ getText()

TYPO3\CMS\Backend\Tree\ExtDirectNode::getText ( )

Returns the label

Returns
string

Definition at line 301 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$text.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\toArray().

◆ getTextSourceField()

TYPO3\CMS\Backend\Tree\ExtDirectNode::getTextSourceField ( )

Returns the source field of the label

Returns
string

Definition at line 329 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$t3TextSourceField.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\toArray().

◆ getType()

TYPO3\CMS\Backend\Tree\ExtDirectNode::getType ( )

Returns the node type

Returns
string

Definition at line 178 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$type.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\toArray().

◆ isDraggable()

TYPO3\CMS\Backend\Tree\ExtDirectNode::isDraggable ( )

Returns the draggable indicator

Returns
boolean

Definition at line 257 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$draggable.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\toArray().

◆ isDropTarget()

TYPO3\CMS\Backend\Tree\ExtDirectNode::isDropTarget ( )

Returns the indicator if the node is a drop target

Returns
boolean

Definition at line 276 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$isDropTarget.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\setIsDropTarget(), and TYPO3\CMS\Backend\Tree\ExtDirectNode\toArray().

◆ isExpandable()

TYPO3\CMS\Backend\Tree\ExtDirectNode::isExpandable ( )

Returns the expandable indicator

Returns
boolean

Definition at line 216 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$expandable.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\toArray().

◆ isExpanded()

TYPO3\CMS\Backend\Tree\ExtDirectNode::isExpanded ( )

Returns the expanded indicator

Returns
boolean

Definition at line 235 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$expanded, and TYPO3\CMS\Backend\Tree\ExtDirectNode\isLeafNode().

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\toArray().

◆ isInCopyMode()

TYPO3\CMS\Backend\Tree\ExtDirectNode::isInCopyMode ( )

Returns the copy mode indicator

Returns
boolean

Definition at line 348 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$t3InCopyMode.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\toArray().

◆ isInCutMode()

TYPO3\CMS\Backend\Tree\ExtDirectNode::isInCutMode ( )

Returns the cut mode indicator

Returns
boolean

Definition at line 367 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$t3InCutMode.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\toArray().

◆ isLabelEditable()

TYPO3\CMS\Backend\Tree\ExtDirectNode::isLabelEditable ( )

Returns the editable label indicator

Returns
boolean

Definition at line 461 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$labelIsEditable.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\toArray().

◆ isLeafNode()

TYPO3\CMS\Backend\Tree\ExtDirectNode::isLeafNode ( )

◆ setAllowChildren()

TYPO3\CMS\Backend\Tree\ExtDirectNode::setAllowChildren (   $allowChildren)

Sets the indicator if the node can have child nodes

Parameters
boolean$allowChildren
Returns
void

Definition at line 522 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$allowChildren.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\dataFromArray().

◆ setChildNodes()

TYPO3\CMS\Backend\Tree\ExtDirectNode::setChildNodes ( \TYPO3\CMS\Backend\Tree\TreeNodeCollection  $childNodes)

Sets the child nodes collection

Parameters
\TYPO3\CMS\Backend\Tree\TreeNodeCollection$childNodes
Returns
void

Definition at line 509 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\setLeaf().

◆ setCls()

TYPO3\CMS\Backend\Tree\ExtDirectNode::setCls (   $class)

Sets the css class(es)

Parameters
string$class
Returns
void

Definition at line 395 of file ExtDirectNode.php.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\dataFromArray().

◆ setContextInfo()

TYPO3\CMS\Backend\Tree\ExtDirectNode::setContextInfo (   $contextInfo)

Sets the context info

Parameters
array$contextInfo
Returns
void

Definition at line 490 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$contextInfo.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\dataFromArray().

◆ setDraggable()

TYPO3\CMS\Backend\Tree\ExtDirectNode::setDraggable (   $draggable)

Sets the draggable indicator

Parameters
boolean$draggable
Returns
void

Definition at line 248 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$draggable.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\dataFromArray().

◆ setEditableText()

TYPO3\CMS\Backend\Tree\ExtDirectNode::setEditableText (   $editableText)

Sets the editable text

Parameters
string$editableText
Returns
void

Definition at line 311 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$editableText.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\dataFromArray().

◆ setExpandable()

TYPO3\CMS\Backend\Tree\ExtDirectNode::setExpandable (   $expandable)

Sets the expandable indicator

Parameters
boolean$expandable
Returns
void

Definition at line 207 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$expandable.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\dataFromArray().

◆ setExpanded()

TYPO3\CMS\Backend\Tree\ExtDirectNode::setExpanded (   $expanded)

Sets the expanded indicator

Parameters
boolean$expanded
Returns
void

Definition at line 226 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$expanded.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\dataFromArray().

◆ setInCopyMode()

TYPO3\CMS\Backend\Tree\ExtDirectNode::setInCopyMode (   $inCopyMode)

Sets the paste copy indicator

Parameters
boolean$inCopyMode
Returns
void

Definition at line 339 of file ExtDirectNode.php.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\dataFromArray().

◆ setInCutMode()

TYPO3\CMS\Backend\Tree\ExtDirectNode::setInCutMode (   $inCutMode)

Sets the paste cut indicator

Parameters
boolean$inCutMode
Returns
void

Definition at line 358 of file ExtDirectNode.php.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\dataFromArray().

◆ setIsDropTarget()

TYPO3\CMS\Backend\Tree\ExtDirectNode::setIsDropTarget (   $isDropTarget)

Sets the indicator if the node can be a drop target

Parameters
boolean$isDropTarget
Returns
void

Definition at line 267 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$isDropTarget, and TYPO3\CMS\Backend\Tree\ExtDirectNode\isDropTarget().

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\dataFromArray().

◆ setLabelIsEditable()

TYPO3\CMS\Backend\Tree\ExtDirectNode::setLabelIsEditable (   $labelIsEditable)

Sets the indicator if the label is editable

Parameters
boolean$labelIsEditable
Returns
void

Definition at line 452 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$labelIsEditable.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\dataFromArray().

◆ setLeaf()

TYPO3\CMS\Backend\Tree\ExtDirectNode::setLeaf (   $isLeaf)

Sets the leaf node indicator

Parameters
boolean$isLeaf
Returns
void

Definition at line 188 of file ExtDirectNode.php.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\dataFromArray(), and TYPO3\CMS\Backend\Tree\ExtDirectNode\setChildNodes().

◆ setQTip()

TYPO3\CMS\Backend\Tree\ExtDirectNode::setQTip (   $qtip)

Sets the quick tip

Parameters
string$qtip
Returns
void

Definition at line 414 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$qtip.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\dataFromArray().

◆ setRecord()

TYPO3\CMS\Backend\Tree\ExtDirectNode::setRecord (   $record)

Sets the database record array

Parameters
array$record
Returns
void

Definition at line 471 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$record.

◆ setSpriteIconCode()

TYPO3\CMS\Backend\Tree\ExtDirectNode::setSpriteIconCode (   $spriteIcon)

Sets the sprite icon code

Parameters
string$spriteIcon
Returns
void

Definition at line 433 of file ExtDirectNode.php.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\dataFromArray().

◆ setText()

TYPO3\CMS\Backend\Tree\ExtDirectNode::setText (   $text,
  $textSourceField = 'title',
  $prefix = '',
  $suffix = '' 
)

Sets the label of the node with the source field and the prefix

Parameters
string$text
string$textSourceField
string$prefix
string$suffix
Returns
void

Definition at line 289 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$prefix, TYPO3\CMS\Backend\Tree\ExtDirectNode\$suffix, and TYPO3\CMS\Backend\Tree\ExtDirectNode\$text.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\dataFromArray().

◆ setType()

TYPO3\CMS\Backend\Tree\ExtDirectNode::setType (   $type)

Set's the node type

Parameters
string$type
Returns
void

Definition at line 169 of file ExtDirectNode.php.

References TYPO3\CMS\Backend\Tree\ExtDirectNode\$type.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\dataFromArray().

◆ toArray()

Member Data Documentation

◆ $allowChildren

TYPO3\CMS\Backend\Tree\ExtDirectNode::$allowChildren = TRUE
protected

◆ $cls

TYPO3\CMS\Backend\Tree\ExtDirectNode::$cls = ''
protected

Definition at line 98 of file ExtDirectNode.php.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\getCls().

◆ $contextInfo

TYPO3\CMS\Backend\Tree\ExtDirectNode::$contextInfo = array()
protected

◆ $draggable

TYPO3\CMS\Backend\Tree\ExtDirectNode::$draggable = TRUE
protected

◆ $editableText

TYPO3\CMS\Backend\Tree\ExtDirectNode::$editableText = ''
protected

◆ $expandable

TYPO3\CMS\Backend\Tree\ExtDirectNode::$expandable = FALSE
protected

◆ $expanded

TYPO3\CMS\Backend\Tree\ExtDirectNode::$expanded = FALSE
protected

◆ $isDropTarget

TYPO3\CMS\Backend\Tree\ExtDirectNode::$isDropTarget = TRUE
protected

◆ $labelIsEditable

TYPO3\CMS\Backend\Tree\ExtDirectNode::$labelIsEditable = TRUE
protected

◆ $leaf

TYPO3\CMS\Backend\Tree\ExtDirectNode::$leaf = TRUE
protected

Definition at line 35 of file ExtDirectNode.php.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\isLeafNode().

◆ $prefix

◆ $qtip

TYPO3\CMS\Backend\Tree\ExtDirectNode::$qtip = ''
protected

◆ $record

TYPO3\CMS\Backend\Tree\ExtDirectNode::$record = array()
protected

◆ $spriteIconCode

TYPO3\CMS\Backend\Tree\ExtDirectNode::$spriteIconCode = ''
protected

◆ $suffix

TYPO3\CMS\Backend\Tree\ExtDirectNode::$suffix = ''
protected

◆ $t3InCopyMode

TYPO3\CMS\Backend\Tree\ExtDirectNode::$t3InCopyMode = FALSE
protected

◆ $t3InCutMode

TYPO3\CMS\Backend\Tree\ExtDirectNode::$t3InCutMode = FALSE
protected

Definition at line 133 of file ExtDirectNode.php.

Referenced by TYPO3\CMS\Backend\Tree\ExtDirectNode\isInCutMode().

◆ $t3TextSourceField

TYPO3\CMS\Backend\Tree\ExtDirectNode::$t3TextSourceField = ''
protected

◆ $text

TYPO3\CMS\Backend\Tree\ExtDirectNode::$text = ''
protected

◆ $type

TYPO3\CMS\Backend\Tree\ExtDirectNode::$type = ''
protected