‪TYPO3CMS  10.4
TYPO3\CMS\Backend\View\BackendLayoutView Class Reference
Inheritance diagram for TYPO3\CMS\Backend\View\BackendLayoutView:
TYPO3\CMS\Core\SingletonInterface

Public Member Functions

 __construct ()
 
 setDataProviderCollection (DataProviderCollection $dataProviderCollection)
 
DataProviderCollection getDataProviderCollection ()
 
 addBackendLayoutItems (array $parameters)
 
bool string getSelectedCombinedIdentifier ($pageId)
 
 colPosListItemProcFunc (array $parameters)
 
array getColPosListItemsParsed ($id)
 
array null getSelectedBackendLayout ($pageId)
 
BackendLayout getBackendLayoutForPage (int $pageId)
 
array parseStructure (BackendLayout $backendLayout)
 

Static Public Member Functions

static string getDefaultColumnLayout ()
 

Protected Member Functions

 initializeDataProviderCollection ()
 
int false determinePageId ($tableName, array $data)
 
array getIdentifiersToBeExcluded (array $pageTSconfig)
 
array addColPosListLayoutItems ($pageId, $items)
 
array addItems ($items, $iArray)
 
array null getPage ($pageId)
 
array getRootLine ($pageId)
 
DataProviderContext createDataProviderContext ()
 
LanguageService getLanguageService ()
 
string getColumnName ($column)
 

Protected Attributes

DataProviderCollection $dataProviderCollection
 
array $selectedCombinedIdentifier = array( )
 
array $selectedBackendLayout = array( )
 

Detailed Description

Backend layout for CMS

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

Definition at line 35 of file BackendLayoutView.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\View\BackendLayoutView::__construct ( )

Creates this object and initializes data providers.

Definition at line 52 of file BackendLayoutView.php.

References TYPO3\CMS\Backend\View\BackendLayoutView\initializeDataProviderCollection().

Member Function Documentation

◆ addBackendLayoutItems()

◆ addColPosListLayoutItems()

array TYPO3\CMS\Backend\View\BackendLayoutView::addColPosListLayoutItems (   $pageId,
  $items 
)
protected

◆ addItems()

array TYPO3\CMS\Backend\View\BackendLayoutView::addItems (   $items,
  $iArray 
)
protected

Merges items into an item-array, optionally with an icon example: TCEFORM.pages.doktype.addItems.13 = My Label TCEFORM.pages.doktype.addItems.13.icon = EXT:t3skin/icons/gfx/i/pages.gif

Parameters
array$items‪The existing item array
array$iArray‪An array of items to add. NOTICE: The keys are mapped to values, and the values and mapped to be labels. No possibility of adding an icon.
Returns
‪array The updated $item array

Definition at line 306 of file BackendLayoutView.php.

Referenced by TYPO3\CMS\Backend\View\BackendLayoutView\getColPosListItemsParsed().

◆ colPosListItemProcFunc()

TYPO3\CMS\Backend\View\BackendLayoutView::colPosListItemProcFunc ( array  $parameters)

Gets colPos items to be shown in the forms engine. This method is called as "itemsProcFunc" with the accordant context for tt_content.colPos.

Parameters
array$parameters

Definition at line 243 of file BackendLayoutView.php.

References TYPO3\CMS\Backend\View\BackendLayoutView\addColPosListLayoutItems(), and TYPO3\CMS\Backend\View\BackendLayoutView\determinePageId().

◆ createDataProviderContext()

DataProviderContext TYPO3\CMS\Backend\View\BackendLayoutView::createDataProviderContext ( )
protected
Returns
‪DataProviderContext

Definition at line 478 of file BackendLayoutView.php.

Referenced by TYPO3\CMS\Backend\View\BackendLayoutView\addBackendLayoutItems().

◆ determinePageId()

int false TYPO3\CMS\Backend\View\BackendLayoutView::determinePageId (   $tableName,
array  $data 
)
protected

Determines the page id for a given record of a database table.

Parameters
string$tableName
array$data
Returns
‪int|false Returns page id or false on error

Definition at line 141 of file BackendLayoutView.php.

Referenced by TYPO3\CMS\Backend\View\BackendLayoutView\addBackendLayoutItems(), and TYPO3\CMS\Backend\View\BackendLayoutView\colPosListItemProcFunc().

◆ getBackendLayoutForPage()

◆ getColPosListItemsParsed()

array TYPO3\CMS\Backend\View\BackendLayoutView::getColPosListItemsParsed (   $id)

◆ getColumnName()

string TYPO3\CMS\Backend\View\BackendLayoutView::getColumnName (   $column)
protected

Get column name from colPos item structure

Parameters
array$column
Returns
‪string

