TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Backend\Tree\Pagetree\Commands Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Tree\Pagetree\Commands:
t3lib_tree_pagetree_Commands

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

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 28 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
integer$targetId
Returns
integer

Definition at line 128 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
integer$targetId
integer$pageType
Returns
integer

Definition at line 156 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 83 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
integer$uid
Returns
string

Definition at line 279 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
integer$uid
Returns
string

Definition at line 237 of file Commands.php.

Referenced by 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
integer$nodeId
boolean$unsetMovePointers
Returns

Definition at line 226 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
integer$nodeId
boolean$unsetMovePointers
Returns
array

Definition at line 268 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
integer$targetId
Returns
void

Definition at line 143 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
integer$targetId
Returns
void

Definition at line 95 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 110 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 61 of file Commands.php.

Member Data Documentation

◆ $addDomainName

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

Definition at line 43 of file Commands.php.

◆ $addIdAsPrefix

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

Definition at line 38 of file Commands.php.

◆ $backgroundColors

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

Definition at line 48 of file Commands.php.

◆ $titleLength

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

Definition at line 53 of file Commands.php.

◆ $useNavTitle

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

Definition at line 33 of file Commands.php.