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

Public Member Functions

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

Static Public Member Functions

static string getDefaultColumnLayout ()
 

Protected Member Functions

 initializeDataProviderCollection ()
 
int bool determinePageId ($tableName, array $data)
 
array getIdentifiersToBeExcluded (array $pageTSconfig)
 
array addColPosListLayoutItems ($pageId, $items)
 
array addItems ($items, $iArray)
 
array null getPage ($pageId)
 
array getRootLine ($pageId)
 
BackendLayout DataProviderContext createDataProviderContext ()
 
TYPO3 CMS Core Localization LanguageService getLanguageService ()
 
string getColumnName ($column)
 

Protected Attributes

BackendLayout 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 27 of file BackendLayoutView.php.

Constructor & Destructor Documentation

◆ __construct()

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

Creates this object and initializes data providers.

Definition at line 44 of file BackendLayoutView.php.

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

Member Function Documentation

◆ addBackendLayoutItems()

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

◆ 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 305 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 242 of file BackendLayoutView.php.

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

◆ createDataProviderContext()

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

Definition at line 459 of file BackendLayoutView.php.

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

◆ determinePageId()

int bool 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|bool Returns page id or false on error

Definition at line 140 of file BackendLayoutView.php.

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

◆ getColPosListItemsParsed()

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

Gets the list of available columns for a given page id

Parameters
int$id
Returns
‪array $tcaItems

Definition at line 273 of file BackendLayoutView.php.

References $GLOBALS, TYPO3\CMS\Backend\View\BackendLayoutView\addColPosListLayoutItems(), TYPO3\CMS\Backend\View\BackendLayoutView\addItems(), and TYPO3\CMS\Backend\Utility\BackendUtility\getPagesTSconfig().

◆ 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 478 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\getSelectedBackendLayout().

◆ getDataProviderCollection()

BackendLayout 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 397 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 220 of file BackendLayoutView.php.

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

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

◆ getLanguageService()

TYPO3 CMS Core Localization LanguageService TYPO3\CMS\Backend\View\BackendLayoutView::getLanguageService ( )
protected
Returns
‪\TYPO3\CMS\Core\Localization\LanguageService

Definition at line 467 of file BackendLayoutView.php.

References $GLOBALS.

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

◆ getPage()

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

Gets a page record.

Parameters
int$pageId
Returns
‪array|null

Definition at line 423 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 451 of file BackendLayoutView.php.

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

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

◆ getSelectedBackendLayout()

◆ 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 180 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\getSelectedBackendLayout().

◆ initializeDataProviderCollection()

TYPO3\CMS\Backend\View\BackendLayoutView::initializeDataProviderCollection ( )
protected

◆ setDataProviderCollection()

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

Definition at line 77 of file BackendLayoutView.php.

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

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

Member Data Documentation

◆ $dataProviderCollection

BackendLayout DataProviderCollection TYPO3\CMS\Backend\View\BackendLayoutView::$dataProviderCollection
protected

◆ $selectedBackendLayout

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

Definition at line 39 of file BackendLayoutView.php.

◆ $selectedCombinedIdentifier

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