TYPO3 CMS  TYPO3_7-6
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)
 
 getDataProviderCollection ()
 
 addBackendLayoutItems (array $parameters)
 
 getSelectedCombinedIdentifier ($pageId)
 
 colPosListItemProcFunc (array $parameters)
 
 getColPosListItemsParsed ($id)
 

Static Public Member Functions

static getDefaultColumnLayout ()
 

Protected Member Functions

 determinePageId ($tableName, array $data)
 
 getIdentifiersToBeExcluded (array $pageTSconfig)
 
 addColPosListLayoutItems ($pageId, $items)
 
 addItems ($items, $iArray)
 
 getPage ($pageId)
 
 getRootLine ($pageId)
 
 createDataProviderContext ()
 
 getDatabaseConnection ()
 
 getLanguageService ()
 

Protected Attributes

 $dataProviderCollection
 
 $selectedCombinedIdentifier = []
 
 $selectedBackendLayout = []
 

Detailed Description

Backend layout for CMS

Definition at line 24 of file BackendLayoutView.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ addBackendLayoutItems()

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

Gets backend layout items to be shown in the forms engine. This method is called as "itemsProcFunc" with the accordant context for pages.backend_layout and pages.backend_layout_next_level.

Parameters
array$parameters

Definition at line 99 of file BackendLayoutView.php.

References TYPO3\CMS\Backend\View\BackendLayoutView\createDataProviderContext(), TYPO3\CMS\Backend\View\BackendLayoutView\determinePageId(), TYPO3\CMS\Backend\View\BackendLayoutView\getDataProviderCollection(), TYPO3\CMS\Backend\View\BackendLayoutView\getIdentifiersToBeExcluded(), TYPO3\CMS\Backend\View\BackendLayoutView\getLanguageService(), and TYPO3\CMS\Backend\Utility\BackendUtility\getPagesTSconfig().

◆ addColPosListLayoutItems()

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

Adds items to a colpos list

Parameters
int$pageId
array$items
Returns
array

Definition at line 252 of file BackendLayoutView.php.

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

◆ addItems()

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$itemsThe existing item array
array$iArrayAn 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 297 of file BackendLayoutView.php.

References TYPO3\CMS\Backend\View\BackendLayoutView\$selectedCombinedIdentifier, TYPO3\CMS\Backend\View\BackendLayoutView\getDataProviderCollection(), TYPO3\CMS\Backend\View\BackendLayoutView\getLanguageService(), TYPO3\CMS\Backend\View\BackendLayoutView\getSelectedCombinedIdentifier(), TYPO3\CMS\Core\Utility\GeneralUtility\isFirstPartOfStr(), and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

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
Returns
void

Definition at line 236 of file BackendLayoutView.php.

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

◆ createDataProviderContext()

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

◆ determinePageId()

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
NULL|int

Definition at line 142 of file BackendLayoutView.php.

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

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

◆ getColPosListItemsParsed()

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

◆ getDatabaseConnection()

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

◆ getDataProviderCollection()

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

◆ getDefaultColumnLayout()

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

Get default columns layout

Returns
string Default four column layout

Definition at line 389 of file BackendLayoutView.php.

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

◆ getIdentifiersToBeExcluded()

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

◆ getLanguageService()

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

◆ getPage()

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

◆ getRootLine()

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

Gets the page root-line.

Parameters
int$pageId
Returns
array

Definition at line 444 of file BackendLayoutView.php.

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

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

◆ getSelectedCombinedIdentifier()

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 174 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\addItems().

◆ setDataProviderCollection()

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

Definition at line 79 of file BackendLayoutView.php.

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

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

Member Data Documentation

◆ $dataProviderCollection

◆ $selectedBackendLayout

TYPO3\CMS\Backend\View\BackendLayoutView::$selectedBackendLayout = []
protected

Definition at line 39 of file BackendLayoutView.php.

◆ $selectedCombinedIdentifier

TYPO3\CMS\Backend\View\BackendLayoutView::$selectedCombinedIdentifier = []
protected