![]() |
TYPO3
7.6
|
Protected Member Functions | |
canCreate () | |
canEdit () | |
canRemove () | |
Protected Attributes | |
$cachedAccessRights = array() | |
$workspaceId = 0 | |
$mountPoint = 0 | |
$readableRootline = '' | |
$isMountPoint = false | |
$backgroundColor = '' | |
![]() | |
$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 | |
![]() | |
$id = '' | |
$parentNode = null | |
$childNodes = null | |
Node designated for the page tree
Definition at line 22 of file PagetreeNode.php.
calculateNodeId | ( | $prefix = 'p' | ) |
Returns the calculated id representation of this node
string | $prefix | Defaults to 'p' |
Definition at line 382 of file PagetreeNode.php.
References ExtDirectNode\$prefix, TreeNode\getId(), and PagetreeNode\getMountPoint().
Referenced by PagetreeNode\toArray().
canBeCopied | ( | ) |
Checks if the page is allowed to be copied
Definition at line 262 of file PagetreeNode.php.
References $GLOBALS, PagetreeNode\canCreate(), Enumeration\cast(), VersionState\DELETE_PLACEHOLDER, and TreeNode\equals().
canBeCut | ( | ) |
Checks if the page is allowed to can be cut
Definition at line 238 of file PagetreeNode.php.
References $GLOBALS, PagetreeNode\canEdit(), Enumeration\cast(), VersionState\DELETE_PLACEHOLDER, and TreeNode\equals().
canBeDisabledAndEnabled | ( | ) |
Checks if the page can be disabled
Definition at line 228 of file PagetreeNode.php.
References $GLOBALS, and PagetreeNode\canEdit().
canBeEdited | ( | ) |
Checks if the page is allowed to be edited
Definition at line 252 of file PagetreeNode.php.
References $GLOBALS, and PagetreeNode\canEdit().
canBePastedAfter | ( | ) |
Checks if something can be pasted after the node
Definition at line 314 of file PagetreeNode.php.
References $GLOBALS, PagetreeNode\canCreate(), Enumeration\cast(), VersionState\DELETE_PLACEHOLDER, and TreeNode\equals().
canBePastedInto | ( | ) |
Checks if something can be pasted into the node
Definition at line 300 of file PagetreeNode.php.
References $GLOBALS, PagetreeNode\canCreate(), Enumeration\cast(), VersionState\DELETE_PLACEHOLDER, and TreeNode\equals().
canBeRemoved | ( | ) |
Checks if the page is allowed to be removed
Definition at line 286 of file PagetreeNode.php.
References $GLOBALS, PagetreeNode\canRemove(), Enumeration\cast(), VersionState\DELETE_PLACEHOLDER, and TreeNode\equals().
canBeTemporaryMountPoint | ( | ) |
Checks if the page is allowed to be a temporary mount point
Definition at line 358 of file PagetreeNode.php.
canBeViewed | ( | ) |
Checks if the page is allowed to be viewed
Definition at line 338 of file PagetreeNode.php.
References PagetreeNode\isDeleted().
|
protected |
Checks if the user may create pages below the given page
Definition at line 176 of file PagetreeNode.php.
References $GLOBALS.
Referenced by PagetreeNode\canBeCopied(), PagetreeNode\canBePastedAfter(), PagetreeNode\canBePastedInto(), and PagetreeNode\canCreateNewPages().
canCreateNewPages | ( | ) |
Checks if there can be new pages created
Definition at line 276 of file PagetreeNode.php.
References $GLOBALS, and PagetreeNode\canCreate().
|
protected |
Checks if the user has editing rights
Definition at line 189 of file PagetreeNode.php.
References $GLOBALS.
Referenced by PagetreeNode\canBeCut(), PagetreeNode\canBeDisabledAndEnabled(), and PagetreeNode\canBeEdited().
|
protected |
Checks if the user has the right to delete the page
Definition at line 207 of file PagetreeNode.php.
References $GLOBALS, and ExtDirectNode\isLeafNode().
Referenced by PagetreeNode\canBeRemoved().
canShowHistory | ( | ) |
Checks if the page is allowed to show history
Definition at line 328 of file PagetreeNode.php.
References $GLOBALS.
canShowInfo | ( | ) |
Checks if the page is allowed to show info
Definition at line 348 of file PagetreeNode.php.
dataFromArray | ( | $data | ) |
Sets data of the node by a given data array
array | $data |
Definition at line 415 of file PagetreeNode.php.
References PagetreeNode\setBackgroundColor(), PagetreeNode\setIsMountPoint(), PagetreeNode\setMountPoint(), PagetreeNode\setReadableRootline(), and PagetreeNode\setWorkspaceId().
getBackgroundColor | ( | ) |
Returns the background color
Definition at line 82 of file PagetreeNode.php.
References PagetreeNode\$backgroundColor.
Referenced by PagetreeNode\toArray().
getMountPoint | ( | ) |
Returns the mount point id
Definition at line 124 of file PagetreeNode.php.
References PagetreeNode\$mountPoint.
Referenced by PagetreeNode\calculateNodeId(), and PagetreeNode\toArray().
getReadableRootline | ( | ) |
Returns the readable rootline
Definition at line 166 of file PagetreeNode.php.
References PagetreeNode\$readableRootline.
Referenced by PagetreeNode\toArray().
getWorkspaceId | ( | ) |
Returns the original id of the element
Definition at line 103 of file PagetreeNode.php.
References PagetreeNode\$workspaceId.
Referenced by PagetreeNode\toArray().
isDeleted | ( | ) |
Determines whether this node is deleted.
Definition at line 368 of file PagetreeNode.php.
References Enumeration\cast(), VersionState\DELETE_PLACEHOLDER, and TreeNode\equals().
Referenced by PagetreeNode\canBeViewed().
isMountPoint | ( | ) |
Returns TRUE if the node is a mount point
Definition at line 145 of file PagetreeNode.php.
References PagetreeNode\$isMountPoint.
Referenced by PagetreeNode\setIsMountPoint(), and PagetreeNode\toArray().
setBackgroundColor | ( | $backgroundColor | ) |
Sets the background color
string | $backgroundColor |
Definition at line 72 of file PagetreeNode.php.
References PagetreeNode\$backgroundColor.
Referenced by PagetreeNode\dataFromArray().
setIsMountPoint | ( | $isMountPoint | ) |
Sets the indicator if the node is a mount point
bool | $isMountPoint |
Definition at line 135 of file PagetreeNode.php.
References PagetreeNode\$isMountPoint, and PagetreeNode\isMountPoint().
Referenced by PagetreeNode\dataFromArray().
setMountPoint | ( | $mountPoint | ) |
Sets the mount point id
int | $mountPoint |
Definition at line 114 of file PagetreeNode.php.
References PagetreeNode\$mountPoint.
Referenced by PagetreeNode\dataFromArray().
setReadableRootline | ( | $rootline | ) |
Sets the readable rootline
string | $rootline |
Definition at line 156 of file PagetreeNode.php.
Referenced by PagetreeNode\dataFromArray().
setWorkspaceId | ( | $workspaceId | ) |
Set's the original id of the element
int | $workspaceId |
Definition at line 93 of file PagetreeNode.php.
References PagetreeNode\$workspaceId.
Referenced by PagetreeNode\dataFromArray().
toArray | ( | $addChildNodes = true | ) |
Returns the node in an array representation that can be used for serialization
bool | $addChildNodes |
Definition at line 393 of file PagetreeNode.php.
References PagetreeNode\calculateNodeId(), PagetreeNode\getBackgroundColor(), TreeNode\getId(), PagetreeNode\getMountPoint(), PagetreeNode\getReadableRootline(), PagetreeNode\getWorkspaceId(), and PagetreeNode\isMountPoint().
|
protected |
Definition at line 64 of file PagetreeNode.php.
Referenced by PagetreeNode\getBackgroundColor(), and PagetreeNode\setBackgroundColor().
|
protected |
Definition at line 29 of file PagetreeNode.php.
|
protected |
Definition at line 57 of file PagetreeNode.php.
Referenced by PagetreeNode\isMountPoint(), and PagetreeNode\setIsMountPoint().
|
protected |
Definition at line 43 of file PagetreeNode.php.
Referenced by PagetreeNode\getMountPoint(), and PagetreeNode\setMountPoint().
|
protected |
Definition at line 50 of file PagetreeNode.php.
Referenced by PagetreeNode\getReadableRootline().
|
protected |
Definition at line 36 of file PagetreeNode.php.
Referenced by PagetreeNode\getWorkspaceId(), and PagetreeNode\setWorkspaceId().