[!!!][CLEANUP] Remove deprecated files in typo3/
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Controller / ListFrameLoaderController.php
1 <?php
2 namespace TYPO3\CMS\Backend\Controller;
3
4 /**
5 * This file is part of the TYPO3 CMS project.
6 *
7 * It is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License, either version 2
9 * of the License, or any later version.
10 *
11 * For the full copyright and license information, please read the
12 * LICENSE.txt file that was distributed with this source code.
13 *
14 * The TYPO3 project - inspiring people to share!
15 */
16
17 /**
18 * Script Class for redirecting shortcut actions to the correct script
19 *
20 * @author Kasper Skårhøj <kasperYYYY@typo3.com>
21 * @deprecated this logic is not needed anymore, and will be removed with CMS 8
22 */
23 class ListFrameLoaderController {
24
25 /**
26 * Main content generated
27 *
28 * @return void
29 * @deprecated since TYPO3 CMS 7, will be removed with CMS 8
30 */
31 public function main() {
32 \TYPO3\CMS\Core\Utility\GeneralUtility::logDeprecatedFunction();
33 $GLOBALS['TBE_TEMPLATE']->divClass = '';
34 $this->content .= $GLOBALS['TBE_TEMPLATE']->startPage('List Frame Loader');
35 $this->content .= $GLOBALS['TBE_TEMPLATE']->wrapScriptTags('
36 var theUrl = top.getModuleUrl("");
37 if (theUrl) window.location.href=theUrl;
38 ');
39 // End page:
40 $this->content .= $GLOBALS['TBE_TEMPLATE']->endPage();
41 // Output:
42 echo $this->content;
43 }
44
45 }