[TASK] Use proper class naming for ext_posMap for Page Module
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / layout / db_layout.php
1 <?php
2 /*
3 * This file is part of the TYPO3 CMS project.
4 *
5 * It is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU General Public License, either version 2
7 * of the License, or any later version.
8 *
9 * For the full copyright and license information, please read the
10 * LICENSE.txt file that was distributed with this source code.
11 *
12 * The TYPO3 project - inspiring people to share!
13 */
14
15 /**
16 * Module: Web>Page
17 *
18 * This module lets you view a page in a more Content Management like style than the ordinary record-list
19 *
20 * @author Kasper Skårhøj <kasperYYYY@typo3.com>
21 */
22 unset($MCONF);
23 require __DIR__ . '/conf.php';
24 require $BACK_PATH . 'init.php';
25 $LANG->includeLLFile('EXT:cms/layout/locallang.xlf');
26
27 $BE_USER->modAccess($MCONF, 1);
28 // Will open up records locked by current user. It's assumed that the locking should end if this script is hit.
29 \TYPO3\CMS\Backend\Utility\BackendUtility::lockRecords();
30
31 \TYPO3\CMS\Core\Utility\GeneralUtility::deprecationLog(
32 'The page layout class is moved to an own module. Please use BackendUtility::getModuleUrl(\'web_layout\') to link to db_layout.php. This script will be removed with version TYPO3 CMS 8.'
33 );
34
35 $GLOBALS['SOBE'] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\PageLayoutController::class);
36 $GLOBALS['SOBE']->init();
37 $GLOBALS['SOBE']->clearCache();
38 $GLOBALS['SOBE']->main();
39 $GLOBALS['SOBE']->printContent();