‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Tree\View\PagePositionMap Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Tree\View\PagePositionMap:

Public Member Functions

 __construct (string $pageTreeClassName=null)
string positionTree ($id, $pageinfo, $perms_clause, $R_URI, ServerRequestInterface $request)
string boldTitle ($t_code, $dat, $id)
string getActionLink ($pid, $newPagePID)
string linkPageTitle ($str, $rec, ServerRequestInterface $request)
bool checkNewPageInPid ($pid)

Public Attributes

string $moveOrCopy = 'move'
int $dontPrintPageInsertIcons = 0
int $depth = 2
string $R_URI = ''
int $moveUid
array $checkNewPageCache = array( )

Protected Member Functions

string insertlabel ()
 getBackendUser ()
 getLanguageService ()

Protected Attributes

string $pageTreeClassName = PageTreeView::class
IconFactory $iconFactory

Detailed Description

Position map class - generating a page tree / content element list which links for inserting (copy/move) of records. Used for pages / tt_content element wizards of various kinds.

Moving of Content to a certain position of a page happens in the ContentMovingPagePositionMap.

This class is a TYPO3 Backend implementation and is not considered part of the Public TYPO3 API.

Definition at line 38 of file PagePositionMap.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Tree\View\PagePositionMap::__construct ( string  $pageTreeClassName = null)

Constructor allowing to set pageTreeImplementation

string | null$pageTreeClassName

Definition at line 84 of file PagePositionMap.php.

References TYPO3\CMS\Backend\Tree\View\PagePositionMap\$pageTreeClassName.

Member Function Documentation

◆ boldTitle()

string TYPO3\CMS\Backend\Tree\View\PagePositionMap::boldTitle (   $t_code,

Wrap $t_code in bold IF the $dat uid matches $id

string$t_code‪Title string
array$dat‪Information array with record array inside.
int$id‪The current id.
‪string The title string.

Reimplemented in TYPO3\CMS\Backend\Tree\View\PageMovingPagePositionMap.

Definition at line 230 of file PagePositionMap.php.

Referenced by TYPO3\CMS\Backend\Tree\View\PagePositionMap\positionTree().

◆ checkNewPageInPid()

bool TYPO3\CMS\Backend\Tree\View\PagePositionMap::checkNewPageInPid (   $pid)

Checks if the user has permission to created pages inside of the $pid page. Uses caching so only one regular lookup is made - hence you can call the function multiple times without worrying about performance.

int$pid‪Page id for which to test.

Definition at line 305 of file PagePositionMap.php.

References TYPO3\CMS\Backend\Tree\View\PagePositionMap\getBackendUser(), and TYPO3\CMS\Core\Type\Bitmask\Permission\PAGE_NEW.

Referenced by TYPO3\CMS\Backend\Tree\View\PagePositionMap\positionTree().

◆ getActionLink()

string TYPO3\CMS\Backend\Tree\View\PagePositionMap::getActionLink (   $pid,

Creates the onclick event for the insert-icons.

TSconfig mod.newPageWizard.override may contain an alternative module / route which can be used instead of the normal create new page wizard.

int$pid‪The pid.
int$newPagePID‪New page id.
‪string Onclick attribute content

Reimplemented in TYPO3\CMS\Backend\Tree\View\PageMovingPagePositionMap.

Definition at line 248 of file PagePositionMap.php.

References TYPO3\CMS\Webhooks\Message\$url.

Referenced by TYPO3\CMS\Backend\Tree\View\PagePositionMap\positionTree().

◆ getBackendUser()

TYPO3\CMS\Backend\Tree\View\PagePositionMap::getBackendUser ( )

◆ getLanguageService()

TYPO3\CMS\Backend\Tree\View\PagePositionMap::getLanguageService ( )

◆ insertlabel()

string TYPO3\CMS\Backend\Tree\View\PagePositionMap::insertlabel ( )

Get label, htmlspecialchars()'ed

‪string The localized label for "insert new page here"

Reimplemented in TYPO3\CMS\Backend\Tree\View\PageMovingPagePositionMap.

Definition at line 281 of file PagePositionMap.php.

References TYPO3\CMS\Backend\Tree\View\PagePositionMap\getLanguageService().

Referenced by TYPO3\CMS\Backend\Tree\View\PagePositionMap\positionTree().

◆ linkPageTitle()

string TYPO3\CMS\Backend\Tree\View\PagePositionMap::linkPageTitle (   $str,
ServerRequestInterface  $request 

Wrapping page title.

string$str‪Page title.
array$rec‪Page record (?)
‪string Wrapped title.

Reimplemented in TYPO3\CMS\Backend\Tree\View\PageMovingPagePositionMap.

Definition at line 293 of file PagePositionMap.php.

Referenced by TYPO3\CMS\Backend\Tree\View\PagePositionMap\positionTree().

◆ positionTree()

string TYPO3\CMS\Backend\Tree\View\PagePositionMap::positionTree (   $id,
ServerRequestInterface  $request 

Member Data Documentation

◆ $checkNewPageCache

array TYPO3\CMS\Backend\Tree\View\PagePositionMap::$checkNewPageCache = array( )

Definition at line 67 of file PagePositionMap.php.

◆ $depth

int TYPO3\CMS\Backend\Tree\View\PagePositionMap::$depth = 2

◆ $dontPrintPageInsertIcons

int TYPO3\CMS\Backend\Tree\View\PagePositionMap::$dontPrintPageInsertIcons = 0

Definition at line 47 of file PagePositionMap.php.

◆ $iconFactory

IconFactory TYPO3\CMS\Backend\Tree\View\PagePositionMap::$iconFactory

Definition at line 77 of file PagePositionMap.php.

◆ $moveOrCopy

string TYPO3\CMS\Backend\Tree\View\PagePositionMap::$moveOrCopy = 'move'

Definition at line 43 of file PagePositionMap.php.

◆ $moveUid

int TYPO3\CMS\Backend\Tree\View\PagePositionMap::$moveUid

Definition at line 63 of file PagePositionMap.php.

◆ $pageTreeClassName

string TYPO3\CMS\Backend\Tree\View\PagePositionMap::$pageTreeClassName = PageTreeView::class

Page tree implementation class name

Definition at line 73 of file PagePositionMap.php.

Referenced by TYPO3\CMS\Backend\Tree\View\PagePositionMap\__construct().

◆ $R_URI

string TYPO3\CMS\Backend\Tree\View\PagePositionMap::$R_URI = ''