TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\Controller\PageLayoutController Class Reference

Public Member Functions

 init ()
 
 menuConfig ()
 
 clearCache ()
 
 mainAction (ServerRequestInterface $request, ResponseInterface $response)
 
 main ()
 
 getModuleTemplate ()
 
 printContent ()
 
 getNumberOfHiddenElements ()
 
 local_linkThisScript ($params)
 
 exec_languageQuery ($id)
 
 isColumnEmpty ($colPos, $languageId)
 
 getElementsFromColumnAndLanguage ($pageId, $colPos, $languageId)
 
 pageIsNotLockedForEditors ()
 
 contentIsNotLockedForEditors ()
 

Public Attributes

 $id
 
 $pointer
 
 $imagemode
 
 $search_field
 
 $search_levels
 
 $showLimit
 
 $returnUrl
 
 $clear_cache
 
 $popView
 
 $edit_record
 
 $new_unique_uid
 
 $perms_clause
 
 $modTSconfig
 
 $modSharedTSconfig
 
 $pageinfo
 
 $descrTable
 
 $colPosList
 
 $EDIT_CONTENT
 
 $CALC_PERMS
 
 $current_sys_language
 
 $MCONF = []
 
 $MOD_MENU = []
 
 $MOD_SETTINGS = []
 
 $externalTables = []
 
 $content
 
 $activeColPosList
 
 $contentElementCache = []
 

Protected Member Functions

 makeActionMenu ()
 
 getHeaderFlashMessagesForCurrentPid ()
 
 getLocalizedPageTitle ()
 
 makeButtons ($function='')
 
 getLanguageService ()
 
 getBackendUser ()
 
 getDatabaseConnection ()
 
 getPageRenderer ()
 
 makeQuickEditMenu ($edit_record)
 
 makeLanguageMenu ()
 
 currentPageHasSubPages ()
 

Protected Attributes

 $eRParts = []
 
 $editSelect
 
 $deleteButton
 
 $undoButton
 
 $undoButtonR
 
 $R_URI
 
 $closeUrl
 
 $languagesInColumnCache = []
 
 $iconFactory
 
 $moduleName = 'web_layout'
 
 $moduleTemplate
 
 $buttonBar
 
 $searchContent
 

Detailed Description

Script Class for Web > Layout module

Definition at line 50 of file PageLayoutController.php.

Member Function Documentation

◆ clearCache()

TYPO3\CMS\Backend\Controller\PageLayoutController::clearCache ( )

Clears page cache for the current id, $this->id

Returns
void

Definition at line 480 of file PageLayoutController.php.

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

Referenced by TYPO3\CMS\Backend\Controller\PageLayoutController\mainAction().

◆ contentIsNotLockedForEditors()

TYPO3\CMS\Backend\Controller\PageLayoutController::contentIsNotLockedForEditors ( )

◆ currentPageHasSubPages()

TYPO3\CMS\Backend\Controller\PageLayoutController::currentPageHasSubPages ( )
protected

◆ exec_languageQuery()

TYPO3\CMS\Backend\Controller\PageLayoutController::exec_languageQuery (   $id)

Returns a SQL query for selecting sys_language records.

Parameters
int$idPage id: If zero, the query will select all sys_language records from root level which are NOT hidden. If set to another value, the query will select all sys_language records that has a pages_language_overlay record on that page (and is not hidden, unless you are admin user)
Returns
string Return query string.

Definition at line 1296 of file PageLayoutController.php.

References TYPO3\CMS\Backend\Controller\PageLayoutController\$id, TYPO3\CMS\Backend\Utility\BackendUtility\deleteClause(), TYPO3\CMS\Backend\Controller\PageLayoutController\getBackendUser(), TYPO3\CMS\Backend\Controller\PageLayoutController\getDatabaseConnection(), and TYPO3\CMS\Backend\Utility\BackendUtility\versioningPlaceholderClause().

Referenced by TYPO3\CMS\Backend\Controller\PageLayoutController\menuConfig().

◆ getBackendUser()

◆ getDatabaseConnection()

◆ getElementsFromColumnAndLanguage()

TYPO3\CMS\Backend\Controller\PageLayoutController::getElementsFromColumnAndLanguage (   $pageId,
  $colPos,
  $languageId 
)

Get elements for a column and a language

Parameters
int$pageId
int$colPos
int$languageId
Returns
array

Definition at line 1345 of file PageLayoutController.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\deleteClause(), TYPO3\CMS\Backend\Controller\PageLayoutController\getBackendUser(), and TYPO3\CMS\Backend\Controller\PageLayoutController\getDatabaseConnection().

