TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
Commands Class Reference

Static Public Member Functions

static visiblyNode (\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode $node)
 
static disableNode (\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode $node)
 
static deleteNode (\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode $node)
 
static restoreNode (\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode $node, $targetId)
 
static updateNodeLabel (\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode $node, $updatedLabel)
 
static copyNode (\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode $sourceNode, $targetId)
 
static moveNode (\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode $sourceNode, $targetId)
 
static createNode (\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode $parentNode, $targetId, $pageType)
 
static getNode ($nodeId, $unsetMovePointers=true)
 
static getMountPointPath ($uid=-1)
 
static getNodeRecord ($nodeId, $unsetMovePointers=true)
 
static getDomainName ($uid)
 

Static Protected Attributes

static $useNavTitle = null
 
static $addIdAsPrefix = null
 
static $addDomainName = null
 
static $backgroundColors = null
 
static $titleLength = null
 

Detailed Description

Page Tree and Context Menu Commands

Definition at line 28 of file backend/Classes/Tree/Pagetree/Commands.php.

Member Function Documentation

static copyNode ( \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode  $sourceNode,
  $targetId 
)
static

Copies a page and returns the id of the new page

Node: Use a negative target id to specify a sibling target else the parent is used

Parameters
\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode$sourceNode
int$targetId
Returns
int

Definition at line 133 of file backend/Classes/Tree/Pagetree/Commands.php.

static createNode ( \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode  $parentNode,
  $targetId,
  $pageType 
)
static

Creates a page of the given doktype and returns the id of the created page

Parameters
\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode$parentNode
int$targetId
int$pageType
Returns
int

Definition at line 163 of file backend/Classes/Tree/Pagetree/Commands.php.

static deleteNode ( \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode  $node)
static

Delete the page

Parameters
\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode$node
Returns
void

Definition at line 85 of file backend/Classes/Tree/Pagetree/Commands.php.

static disableNode ( \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode  $node)
static

Hide the page

Parameters
\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode$node
Returns
void

Definition at line 73 of file backend/Classes/Tree/Pagetree/Commands.php.

static getDomainName (   $uid)
static

Returns the first configured domain name for a page

Parameters
int$uid
Returns
string

Definition at line 290 of file backend/Classes/Tree/Pagetree/Commands.php.

static getMountPointPath (   $uid = -1)
static

Returns the mount point path for a temporary mount or the given id

Parameters
int$uid
Returns
string

Definition at line 246 of file backend/Classes/Tree/Pagetree/Commands.php.

Referenced by AbstractTreeView\getBrowsableTree(), and ExtdirectTreeDataProvider\loadResources().

static getNode (   $nodeId,
  $unsetMovePointers = true 
)
static

Returns a node from the given node id

Parameters
int$nodeId
bool$unsetMovePointers
Returns

Definition at line 234 of file backend/Classes/Tree/Pagetree/Commands.php.

static getNodeRecord (   $nodeId,
  $unsetMovePointers = true 
)
static

Returns a node record from a given id

Parameters
int$nodeId
bool$unsetMovePointers
Returns
array

Definition at line 278 of file backend/Classes/Tree/Pagetree/Commands.php.

Referenced by ContextMenuConfiguration\getActionsForNodeArray().

static moveNode ( \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode  $sourceNode,
  $targetId 
)
static

Moves a page

Node: Use a negative target id to specify a sibling target else the parent is used

Parameters
\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode$sourceNode
int$targetId
Returns
void

Definition at line 149 of file backend/Classes/Tree/Pagetree/Commands.php.

static restoreNode ( \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode  $node,
  $targetId 
)
static

Restore the page

Parameters
\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode$node
int$targetId
Returns
void

Definition at line 98 of file backend/Classes/Tree/Pagetree/Commands.php.

static updateNodeLabel ( \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode  $node,
  $updatedLabel 
)
static

Updates the node label

Parameters
\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode$node
string$updatedLabel
Returns
void

Definition at line 114 of file backend/Classes/Tree/Pagetree/Commands.php.

References $GLOBALS.

static visiblyNode ( \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode  $node)
static

Visibly the page

Parameters
\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode$node
Returns
void

Definition at line 61 of file backend/Classes/Tree/Pagetree/Commands.php.

Member Data Documentation

$addDomainName = null
staticprotected

Definition at line 43 of file backend/Classes/Tree/Pagetree/Commands.php.

$addIdAsPrefix = null
staticprotected

Definition at line 38 of file backend/Classes/Tree/Pagetree/Commands.php.

$backgroundColors = null
staticprotected

Definition at line 48 of file backend/Classes/Tree/Pagetree/Commands.php.

$titleLength = null
staticprotected

Definition at line 53 of file backend/Classes/Tree/Pagetree/Commands.php.

$useNavTitle = null
staticprotected

Definition at line 33 of file backend/Classes/Tree/Pagetree/Commands.php.