TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\Tree\Pagetree\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 27 of file Commands.php.

Member Function Documentation

◆ copyNode()

static TYPO3\CMS\Backend\Tree\Pagetree\Commands::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 132 of file Commands.php.

◆ createNode()

static TYPO3\CMS\Backend\Tree\Pagetree\Commands::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 162 of file Commands.php.

◆ deleteNode()

static TYPO3\CMS\Backend\Tree\Pagetree\Commands::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 84 of file Commands.php.

◆ disableNode()

static TYPO3\CMS\Backend\Tree\Pagetree\Commands::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 72 of file Commands.php.

◆ getDomainName()

static TYPO3\CMS\Backend\Tree\Pagetree\Commands::getDomainName (   $uid)
static

Returns the first configured domain name for a page

Parameters
int$uid
Returns
string

Definition at line 290 of file Commands.php.

◆ getMountPointPath()

static TYPO3\CMS\Backend\Tree\Pagetree\Commands::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 Commands.php.

Referenced by TYPO3\CMS\Backend\Tree\View\AbstractTreeView\getBrowsableTree(), TYPO3\CMS\Backend\Tree\Pagetree\DataProvider\getRecordWithWorkspaceOverlay(), and TYPO3\CMS\Backend\Tree\Pagetree\ExtdirectTreeDataProvider\loadResources().

◆ getNode()

static TYPO3\CMS\Backend\Tree\Pagetree\Commands::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 Commands.php.

◆ getNodeRecord()

static TYPO3\CMS\Backend\Tree\Pagetree\Commands::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 Commands.php.

Referenced by TYPO3\CMS\Backend\Tree\Pagetree\DataProvider\getRecordWithWorkspaceOverlay().

◆ moveNode()

static TYPO3\CMS\Backend\Tree\Pagetree\Commands::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 148 of file Commands.php.

◆ restoreNode()

static TYPO3\CMS\Backend\Tree\Pagetree\Commands::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 97 of file Commands.php.

◆ updateNodeLabel()

static TYPO3\CMS\Backend\Tree\Pagetree\Commands::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 113 of file Commands.php.

References $GLOBALS.

◆ visiblyNode()

static TYPO3\CMS\Backend\Tree\Pagetree\Commands::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 60 of file Commands.php.

Member Data Documentation

◆ $addDomainName

TYPO3\CMS\Backend\Tree\Pagetree\Commands::$addDomainName = null
staticprotected

Definition at line 42 of file Commands.php.

◆ $addIdAsPrefix

TYPO3\CMS\Backend\Tree\Pagetree\Commands::$addIdAsPrefix = null
staticprotected

Definition at line 37 of file Commands.php.

◆ $backgroundColors

TYPO3\CMS\Backend\Tree\Pagetree\Commands::$backgroundColors = null
staticprotected

Definition at line 47 of file Commands.php.

◆ $titleLength

TYPO3\CMS\Backend\Tree\Pagetree\Commands::$titleLength = null
staticprotected

Definition at line 52 of file Commands.php.

◆ $useNavTitle

TYPO3\CMS\Backend\Tree\Pagetree\Commands::$useNavTitle = null
staticprotected

Definition at line 32 of file Commands.php.