◆ getHeaderFlashMessagesForCurrentPid()

◆ getLanguageService()

◆ getLocalizedPageTitle()

◆ getModuleTemplate()

TYPO3\CMS\Backend\Controller\PageLayoutController::getModuleTemplate ( )
Returns
ModuleTemplate

Definition at line 1034 of file PageLayoutController.php.

References TYPO3\CMS\Backend\Controller\PageLayoutController\$moduleTemplate.

◆ getNumberOfHiddenElements()

TYPO3\CMS\Backend\Controller\PageLayoutController::getNumberOfHiddenElements ( )

◆ getPageRenderer()

TYPO3\CMS\Backend\Controller\PageLayoutController::getPageRenderer ( )
protected

Returns current PageRenderer

Returns
PageRenderer

Definition at line 1426 of file PageLayoutController.php.

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

Referenced by TYPO3\CMS\Backend\Controller\PageLayoutController\main().

◆ init()

◆ isColumnEmpty()

TYPO3\CMS\Backend\Controller\PageLayoutController::isColumnEmpty (   $colPos,
  $languageId 
)

Check if a column of a page for a language is empty. Translation records are ignored here!

Parameters
int$colPos
int$languageId
Returns
bool

Definition at line 1327 of file PageLayoutController.php.

References $uid.

◆ local_linkThisScript()

TYPO3\CMS\Backend\Controller\PageLayoutController::local_linkThisScript (   $params)

Returns URL to the current script. In particular the "popView" and "new_unique_uid" Get vars are unset.

Parameters
array$paramsParameters array, merged with global GET vars.
Returns
string URL

Definition at line 1283 of file PageLayoutController.php.

References $params, and TYPO3\CMS\Core\Utility\GeneralUtility\linkThisScript().

Referenced by TYPO3\CMS\Backend\Controller\PageLayoutController\getHeaderFlashMessagesForCurrentPid(), TYPO3\CMS\Backend\Controller\PageLayoutController\main(), and TYPO3\CMS\Backend\Controller\PageLayoutController\makeQuickEditMenu().

◆ main()

TYPO3\CMS\Backend\Controller\PageLayoutController::main ( )

Main function. Creates some general objects and calls other functions for the main rendering of module content.

Returns
void

Definition at line 587 of file PageLayoutController.php.

References TYPO3\CMS\Backend\Controller\PageLayoutController\$activeColPosList, TYPO3\CMS\Backend\Controller\PageLayoutController\$CALC_PERMS, TYPO3\CMS\Backend\Controller\PageLayoutController\$colPosList, TYPO3\CMS\Backend\Controller\PageLayoutController\$content, TYPO3\CMS\Backend\Controller\PageLayoutController\$current_sys_language, TYPO3\CMS\Backend\Controller\PageLayoutController\$descrTable, TYPO3\CMS\Backend\Controller\PageLayoutController\$EDIT_CONTENT, TYPO3\CMS\Backend\Controller\PageLayoutController\$edit_record, TYPO3\CMS\Backend\Controller\PageLayoutController\$externalTables, $GLOBALS, TYPO3\CMS\Backend\Controller\PageLayoutController\$id, TYPO3\CMS\Backend\Controller\PageLayoutController\$imagemode, TYPO3\CMS\Backend\Controller\PageLayoutController\$new_unique_uid, $params, TYPO3\CMS\Backend\Controller\PageLayoutController\$R_URI, TYPO3\CMS\Backend\Controller\PageLayoutController\$searchContent, TYPO3\CMS\Core\Utility\GeneralUtility\_GET(), TYPO3\CMS\Backend\Utility\BackendUtility\BEenableFields(), TYPO3\CMS\Backend\Utility\BackendUtility\BEgetRootLine(), TYPO3\CMS\Backend\Template\Components\ButtonBar\BUTTON_POSITION_LEFT, TYPO3\CMS\Core\Utility\GeneralUtility\callUserFunction(), TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger(), TYPO3\CMS\Backend\Controller\PageLayoutController\contentIsNotLockedForEditors(), TYPO3\CMS\Backend\Utility\BackendUtility\cshItem(), TYPO3\CMS\Backend\Utility\BackendUtility\deleteClause(), TYPO3\CMS\Core\Utility\MathUtility\forceIntegerInRange(), TYPO3\CMS\Backend\Controller\PageLayoutController\getBackendUser(), TYPO3\CMS\Backend\Controller\PageLayoutController\getDatabaseConnection(), TYPO3\CMS\Core\Utility\GeneralUtility\getFileAbsFileName(), TYPO3\CMS\Backend\Utility\BackendUtility\getFuncCheck(), TYPO3\CMS\Backend\Utility\BackendUtility\getFuncMenu(), TYPO3\CMS\Backend\Controller\PageLayoutController\getHeaderFlashMessagesForCurrentPid(), TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv(), TYPO3\CMS\Backend\Controller\PageLayoutController\getLanguageService(), TYPO3\CMS\Backend\Controller\PageLayoutController\getLocalizedPageTitle(), TYPO3\CMS\Backend\Controller\PageLayoutController\getNumberOfHiddenElements(), TYPO3\CMS\Backend\Controller\PageLayoutController\getPageRenderer(), TYPO3\CMS\Backend\Utility\BackendUtility\getWorkspaceVersionOfRecord(), TYPO3\CMS\Core\Utility\GeneralUtility\implodeArrayForUrl(), TYPO3\CMS\Core\Utility\GeneralUtility\intExplode(), TYPO3\CMS\Backend\Utility\BackendUtility\isRecordLocked(), TYPO3\CMS\Backend\Controller\PageLayoutController\local_linkThisScript(), TYPO3\CMS\Backend\Utility\BackendUtility\lockRecords(), TYPO3\CMS\Backend\Controller\PageLayoutController\makeButtons(), TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), TYPO3\CMS\Backend\Controller\PageLayoutController\makeLanguageMenu(), TYPO3\CMS\Backend\Controller\PageLayoutController\makeQuickEditMenu(), TYPO3\CMS\Core\Type\Bitmask\Permission\PAGE_DELETE, TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue(), TYPO3\CMS\Core\Utility\HttpUtility\redirect(), TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL, TYPO3\CMS\Fluid\ViewHelpers\Be\InfoboxViewHelper\STATE_INFO, TYPO3\CMS\Backend\Utility\BackendUtility\versioningPlaceholderClause(), TYPO3\CMS\Backend\Utility\BackendUtility\viewOnClick(), and TYPO3\CMS\Core\Messaging\AbstractMessage\WARNING.