Definition at line 497 of file BackendLayoutView.php.

References TYPO3\CMS\Backend\View\BackendLayoutView\getLanguageService(), and TYPO3\CMS\Core\Localization\LanguageService\sL().

Referenced by TYPO3\CMS\Backend\View\BackendLayoutView\parseStructure().

◆ getDataProviderCollection()

DataProviderCollection TYPO3\CMS\Backend\View\BackendLayoutView::getDataProviderCollection ( )

◆ getDefaultColumnLayout()

static string TYPO3\CMS\Backend\View\BackendLayoutView::getDefaultColumnLayout ( )
static

Get default columns layout

Returns
‪string Default four column layout

Definition at line 416 of file BackendLayoutView.php.

Referenced by TYPO3\CMS\Backend\View\BackendLayout\DefaultDataProvider\createDefaultBackendLayout().

◆ getIdentifiersToBeExcluded()

array TYPO3\CMS\Backend\View\BackendLayoutView::getIdentifiersToBeExcluded ( array  $pageTSconfig)
protected

Gets backend layout identifiers to be excluded

Parameters
array$pageTSconfig
Returns
‪array

Definition at line 221 of file BackendLayoutView.php.

References TYPO3\CMS\Core\Utility\ArrayUtility\getValueByPath(), TYPO3\CMS\Core\Utility\ArrayUtility\isValidPath(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Referenced by TYPO3\CMS\Backend\View\BackendLayoutView\addBackendLayoutItems().

◆ getLanguageService()

LanguageService TYPO3\CMS\Backend\View\BackendLayoutView::getLanguageService ( )
protected

◆ getPage()

array null TYPO3\CMS\Backend\View\BackendLayoutView::getPage (   $pageId)
protected

Gets a page record.

Parameters
int$pageId
Returns
‪array|null

Definition at line 442 of file BackendLayoutView.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\workspaceOL().

Referenced by TYPO3\CMS\Backend\View\BackendLayoutView\getSelectedCombinedIdentifier().

◆ getRootLine()

array TYPO3\CMS\Backend\View\BackendLayoutView::getRootLine (   $pageId)
protected

Gets the page root-line.

Parameters
int$pageId
Returns
‪array

Definition at line 470 of file BackendLayoutView.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\BEgetRootLine().

Referenced by TYPO3\CMS\Backend\View\BackendLayoutView\getSelectedCombinedIdentifier().

◆ getSelectedBackendLayout()

array null TYPO3\CMS\Backend\View\BackendLayoutView::getSelectedBackendLayout (   $pageId)

Gets the selected backend layout structure as an array

Parameters
int$pageId
Returns
‪array|null $backendLayout

Definition at line 334 of file BackendLayoutView.php.

References TYPO3\CMS\Backend\View\BackendLayoutView\getBackendLayoutForPage().

Referenced by TYPO3\CMS\Backend\View\BackendLayoutView\addColPosListLayoutItems(), and TYPO3\CMS\Backend\View\PageLayoutView\getTable_tt_content().

◆ getSelectedCombinedIdentifier()

bool string TYPO3\CMS\Backend\View\BackendLayoutView::getSelectedCombinedIdentifier (   $pageId)

Returns the backend layout which should be used for this page.

Parameters
int$pageId
Returns
‪bool|string Identifier of the backend layout to be used, or FALSE if none

Definition at line 181 of file BackendLayoutView.php.

References TYPO3\CMS\Backend\View\BackendLayoutView\getPage(), and TYPO3\CMS\Backend\View\BackendLayoutView\getRootLine().

Referenced by TYPO3\CMS\Backend\View\BackendLayoutView\getBackendLayoutForPage().

◆ initializeDataProviderCollection()

◆ parseStructure()

array TYPO3\CMS\Backend\View\BackendLayoutView::parseStructure ( BackendLayout  $backendLayout)

◆ setDataProviderCollection()

TYPO3\CMS\Backend\View\BackendLayoutView::setDataProviderCollection ( DataProviderCollection  $dataProviderCollection)
Parameters
DataProviderCollection$dataProviderCollection

Definition at line 78 of file BackendLayoutView.php.

References TYPO3\CMS\Backend\View\BackendLayoutView\$dataProviderCollection.

Referenced by TYPO3\CMS\Backend\View\BackendLayoutView\initializeDataProviderCollection().

Member Data Documentation

◆ $dataProviderCollection

◆ $selectedBackendLayout

array TYPO3\CMS\Backend\View\BackendLayoutView::$selectedBackendLayout = array( )
protected

Definition at line 47 of file BackendLayoutView.php.

◆ $selectedCombinedIdentifier

array TYPO3\CMS\Backend\View\BackendLayoutView::$selectedCombinedIdentifier = array( )
protected