‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Tree\View\AbstractContentPagePositionMap Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Tree\View\AbstractContentPagePositionMap:
TYPO3\CMS\Backend\Tree\View\ContentCreationPagePositionMap TYPO3\CMS\Backend\Tree\View\ContentMovingPagePositionMap

Public Member Functions

 __construct (BackendLayoutView $backendLayoutView)
 
string printContentElementColumns (int $pid)
 

Public Attributes

int $cur_sys_language = 0
 

Protected Member Functions

string insertPositionIcon (?array $row, int $colPos, int $pid)
 
string getRecordHeader (array $row)
 
string printRecordMap (array $lines, array $tcaColumnsConfiguration, int $pid)
 
 getColumnsConfiguration (int $pageId)
 
 getBackendUser ()
 
 getLanguageService ()
 

Protected Attributes

BackendLayoutView $backendLayoutView
 

Detailed Description

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

Definition at line 35 of file AbstractContentPagePositionMap.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Tree\View\AbstractContentPagePositionMap::__construct ( BackendLayoutView  $backendLayoutView)

Member Function Documentation

◆ getBackendUser()

TYPO3\CMS\Backend\Tree\View\AbstractContentPagePositionMap::getBackendUser ( )
protected

◆ getColumnsConfiguration()

TYPO3\CMS\Backend\Tree\View\AbstractContentPagePositionMap::getColumnsConfiguration ( int  $pageId)
protected

Fetch TCA colPos list from BackendLayoutView and prepare for map generation. This also takes the "colPos_list" TSconfig into account.

Definition at line 286 of file AbstractContentPagePositionMap.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\intExplode().

Referenced by TYPO3\CMS\Backend\Tree\View\AbstractContentPagePositionMap\printContentElementColumns().

◆ getLanguageService()

◆ getRecordHeader()

string TYPO3\CMS\Backend\Tree\View\AbstractContentPagePositionMap::getRecordHeader ( array  $row)
abstractprotected

Create content element header (includes record type (CType) icon, content element title, etc.)

Parameters
array$row‪The element row
Returns
‪string HTML

Reimplemented in TYPO3\CMS\Backend\Tree\View\ContentCreationPagePositionMap, and TYPO3\CMS\Backend\Tree\View\ContentMovingPagePositionMap.

Referenced by TYPO3\CMS\Backend\Tree\View\AbstractContentPagePositionMap\printContentElementColumns().

◆ insertPositionIcon()

string TYPO3\CMS\Backend\Tree\View\AbstractContentPagePositionMap::insertPositionIcon ( ?array  $row,
int  $colPos,
int  $pid 
)
abstractprotected

Creates a linked position icon

Parameters
array | null$row‪The record row. If this is an array the link will cause an insert after this content element, otherwise the link will insert at the first position in the column.
int$colPos‪Column position value.
int$pid‪PID value.
Returns
‪string HTML

Reimplemented in TYPO3\CMS\Backend\Tree\View\ContentCreationPagePositionMap, and TYPO3\CMS\Backend\Tree\View\ContentMovingPagePositionMap.

Referenced by TYPO3\CMS\Backend\Tree\View\AbstractContentPagePositionMap\printContentElementColumns().

◆ printContentElementColumns()

◆ printRecordMap()

string TYPO3\CMS\Backend\Tree\View\AbstractContentPagePositionMap::printRecordMap ( array  $lines,
array  $tcaColumnsConfiguration,
int  $pid 
)
protected

Creates the table with the content columns

Parameters
array$lines‪Array with arrays of lines for each column
array$tcaColumnsConfiguration‪Column configuration array
int$pid‪The id of the page
Returns
‪string HTML

Definition at line 133 of file AbstractContentPagePositionMap.php.

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

Referenced by TYPO3\CMS\Backend\Tree\View\AbstractContentPagePositionMap\printContentElementColumns().

Member Data Documentation

◆ $backendLayoutView

◆ $cur_sys_language

int TYPO3\CMS\Backend\Tree\View\AbstractContentPagePositionMap::$cur_sys_language = 0

Can be set to the language id to select content elements for.

Definition at line 40 of file AbstractContentPagePositionMap.php.