Referenced by TYPO3\CMS\Backend\Controller\PageLayoutController\mainAction().

◆ mainAction()

TYPO3\CMS\Backend\Controller\PageLayoutController::mainAction ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

Injects the request object for the current request or subrequest As this controller goes only through the main() method, it is rather simple for now

Parameters
ServerRequestInterface$requestthe current request
ResponseInterface$response
Returns
ResponseInterface the response with the content

Definition at line 571 of file PageLayoutController.php.

References $GLOBALS, TYPO3\CMS\Backend\Controller\PageLayoutController\clearCache(), TYPO3\CMS\Backend\Controller\PageLayoutController\init(), and TYPO3\CMS\Backend\Controller\PageLayoutController\main().

◆ makeActionMenu()

TYPO3\CMS\Backend\Controller\PageLayoutController::makeActionMenu ( )
protected

◆ makeButtons()

TYPO3\CMS\Backend\Controller\PageLayoutController::makeButtons (   $function = '')
protected

◆ makeLanguageMenu()

TYPO3\CMS\Backend\Controller\PageLayoutController::makeLanguageMenu ( )
protected

◆ makeQuickEditMenu()

◆ menuConfig()

◆ pageIsNotLockedForEditors()

TYPO3\CMS\Backend\Controller\PageLayoutController::pageIsNotLockedForEditors ( )

◆ printContent()

TYPO3\CMS\Backend\Controller\PageLayoutController::printContent ( )

Print accumulated content of module

Returns
void

Definition at line 1044 of file PageLayoutController.php.

Member Data Documentation

◆ $activeColPosList

TYPO3\CMS\Backend\Controller\PageLayoutController::$activeColPosList

◆ $buttonBar

TYPO3\CMS\Backend\Controller\PageLayoutController::$buttonBar
protected

Definition at line 308 of file PageLayoutController.php.

◆ $CALC_PERMS

TYPO3\CMS\Backend\Controller\PageLayoutController::$CALC_PERMS

◆ $clear_cache

TYPO3\CMS\Backend\Controller\PageLayoutController::$clear_cache

Definition at line 106 of file PageLayoutController.php.

◆ $closeUrl

TYPO3\CMS\Backend\Controller\PageLayoutController::$closeUrl
protected

Definition at line 271 of file PageLayoutController.php.

◆ $colPosList

TYPO3\CMS\Backend\Controller\PageLayoutController::$colPosList

◆ $content

