[TASK] Deprecated Big/Small/Medium/Standard-Document 55/18555/5
authorBenjamin Mack <benni@typo3.org>
Fri, 5 Apr 2013 14:40:11 +0000 (16:40 +0200)
committerBenjamin Mack <benni@typo3.org>
Fri, 5 Apr 2013 15:27:09 +0000 (17:27 +0200)
Deprecates classes:

- BigDocumentTemplate
- SmallDocumentTemplate
- MediumDocumentTemplate
- StandardDocumentTemplate

These classes are rarely used.
Also the standard style in the backend move along.

Resolves: #45955
Releases: 6.1
Change-Id: Ic6e261eef960a71f56a8c5af4724f24e5da8e32c
Reviewed-on: https://review.typo3.org/18555
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Magdalena Leichsenring
Tested-by: Magdalena Leichsenring
27 files changed:
typo3/sysext/backend/Classes/Controller/BackendLayoutWizardController.php
typo3/sysext/backend/Classes/Controller/ContentElement/ElementHistoryController.php
typo3/sysext/backend/Classes/Controller/ContentElement/MoveElementController.php
typo3/sysext/backend/Classes/Controller/ContentElement/NewContentElementController.php
typo3/sysext/backend/Classes/Controller/EditDocumentController.php
typo3/sysext/backend/Classes/Controller/File/CreateFolderController.php
typo3/sysext/backend/Classes/Controller/File/FileUploadController.php
typo3/sysext/backend/Classes/Controller/File/RenameFileController.php
typo3/sysext/backend/Classes/Controller/NewRecordController.php
typo3/sysext/backend/Classes/Controller/NoDocumentsOpenController.php
typo3/sysext/backend/Classes/Controller/PageLayoutController.php
typo3/sysext/backend/Classes/Controller/Wizard/ColorpickerController.php
typo3/sysext/backend/Classes/Controller/Wizard/FormsController.php
typo3/sysext/backend/Classes/Controller/Wizard/RteController.php
typo3/sysext/backend/Classes/Controller/Wizard/TableController.php
typo3/sysext/backend/Classes/Template/MediumDocumentTemplate.php
typo3/sysext/backend/Classes/Template/SmallDocumentTemplate.php
typo3/sysext/backend/Classes/Template/StandardDocumentTemplate.php
typo3/sysext/backend/Classes/Wizard/TsconfigWizard.php
typo3/sysext/cms/layout/res/grideditor.css
typo3/sysext/form/Classes/View/Wizard/WizardView.php
typo3/sysext/func/Classes/Controller/PageFunctionsController.php
typo3/sysext/indexed_search/Classes/Controller/ModuleController.php
typo3/sysext/info/Classes/Controller/InfoModuleController.php
typo3/sysext/lowlevel/Classes/View/ConfigurationView.php
typo3/sysext/lowlevel/Classes/View/DatabaseIntegrityView.php
typo3/sysext/setup/Classes/Controller/SetupModuleController.php

