ContentCreationPagePositionMap extends AbstractContentPagePositionMap
Position map class for creating content elements
This class is a TYPO3 Backend implementation and is not considered part of the Public TYPO3 API.
Attributes
- #[Autoconfigure]
- $public: true
Table of Contents
Properties
- $cur_sys_language : int
- Can be set to the language id to select content elements for.
- $defVals : array<string|int, mixed>
- Default values defined for the item
- $R_URI : string
- The return url, forwarded to FormEngine (or SimpleDataHandler)
- $saveAndClose : bool
- Whether the item should directly be persisted (avoiding FormEngine)
- $backendLayoutView : BackendLayoutView
- $iconFactory : IconFactory
- $uriBuilder : UriBuilder
Methods
- __construct() : mixed
- printContentElementColumns() : string
- Creates HTML for inserting/moving content elements.
- getBackendUser() : BackendUserAuthentication
- getColumnsConfiguration() : array<string|int, mixed>
- Fetch TCA colPos list from BackendLayoutView and prepare for map generation.
- getLanguageService() : LanguageService
- getRecordHeader() : string
- Create content element header (includes record type (CType) icon, content element title, etc.)
- insertPositionIcon() : string
- Creates a linked position icon
- printRecordMap() : string
- Creates the table with the content columns
Properties
$cur_sys_language
Can be set to the language id to select content elements for.
public
int
$cur_sys_language
= 0
$defVals
Default values defined for the item
public
array<string|int, mixed>
$defVals
= []
$R_URI
The return url, forwarded to FormEngine (or SimpleDataHandler)
public
string
$R_URI
= ''
$saveAndClose
Whether the item should directly be persisted (avoiding FormEngine)
public
bool
$saveAndClose
= false
$backendLayoutView
protected
BackendLayoutView
$backendLayoutView
$iconFactory
protected
IconFactory
$iconFactory
$uriBuilder
protected
UriBuilder
$uriBuilder
Methods
__construct()
public
__construct(IconFactory $iconFactory, UriBuilder $uriBuilder, BackendLayoutView $backendLayoutView) : mixed
Parameters
- $iconFactory : IconFactory
- $uriBuilder : UriBuilder
- $backendLayoutView : BackendLayoutView
printContentElementColumns()
Creates HTML for inserting/moving content elements.
public
printContentElementColumns(int $pid, array<string|int, mixed> $pageInfo, ServerRequestInterface $request) : string
Parameters
- $pid : int
-
page id onto which to insert content element.
- $pageInfo : array<string|int, mixed>
- $request : ServerRequestInterface
Return values
string —HTML
getBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetColumnsConfiguration()
Fetch TCA colPos list from BackendLayoutView and prepare for map generation.
protected
getColumnsConfiguration(int $pageId) : array<string|int, mixed>
This also takes the "colPos_list" TSconfig into account.
Parameters
- $pageId : int
Return values
array<string|int, mixed>getLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetRecordHeader()
Create content element header (includes record type (CType) icon, content element title, etc.)
protected
getRecordHeader(array<string|int, mixed> $row) : string
Parameters
- $row : array<string|int, mixed>
-
The element row
Return values
string —HTML
insertPositionIcon()
Creates a linked position icon
protected
insertPositionIcon(array<string|int, mixed>|null $row, int $colPos, int $pid) : string
Parameters
- $row : array<string|int, mixed>|null
-
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.
- $colPos : int
-
Column position value.
- $pid : int
-
PID value.
Return values
string —HTML
printRecordMap()
Creates the table with the content columns
protected
printRecordMap(array<string|int, mixed> $lines, array<string|int, mixed> $tcaColumnsConfiguration, int $pid) : string
Parameters
- $lines : array<string|int, mixed>
-
Array with arrays of lines for each column
- $tcaColumnsConfiguration : array<string|int, mixed>
-
Column configuration array
- $pid : int
-
The id of the page
Return values
string —HTML