◆ $contentElementCache

TYPO3\CMS\Backend\Controller\PageLayoutController::$contentElementCache = []

Definition at line 286 of file PageLayoutController.php.

◆ $current_sys_language

TYPO3\CMS\Backend\Controller\PageLayoutController::$current_sys_language

◆ $deleteButton

TYPO3\CMS\Backend\Controller\PageLayoutController::$deleteButton
protected

◆ $descrTable

TYPO3\CMS\Backend\Controller\PageLayoutController::$descrTable

◆ $EDIT_CONTENT

TYPO3\CMS\Backend\Controller\PageLayoutController::$EDIT_CONTENT

◆ $edit_record

TYPO3\CMS\Backend\Controller\PageLayoutController::$edit_record

◆ $editSelect

TYPO3\CMS\Backend\Controller\PageLayoutController::$editSelect
protected

Definition at line 246 of file PageLayoutController.php.

◆ $eRParts

TYPO3\CMS\Backend\Controller\PageLayoutController::$eRParts = []
protected

Definition at line 241 of file PageLayoutController.php.

◆ $externalTables

TYPO3\CMS\Backend\Controller\PageLayoutController::$externalTables = []

◆ $iconFactory

TYPO3\CMS\Backend\Controller\PageLayoutController::$iconFactory
protected

Definition at line 291 of file PageLayoutController.php.

◆ $id

◆ $imagemode

TYPO3\CMS\Backend\Controller\PageLayoutController::$imagemode

◆ $languagesInColumnCache

TYPO3\CMS\Backend\Controller\PageLayoutController::$languagesInColumnCache = []
protected

Definition at line 278 of file PageLayoutController.php.

◆ $MCONF

TYPO3\CMS\Backend\Controller\PageLayoutController::$MCONF = []

Definition at line 200 of file PageLayoutController.php.

◆ $MOD_MENU

TYPO3\CMS\Backend\Controller\PageLayoutController::$MOD_MENU = []

Definition at line 207 of file PageLayoutController.php.

◆ $MOD_SETTINGS

TYPO3\CMS\Backend\Controller\PageLayoutController::$MOD_SETTINGS = []

Definition at line 214 of file PageLayoutController.php.

◆ $modSharedTSconfig

TYPO3\CMS\Backend\Controller\PageLayoutController::$modSharedTSconfig

Definition at line 150 of file PageLayoutController.php.

◆ $modTSconfig

TYPO3\CMS\Backend\Controller\PageLayoutController::$modTSconfig

Definition at line 143 of file PageLayoutController.php.

◆ $moduleName

TYPO3\CMS\Backend\Controller\PageLayoutController::$moduleName = 'web_layout'
protected

◆ $moduleTemplate

TYPO3\CMS\Backend\Controller\PageLayoutController::$moduleTemplate
protected

◆ $new_unique_uid

TYPO3\CMS\Backend\Controller\PageLayoutController::$new_unique_uid

◆ $pageinfo

TYPO3\CMS\Backend\Controller\PageLayoutController::$pageinfo

Definition at line 157 of file PageLayoutController.php.

◆ $perms_clause

TYPO3\CMS\Backend\Controller\PageLayoutController::$perms_clause

Definition at line 136 of file PageLayoutController.php.

◆ $pointer

TYPO3\CMS\Backend\Controller\PageLayoutController::$pointer

Definition at line 64 of file PageLayoutController.php.

◆ $popView

TYPO3\CMS\Backend\Controller\PageLayoutController::$popView

Definition at line 113 of file PageLayoutController.php.

◆ $R_URI

TYPO3\CMS\Backend\Controller\PageLayoutController::$R_URI
protected

◆ $returnUrl

TYPO3\CMS\Backend\Controller\PageLayoutController::$returnUrl

◆ $search_field

TYPO3\CMS\Backend\Controller\PageLayoutController::$search_field

◆ $search_levels

TYPO3\CMS\Backend\Controller\PageLayoutController::$search_levels

Definition at line 85 of file PageLayoutController.php.

◆ $searchContent

TYPO3\CMS\Backend\Controller\PageLayoutController::$searchContent
protected

◆ $showLimit

TYPO3\CMS\Backend\Controller\PageLayoutController::$showLimit

Definition at line 92 of file PageLayoutController.php.

◆ $undoButton

TYPO3\CMS\Backend\Controller\PageLayoutController::$undoButton
protected

◆ $undoButtonR

TYPO3\CMS\Backend\Controller\PageLayoutController::$undoButtonR
protected

Definition at line 261 of file PageLayoutController.php.