TYPO3  7.6
Static Public Member Functions | Static Protected Attributes | List of all members
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

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 132 of file 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 162 of file 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 84 of file 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 72 of file 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 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 Commands.php.

Referenced by 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 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 Commands.php.

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 148 of file 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 97 of file 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 113 of file 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 60 of file Commands.php.

Member Data Documentation

$addDomainName = null
staticprotected

Definition at line 42 of file Commands.php.

$addIdAsPrefix = null
staticprotected

Definition at line 37 of file Commands.php.

$backgroundColors = null
staticprotected

Definition at line 47 of file Commands.php.

$titleLength = null
staticprotected

Definition at line 52 of file Commands.php.

$useNavTitle = null
staticprotected

Definition at line 32 of file Commands.php.