index e50f6b7..a2be20b 100644 (file)
@@ -44,7 +44,7 @@ class BackendLayoutWizardController {
        /**
         * Document template object
         *
-        * @var \TYPO3\CMS\Backend\Template\SmallDocumentTemplate
+        * @var \TYPO3\CMS\Backend\Template\DocumentTemplate
         * @todo Define visibility
         */
        public $doc;
@@ -69,7 +69,7 @@ class BackendLayoutWizardController {
                $this->md5ID = $this->P['md5ID'];
                $uid = intval($this->P['uid']);
                // Initialize document object:
-               $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\StandardDocumentTemplate');
+               $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $pageRenderer = $this->doc->getPageRenderer();
                $pageRenderer->addJsFile($GLOBALS['BACK_PATH'] . TYPO3_MOD_PATH . 'res/grideditor.js');
index bb8bab6..8b8a8d1 100644 (file)
@@ -44,7 +44,7 @@ class ElementHistoryController {
        /**
         * Document template object
         *
-        * @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
+        * @var \TYPO3\CMS\Backend\Template\DocumentTemplate
         * @todo Define visibility
         */
        public $doc;
index 7b95121..85eb782 100644 (file)
@@ -73,7 +73,7 @@ class MoveElementController {
        /**
         * Document template object
         *
-        * @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
+        * @var \TYPO3\CMS\Backend\Template\DocumentTemplate
         * @todo Define visibility
         */
        public $doc;
index 5067744..5ff5281 100644 (file)
@@ -74,7 +74,7 @@ class NewContentElementController {
        /**
         * Internal backend template object
         *
-        * @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
+        * @var \TYPO3\CMS\Backend\Template\DocumentTemplate
         * @todo Define visibility
         */
        public $doc;
index 0fcc709..06ef929 100644 (file)
@@ -190,7 +190,7 @@ class EditDocumentController {
        /**
         * document template object
         *
-        * @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
+        * @var \TYPO3\CMS\Backend\Template\DocumentTemplate
         * @todo Define visibility
         */
        public $doc;
index 0d196bf..b9b3ed5 100644 (file)
@@ -44,7 +44,7 @@ class CreateFolderController {
        /**
         * document template object
         *
-        * @var \TYPO3\CMS\Backend\Template\SmallDocumentTemplate
+        * @var \TYPO3\CMS\Backend\Template\DocumentTemplate
         * @todo Define visibility
         */
        public $doc;
index 9471216..30ac382 100644 (file)
@@ -38,7 +38,7 @@ class FileUploadController {
        /**
         * Document template object
         *
-        * @var \TYPO3\CMS\Backend\Template\SmallDocumentTemplate
+        * @var \TYPO3\CMS\Backend\Template\DocumentTemplate
         * @todo Define visibility
         */
        public $doc;
index d3c57f6..676d08e 100644 (file)
@@ -38,7 +38,7 @@ class RenameFileController {
        /**
         * Document template object
         *
-        * @var \TYPO3\CMS\Backend\Template\SmallDocumentTemplate
+        * @var \TYPO3\CMS\Backend\Template\DocumentTemplate
         * @todo Define visibility
         */
        public $doc;
index cc79950..bff4358 100644 (file)
@@ -135,7 +135,7 @@ class NewRecordController {
        /**
         * Document template object
         *
-        * @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
+        * @var \TYPO3\CMS\Backend\Template\DocumentTemplate
         * @todo Define visibility
         */
        public $doc;
index d5c1077..a0ee4b5 100644 (file)
@@ -44,7 +44,7 @@ class NoDocumentsOpenController {
        /**
         * Document template object
         *
-        * @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
+        * @var \TYPO3\CMS\Backend\Template\DocumentTemplate
         * @todo Define visibility
         */
        public $doc;
@@ -65,7 +65,7 @@ class NoDocumentsOpenController {
         */
        public function init() {
                // Start the template object:
-               $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\MediumDocumentTemplate');
+               $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
                $this->doc->bodyTagMargins['x'] = 5;
                $this->doc->bodyTagMargins['y'] = 5;
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
index c13e9cf..8afcf3e 100644 (file)
@@ -123,7 +123,7 @@ class PageLayoutController {
        /**
         * Document template object
         *
-        * @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
+        * @var \TYPO3\CMS\Backend\Template\DocumentTemplate
         * @todo Define visibility
         */
        public $doc;
index 3c5a411..52d99bc 100644 (file)
@@ -102,7 +102,7 @@ class ColorpickerController {
        /**
         * Document template object
         *
-        * @var \TYPO3\CMS\Backend\Template\SmallDocumentTemplate
+        * @var \TYPO3\CMS\Backend\Template\DocumentTemplate
         * @todo Define visibility
         */
        public $doc;
@@ -149,7 +149,7 @@ class ColorpickerController {
                        }
                }
                // Initialize document object:
-               $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\SmallDocumentTemplate');
+               $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->JScode = $this->doc->wrapScriptTags('
                        function checkReference() {     //
index 51f79e4..226b7e5 100644 (file)
@@ -125,7 +125,7 @@ class FormsController {
        /**
         * document template object
         *
-        * @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
+        * @var \TYPO3\CMS\Backend\Template\DocumentTemplate
         * @todo Define visibility
         */
        public $doc;
index 302c84e..a4e09fa 100644 (file)
@@ -38,7 +38,7 @@ class RteController {
        /**
         * document template object
         *
-        * @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
+        * @var \TYPO3\CMS\Backend\Template\DocumentTemplate
         * @todo Define visibility
         */
        public $doc;
index c35013d..edfec95 100644 (file)
@@ -38,7 +38,7 @@ class TableController {
        /**
         * document template object
         *
-        * @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
+        * @var \TYPO3\CMS\Backend\Template\DocumentTemplate
         * @todo Define visibility
         */
        public $doc;
index 3da08df..921805e 100644 (file)
@@ -30,15 +30,16 @@ namespace TYPO3\CMS\Backend\Template;
 /**
  * Extension class for "template" - used for backend pages which were medium wide. Typically submodules to Web or File which were presented in the list-frame when the content frame were divided into a navigation and list frame.
  * The class were more significant in the past than today. But probably you should use this one for most modules you make.
+ *
+ * @deprecated since 6.1 will be removed two versions later
  */
 class MediumDocumentTemplate extends \TYPO3\CMS\Backend\Template\DocumentTemplate {
 
-       /**
-        * @todo Define visibility
-        */
-       public $divClass = 'typo3-mediumDoc';
+       public function __construct() {
+               \TYPO3\CMS\Core\Utility\GeneralUtility::logDeprecatedFunction();
+               parent::__construct();
+       }
 
 }
 
-
 ?>
\ No newline at end of file
index 705687d..04c08f2 100644 (file)
@@ -30,15 +30,16 @@ namespace TYPO3\CMS\Backend\Template;
 /**
  * Extension class for "template" - used for backend pages which were narrow (like the Web>List modules list frame. Or the "Show details" pop up box)
  * The class were more significant in the past than today.
+ *
+ * @deprecated since 6.1 will be removed two versions later
  */
 class SmallDocumentTemplate extends \TYPO3\CMS\Backend\Template\DocumentTemplate {
 
-       /**
-        * @todo Define visibility
-        */
-       public $divClass = 'typo3-smallDoc';
+       public function __construct() {
+               \TYPO3\CMS\Core\Utility\GeneralUtility::logDeprecatedFunction();
+               parent::__construct();
+       }
 
 }
 
-
 ?>
\ No newline at end of file
index 0f5c17d..54e4e7b 100644 (file)
@@ -30,15 +30,16 @@ namespace TYPO3\CMS\Backend\Template;
 /**
  * Extension class for "template" - used for backend pages without the "document" background image
  * The class were more significant in the past than today.
+ *
+ * @deprecated since 6.1 will be removed two versions later
  */
 class StandardDocumentTemplate extends \TYPO3\CMS\Backend\Template\DocumentTemplate {
 
-       /**
-        * @todo Define visibility
-        */
-       public $divClass = 'typo3-noDoc';
+       public function __construct() {
+               \TYPO3\CMS\Core\Utility\GeneralUtility::logDeprecatedFunction();
+               parent::__construct();
+       }
 
 }
 
-
 ?>
\ No newline at end of file
index 8236800..25589ef 100644 (file)
@@ -38,7 +38,7 @@ class TsconfigWizard {
        /**
         * document template object
         *
-        * @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
+        * @var \TYPO3\CMS\Backend\Template\DocumentTemplate
         * @todo Define visibility
         */
        public $doc;
index 44b276d..bc44cf0 100644 (file)
@@ -4,17 +4,7 @@
        position: relative;
 }
 
-body, html {
-       height: 100%;
-       width: 100%;
-}
-
-div.typo3-noDoc {
-       width: 98%;
-       height: 90%;
-       margin: 0;
-       padding: 5px;
-}
+body { padding: 10px; }
 
 table#outer_container td, table#editor td {
        vertical-align: middle;
@@ -132,23 +122,6 @@ div.cell_container:hover {
 .cancel {
        background-image: url(t3grid-layer-icon-close.png) !important;
 }
-* {
-       padding: 0;
-       margin: 0;
-       position: relative;
-}
-
-body, html {
-       height: 100%;
-       width: 100%;
-}
-
-div.typo3-noDoc {
-       width: 98%;
-       height: 90%;
-       margin: 0;
-       padding: 5px;
-}
 
 table#outer_container td, table#editor td {
        vertical-align: middle;
index 382a080..e0a9a83 100644 (file)
@@ -37,7 +37,7 @@ class WizardView extends \TYPO3\CMS\Form\View\Wizard\AbstractWizardView {
         * Needs to be a local variable of the class, because this will be used by
         * the TYPO3 Backend Template Class typo3/template.php
         *
-        * @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
+        * @var \TYPO3\CMS\Backend\Template\DocumentTemplate
         */
        public $doc;
 
index 0edbc61..708b4d4 100644 (file)
@@ -49,7 +49,7 @@ class PageFunctionsController extends \TYPO3\CMS\Backend\Module\BaseScriptClass
        /**
         * Document Template Object
         *
-        * @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
+        * @var \TYPO3\CMS\Backend\Template\DocumentTemplate
         * @todo Define visibility
         */
        public $doc;
index 3138f7d..af1238a 100644 (file)
@@ -52,7 +52,7 @@ class ModuleController {
        /**
         * document template object
         *
-        * @var \TYPO3\CMS\Backend\Template\StandardDocumentTemplate
+        * @var \TYPO3\CMS\Backend\Template\DocumentTemplate
         * @todo Define visibility
         */
        public $doc;
index bb6b661..0d5419d 100644 (file)
@@ -54,7 +54,7 @@ class InfoModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
        /**
         * Document Template Object
         *
-        * @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
+        * @var \TYPO3\CMS\Backend\Template\DocumentTemplate
         * @todo Define visibility
         */
        public $doc;
@@ -118,7 +118,7 @@ class InfoModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
                        $this->content = $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markers);
                } else {
                        // If no access or if ID == zero
-                       $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\MediumDocumentTemplate');
+                       $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
                        $this->doc->backPath = $GLOBALS['BACK_PATH'];
                        $this->content = $this->doc->header($GLOBALS['LANG']->getLL('title'));
                        $this->content .= $this->doc->spacer(5);
index ebc45a4..feaf4de 100644 (file)
@@ -52,7 +52,7 @@ class ConfigurationView {
        /**
         * Document template object
         *
-        * @var \TYPO3\CMS\Backend\Template\StandardDocumentTemplate
+        * @var \TYPO3\CMS\Backend\Template\DocumentTemplate
         * @todo Define visibility
         */
        public $doc;
index d5136f0..6966492 100644 (file)
@@ -52,7 +52,7 @@ class DatabaseIntegrityView {
        /**
         * Document template object
         *
-        * @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
+        * @var \TYPO3\CMS\Backend\Template\DocumentTemplate
         * @todo Define visibility
         */
        public $doc;
index e4f131a..89511e3 100644 (file)
@@ -59,7 +59,7 @@ class SetupModuleController {
        /**
         * document template object
         *
-        * @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
+        * @var \TYPO3\CMS\Backend\Template\DocumentTemplate
         * @todo Define visibility
         */
        public $doc;