[TASK] Remove FrontendFormEngine class 98/40998/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Wed, 8 Jul 2015 11:10:05 +0000 (13:10 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 8 Jul 2015 17:47:42 +0000 (19:47 +0200)
Last core usage of FrontendFormEngine was removed in 6.2 with a
refactoring of feedit. The class was only a slight extension of
FormEngine. Since the FormEngine works is breaking and also
documented as such, the class is now dropped without further
deprecation - it is also relatively unlikely any currently
maintained still relies on it.

Resolves: #67979
Releases: master
Change-Id: I766dade040725b468572e6f303786af035bc2f2b
Reviewed-on: http://review.typo3.org/40998
Reviewed-by: Thomas Schlumberger <thomas@b13.de>
Tested-by: Thomas Schlumberger <thomas@b13.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Form/FrontendFormEngine.php [deleted file]
typo3/sysext/compatibility6/Migrations/Code/ClassAliasMap.php
typo3/sysext/compatibility6/Migrations/Code/LegacyClassesForIde.php

diff --git a/typo3/sysext/backend/Classes/Form/FrontendFormEngine.php b/typo3/sysext/backend/Classes/Form/FrontendFormEngine.php
deleted file mode 100644 (file)
index 90dd7e4..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-<?php
-namespace TYPO3\CMS\Backend\Form;
-
-/*
- * This file is part of the TYPO3 CMS project.
- *
- * It is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License, either version 2
- * of the License, or any later version.
- *
- * For the full copyright and license information, please read the
- * LICENSE.txt file that was distributed with this source code.
- *
- * The TYPO3 project - inspiring people to share!
- */
-
-use TYPO3\CMS\Core\Utility\GeneralUtility;
-
-/**
- * Extension class for the rendering of TCEforms in the frontend
- *
- * @author Kasper Skårhøj <kasperYYYY@typo3.com>
- */
-class FrontendFormEngine extends \TYPO3\CMS\Backend\Form\FormEngine {
-
-       /**
-        * Constructs this object.
-        */
-       public function __construct() {
-               $this->initializeTemplateContainer();
-               parent::__construct();
-       }
-
-       /**
-        * Prints the palette in the frontend editing (forms-on-page?)
-        *
-        * @param array $paletteArray The palette array to print
-        * @return string HTML output
-        * @deprecated since TYPO3 CMS 7, will be removed in TYPO3 CMS 8
-        */
-       public function printPalette(array $paletteArray) {
-               GeneralUtility::logDeprecatedFunction();
-               $out = '';
-               $bgColor = ' bgcolor="#D6DAD0"';
-               foreach ($paletteArray as $content) {
-                       $hRow[] = '<td' . $bgColor . '><font face="verdana" size="1">&nbsp;</font></td><td nowrap="nowrap"' . $bgColor . '><font color="#666666" face="verdana" size="1">' . $content['NAME'] . '</font></td>';
-                       $iRow[] = '<td valign="top">' . '<img name="req_' . $content['TABLE'] . '_' . $content['ID'] . '_' . $content['FIELD'] . '" src="clear.gif" width="10" height="10" alt="" /></td><td nowrap="nowrap" valign="top">' . $content['ITEM'] . $content['HELP_ICON'] . '</td>';
-               }
-               $out = '<table border="0" cellpadding="0" cellspacing="0">
-                       <tr><td><img src="clear.gif" width="1" height="1" alt="" /></td>' . implode('', $hRow) . '</tr>
-                       <tr><td></td>' . implode('', $iRow) . '</tr>
-               </table>';
-               return $out;
-       }
-
-       /**
-        * Includes a javascript library that exists in the core /typo3/ directory. The
-        * backpath is automatically applied.
-        * This method adds the library to $GLOBALS['TSFE']->additionalHeaderData[$lib].
-        *
-        * @param string $lib Library name. Call it with the full path like "contrib/prototype/prototype.js" to load it
-        * @return void
-        */
-       public function loadJavascriptLib($lib) {
-               /** @var $pageRenderer \TYPO3\CMS\Core\Page\PageRenderer */
-               $pageRenderer = $GLOBALS['TSFE']->getPageRenderer();
-               $pageRenderer->addJsLibrary($lib, $this->prependBackPath($lib));
-       }
-
-       /**
-        * Initializes an anonymous template container.
-        * The created container can be compared to "record_edit" module in backend-only disposal.
-        *
-        * @return void
-        */
-       public function initializeTemplateContainer() {
-               $GLOBALS['TBE_TEMPLATE'] = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\FrontendDocumentTemplate::class);
-               $GLOBALS['TBE_TEMPLATE']->getPageRenderer()->addInlineSetting('', 'PATH_typo3', GeneralUtility::dirname(GeneralUtility::getIndpEnv('SCRIPT_NAME')) . '/' . TYPO3_mainDir);
-               $GLOBALS['SOBE'] = new \stdClass();
-               $GLOBALS['SOBE']->doc = $GLOBALS['TBE_TEMPLATE'];
-       }
-
-       /**
-        * Prepends backPath to given URL if it's not an absolute URL
-        *
-        * @param string $url
-        * @return string
-        */
-       private function prependBackPath($url) {
-               return $url;
-       }
-
-}
index 015fbf1..7c8ff25 100644 (file)
@@ -55,7 +55,6 @@ return array(
        't3lib_transferData' => \TYPO3\CMS\Backend\Form\DataPreprocessor::class,
        't3lib_tceformsInlineHook' => \TYPO3\CMS\Backend\Form\Element\InlineElementHookInterface::class,
        't3lib_TCEforms' => \TYPO3\CMS\Backend\Form\FormEngine::class,
-       't3lib_TCEforms_FE' => \TYPO3\CMS\Backend\Form\FrontendFormEngine::class,
        't3lib_TCEforms_dbFileIconsHook' => \TYPO3\CMS\Backend\Form\DatabaseFileIconsHookInterface::class,
        't3lib_TCEforms_Suggest' => \TYPO3\CMS\Backend\Form\Wizard\SuggestWizard::class,
        't3lib_TCEforms_Suggest_DefaultReceiver' => \TYPO3\CMS\Backend\Form\Wizard\SuggestWizardDefaultReceiver::class,
index 50c7a14..a0d96ab 100644 (file)
@@ -284,11 +284,6 @@ class t3lib_TCEforms extends \TYPO3\CMS\Backend\Form\FormEngine {}
 /**
  * @deprecated since 6.0, removed since 7.0
  */
-class t3lib_TCEforms_FE extends \TYPO3\CMS\Backend\Form\FrontendFormEngine {}
-
-/**
- * @deprecated since 6.0, removed since 7.0
- */
 interface t3lib_TCEforms_dbFileIconsHook extends \TYPO3\CMS\Backend\Form\DatabaseFileIconsHookInterface {}
 
 /**