[TASK] Cleanup entry classes in typo3/ part2 69/21669/3
authorWouter Wolters <typo3@wouterwolters.nl>
Wed, 26 Jun 2013 17:36:15 +0000 (19:36 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Mon, 15 Jul 2013 08:11:20 +0000 (10:11 +0200)
Cleanup the entry classes inside typo3/ with the following
changes:

* Move language include to constructor
* Remove not needed doc-comments
* Make class available in $GLOBALS['SOBE']

Change-Id: Ie5bcf1f6f09a070a946a021d41d4809567ff6229
Resolves: #49454
Releases: 6.2
Reviewed-on: https://review.typo3.org/21669
Reviewed-by: Alexander Opitz
Reviewed-by: Markus Klein
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
30 files changed:
typo3/alt_clickmenu.php
typo3/alt_db_navframe.php
typo3/alt_doc.php
typo3/alt_doc_nodoc.php
typo3/alt_file_navframe.php
typo3/alt_shortcut.php
typo3/browse_links.php
typo3/browser.php
typo3/class.browse_links.php
typo3/cli_dispatch.phpsh
typo3/db_new.php
typo3/dummy.php
typo3/file_edit.php
typo3/file_newfolder.php
typo3/file_rename.php
typo3/file_upload.php
typo3/sysext/backend/Classes/Controller/ClickMenuController.php
typo3/sysext/backend/Classes/Controller/DummyController.php
typo3/sysext/backend/Classes/Controller/EditDocumentController.php
typo3/sysext/backend/Classes/Controller/File/CreateFolderController.php
typo3/sysext/backend/Classes/Controller/File/EditFileController.php
typo3/sysext/backend/Classes/Controller/File/FileUploadController.php
typo3/sysext/backend/Classes/Controller/File/RenameFileController.php
typo3/sysext/backend/Classes/Controller/FileSystemNavigationFrameController.php
typo3/sysext/backend/Classes/Controller/NewRecordController.php
typo3/sysext/backend/Classes/Controller/NoDocumentsOpenController.php
typo3/sysext/backend/Classes/Controller/PageTreeNavigationController.php
typo3/sysext/backend/Classes/Controller/ShortcutFrameController.php
typo3/sysext/recordlist/Classes/Controller/ElementBrowserController.php
typo3/sysext/recordlist/Classes/Controller/ElementBrowserFramesetController.php

index 88fdd5b..3983a6c 100644 (file)
@@ -24,6 +24,7 @@
  *
  *  This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
  * Context menu
  *
  *
  * If you want to integrate a context menu in your scripts, please see template::getContextMenuCode()
  *
- * Revised for TYPO3 3.6 2/2003 by Kasper Skårhøj
- * XHTML compliant
- *
  * @author Kasper Skårhøj <kasperYYYY@typo3.com>
  */
 require 'init.php';
-$LANG->includeLLFile('EXT:lang/locallang_misc.xlf');
 
-// Make instance:
-$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\ClickMenuController');
-$SOBE->init();
+$clickMenuController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\ClickMenuController');
 
 /**
  * Include files for extra click menu options
@@ -55,6 +50,6 @@ foreach ($SOBE->include_once as $INC_FILE) {
        include_once $INC_FILE;
 }
 
-$SOBE->main();
-$SOBE->printContent();
+$clickMenuController->main();
+$clickMenuController->printContent();
 ?>
\ No newline at end of file
index e423a15..a0c0614 100644 (file)
  *
  *  This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
  * Page navigation tree for the Web module
  *
- * Revised for TYPO3 3.6 2/2003 by Kasper Skårhøj
- * XHTML compliant
- *
  * @author Kasper Skårhøj <kasperYYYY@typo3.com>
  */
-$BACK_PATH = '';
 require_once 'init.php';
 
 // Make instance if it is not an AJAX call
 if (!(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_AJAX)) {
-       $SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\PageTreeNavigationController');
-       $SOBE->init();
-       $SOBE->initPage();
-       $SOBE->main();
-       $SOBE->printContent();
+       $pageTreeNavigationController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\PageTreeNavigationController');
+       $pageTreeNavigationController->initPage();
+       $pageTreeNavigationController->main();
+       $pageTreeNavigationController->printContent();
 }
 ?>
\ No newline at end of file
index c5fb94f..53b2d46 100644 (file)
  *
  *  This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
  * Main form rendering script
  * By sending certain parameters to this script you can bring up a form
  * which allows the user to edit the content of one or more database records.
  *
- * Revised for TYPO3 3.6 November/2003 by Kasper Skårhøj
- * XHTML compliant
- *
  * @author Kasper Skårhøj <kasperYYYY@typo3.com>
  */
 require_once 'init.php';
-$GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_alt_doc.xml');
 \TYPO3\CMS\Backend\Utility\BackendUtility::lockRecords();
 
-// Make instance:
-$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\EditDocumentController');
+$editDocumentController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\EditDocumentController');
 
 // Preprocessing, storing data if submitted to
-$SOBE->preInit();
+$editDocumentController->preInit();
 $formprotection = \TYPO3\CMS\Core\FormProtection\FormProtectionFactory::get();
 
 // Checks, if a save button has been clicked (or the doSave variable is sent)
-if ($SOBE->doProcessData()) {
+if ($editDocumentController->doProcessData()) {
        if ($formprotection->validateToken(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('formToken'), 'editRecord')) {
-               $SOBE->processData();
+               $editDocumentController->processData();
        }
 }
 
-// Main:
-$SOBE->init();
-$SOBE->main();
-$SOBE->printContent();
+$editDocumentController->init();
+$editDocumentController->main();
+$editDocumentController->printContent();
 ?>
\ No newline at end of file
index 1e2347b..bd2e23d 100644 (file)
  *
  *  This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
  * No-document script
  * This is used by eg. the Doc module if no documents is registered as "open"
  * (a concept which is better known from the "classic backend"...)
  *
- * Revised for TYPO3 3.6 November/2003 by Kasper Skårhøj
- * XHTML compliant
- *
  * @author Kasper Skårhøj <kasperYYYY@typo3.com>
  */
 require 'init.php';
-$LANG->includeLLFile('EXT:lang/locallang_alt_doc.xml');
 
-// Make instance:
-$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Backend\Controller\NoDocumentsOpenController');
-$SOBE->init();
-$SOBE->main();
-$SOBE->printContent();
+$noDocumentsOpenController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Backend\Controller\NoDocumentsOpenController');
+$noDocumentsOpenController->main();
+$noDocumentsOpenController->printContent();
 ?>
\ No newline at end of file
index a14216f..8b6f9ae 100644 (file)
  *
  *  This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
  * Folder tree in the File main module.
  *
- * Revised for TYPO3 3.6 2/2003 by Kasper Skårhøj
- * XHTML compliant
- *
  * @author Kasper Skårhøj <kasperYYYY@typo3.com>
  */
-$BACK_PATH = '';
 require_once 'init.php';
 
 // Make instance if it is not an AJAX call
 if (!(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_AJAX)) {
-       $SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\FileSystemNavigationFrameController');
-       $SOBE->init();
-       $SOBE->initPage();
-       $SOBE->main();
-       $SOBE->printContent();
+       $fileSystemNavigationFrameController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
+               'TYPO3\\CMS\\Backend\\Controller\\FileSystemNavigationFrameController'
+       );
+       $fileSystemNavigationFrameController->initPage();
+       $fileSystemNavigationFrameController->main();
+       $fileSystemNavigationFrameController->printContent();
 }
 ?>
\ No newline at end of file
index 2584e51..de55bee 100644 (file)
  *
  *  This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
  * Shortcut frame
  * Appears in the bottom frame of the backend frameset.
  * Provides links to registered shortcuts
  * If the 'cms' extension is loaded you will also have a field for entering page id/alias which will be found/edited
  *
- * Revised for TYPO3 3.6 2/2003 by Kasper Skårhøj
- * XHTML compliant output
- *
  * @author Kasper Skårhøj <kasperYYYY@typo3.com>
  */
 require 'init.php';
-$LANG->includeLLFile('EXT:lang/locallang_misc.xlf');
 
-// Make instance:
-$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\ShortcutFrameController');
-$SOBE->preinit();
-$SOBE->preprocess();
-$SOBE->init();
-$SOBE->main();
-$SOBE->printContent();
+$shortcutFrameController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\ShortcutFrameController');
+$shortcutFrameController->preprocess();
+$shortcutFrameController->init();
+$shortcutFrameController->main();
+$shortcutFrameController->printContent();
 ?>
\ No newline at end of file
index cbafed8..3adce0c 100644 (file)
  *
  *  This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
  * Displays the page/file tree for browsing database records or files.
  * Used from TCEFORMS an other elements
  * In other words: This is the ELEMENT BROWSER!
  *
- * Revised for TYPO3 3.6 November/2003 by Kasper Skårhøj
- * XHTML compliant
- *
  * @author Kasper Skårhøj <kasperYYYY@typo3.com>
  */
-$BACK_PATH = '';
 require 'init.php';
-$LANG->includeLLFile('EXT:lang/locallang_browse_links.xlf');
 
-// Make instance:
-$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Recordlist\\Controller\\ElementBrowserController');
-$SOBE->init();
-$SOBE->main();
-$SOBE->printContent();
+$elementBrowserController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Recordlist\\Controller\\ElementBrowserController');
+$elementBrowserController->main();
+$elementBrowserController->printContent();
 ?>
\ No newline at end of file
index 9492452..361398f 100644 (file)
  *
  *  This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
  * This is the frameset to the file/record browser window
  *
- * Revised for TYPO3 3.6 July/2003 by Kasper Skårhøj
- * XHTML-frames compatible.
- *
- * @author     Kasper Skårhøj <kasperYYYY@typo3.com>
+ * @author Kasper Skårhøj <kasperYYYY@typo3.com>
  */
 require 'init.php';
 
-// Make instance:
-$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Recordlist\\Controller\\ElementBrowserFramesetController');
-$SOBE->main();
-$SOBE->printContent();
+$elementBrowserFramesetController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Recordlist\\Controller\\ElementBrowserFramesetController');
+$elementBrowserFramesetController->main();
+$elementBrowserFramesetController->printContent();
 ?>
\ No newline at end of file
index ecca79c..c203fa1 100644 (file)
@@ -142,7 +142,6 @@ class localPageTree extends \TYPO3\CMS\Backend\Tree\View\BrowseTreeView {
  */
 class rtePageTree extends localPageTree {
 
-
 }
 
 /**
@@ -269,7 +268,6 @@ class localFolderTree extends \TYPO3\CMS\Backend\Tree\View\FolderTreeView {
  */
 class rteFolderTree extends localFolderTree {
 
-
 }
 
 /**
index f441339..77ec27e 100755 (executable)
@@ -1,30 +1,30 @@
 #! /usr/bin/env php
 <?php
 /***************************************************************
-*  Copyright notice
-*
-*  (c) 2005-2013 Kasper Skaarhoj (kasperYYYY@typo3.com)
-*  All rights reserved
-*
-*  This script is part of the TYPO3 project. The TYPO3 project is
-*  free software; you can redistribute it and/or modify
-*  it under the terms of the GNU General Public License as published by
-*  the Free Software Foundation; either version 2 of the License, or
-*  (at your option) any later version.
-*
-*  The GNU General Public License can be found at
-*  http://www.gnu.org/copyleft/gpl.html.
-*  A copy is found in the textfile GPL.txt and important notices to the license
-*  from the author is found in LICENSE.txt distributed with these scripts.
-*
-*
-*  This script is distributed in the hope that it will be useful,
-*  but WITHOUT ANY WARRANTY; without even the implied warranty of
-*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-*  GNU General Public License for more details.
-*
-*  This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
+ *  Copyright notice
+ *
+ *  (c) 2005-2013 Kasper Skaarhoj (kasperYYYY@typo3.com)
+ *  All rights reserved
+ *
+ *  This script is part of the TYPO3 project. The TYPO3 project is
+ *  free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  The GNU General Public License can be found at
+ *  http://www.gnu.org/copyleft/gpl.html.
+ *  A copy is found in the textfile GPL.txt and important notices to the license
+ *  from the author is found in LICENSE.txt distributed with these scripts.
+ *
+ *
+ *  This script is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  This copyright notice MUST APPEAR in all copies of the script!
+ ***************************************************************/
 
 /**
  * Command Line Interface module dispatcher
index d932f36..b0131b7 100644 (file)
  *
  *  This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
  * New database item menu
  *
  * This script lets users choose a new database element to create.
  * Includes a wizard mode for visually pointing out the position of new pages
  *
- * Revised for TYPO3 3.6 November/2003 by Kasper Skårhøj
- * XHTML compliant
- *
  * @author Kasper Skårhøj <kasperYYYY@typo3.com>
  */
-$BACK_PATH = '';
 require 'init.php';
-$LANG->includeLLFile('EXT:lang/locallang_misc.xlf');
 
 /**
  * Extension for the tree class that generates the tree of pages in the page-wizard mode
@@ -71,9 +67,7 @@ class localPageTree extends \TYPO3\CMS\Backend\Tree\View\PageTreeView {
        }
 }
 
-// Make instance:
-$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\NewRecordController');
-$SOBE->init();
-$SOBE->main();
-$SOBE->printContent();
+$newRecordController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\NewRecordController');
+$newRecordController->main();
+$newRecordController->printContent();
 ?>
\ No newline at end of file
index 0ff6ad0..ef175cc 100644 (file)
  *
  *  This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
  * Dummy document - displays nothing but background color.
  *
- * Revised for TYPO3 3.6 2/2003 by Kasper Skårhøj
- * XHTML compliant content
- *
  * @author Kasper Skårhøj <kasperYYYY@typo3.com>
  */
 require 'init.php';
 
-// Make instance:
-$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\DummyController');
-$SOBE->main();
-$SOBE->printContent();
+$dummyController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\DummyController');
+$dummyController->main();
+$dummyController->printContent();
 ?>
\ No newline at end of file
index 55817dd..ea24e7b 100644 (file)
  *
  *  This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
  * Web>File: Editing documents
  *
- * Revised for TYPO3 3.6 2/2003 by Kasper Skårhøj
- * XHTML compliant (except textarea field)
- *
  * @author Kasper Skårhøj <kasperYYYY@typo3.com>
  */
-$GLOBALS['BACK_PATH'] = '';
 require 'init.php';
 
-// Make instance:
-$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\File\\EditFileController');
-$SOBE->init();
-$SOBE->main();
-$SOBE->printContent();
+$editFileController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\File\\EditFileController');
+$editFileController->main();
+$editFileController->printContent();
 ?>
\ No newline at end of file
index 5bfdbdc..1f35dcd 100644 (file)
  *
  *  This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
  * Web>File: Create new folders in the filemounts
  *
- * Revised for TYPO3 3.6 November/2003 by Kasper Skårhøj
- *
  * @author Kasper Skårhøj <kasperYYYY@typo3.com>
  */
-$BACK_PATH = '';
 require 'init.php';
 
-// Make instance:
-$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\File\\CreateFolderController');
-$SOBE->init();
-$SOBE->main();
-$SOBE->printContent();
+$createFolderController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\File\\CreateFolderController');
+$createFolderController->main();
+$createFolderController->printContent();
 ?>
\ No newline at end of file
index 617f634..d559706 100644 (file)
  *
  *  This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
  * Web>File: Renaming files and folders
  *
- * Revised for TYPO3 3.6 November/2003 by Kasper Skårhøj
- *
  * @author Kasper Skårhøj <kasperYYYY@typo3.com>
  */
-$BACK_PATH = '';
 require 'init.php';
 
-// Make instance:
-$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\File\\RenameFileController');
-$SOBE->init();
-$SOBE->main();
-$SOBE->printContent();
+$renameFileController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\File\\RenameFileController');
+$renameFileController->main();
+$renameFileController->printContent();
 ?>
\ No newline at end of file
index a6a2687..29ed199 100644 (file)
  *
  *  This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
  * Web>File: Upload of files
  *
- * Revised for TYPO3 3.6 November/2003 by Kasper Skårhøj
- *
  * @author Kasper Skårhøj <kasperYYYY@typo3.com>
  */
-$BACK_PATH = '';
 require 'init.php';
-$LANG->includeLLFile('EXT:lang/locallang_misc.xlf');
 
-// Make instance:
-$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\File\\FileUploadController');
-$SOBE->init();
-$SOBE->main();
-$SOBE->printContent();
+$fileUploadController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\File\\FileUploadController');
+$fileUploadController->main();
+$fileUploadController->printContent();
 ?>
\ No newline at end of file
index c8826ae..cdc14eb 100644 (file)
@@ -83,12 +83,21 @@ class ClickMenuController {
        public $extClassArray = array();
 
        /**
+        * Constructor
+        */
+       public function __construct() {
+               $GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_misc.xlf');
+               $GLOBALS['SOBE'] = $this;
+
+               $this->init();
+       }
+
+       /**
         * Constructor function for script class.
         *
         * @return void
-        * @todo Define visibility
         */
-       public function init() {
+       protected function init() {
                // Setting GPvars:
                $this->backPath = GeneralUtility::_GP('backPath');
                $this->item = GeneralUtility::_GP('item');
@@ -177,7 +186,6 @@ class ClickMenuController {
         * Main function - generating the click menu in whatever form it has.
         *
         * @return void
-        * @todo Define visibility
         */
        public function main() {
                $this->ajax = GeneralUtility::_GP('ajax') ? TRUE : FALSE;
@@ -210,7 +218,6 @@ class ClickMenuController {
         * End page and output content.
         *
         * @return void
-        * @todo Define visibility
         */
        public function printContent() {
                if (!$this->ajax) {
index 4a56532..c060b15 100644 (file)
@@ -43,7 +43,6 @@ class DummyController {
         * Create content for the dummy script - outputting a blank page.
         *
         * @return void
-        * @todo Define visibility
         */
        public function main() {
                // Start page
@@ -56,7 +55,6 @@ class DummyController {
         * Outputting the accumulated content to screen
         *
         * @return void
-        * @todo Define visibility
         */
        public function printContent() {
                echo $this->content;
index 3d30655..9619f8a 100644 (file)
@@ -352,10 +352,17 @@ class EditDocumentController {
        public $dontStoreDocumentRef;
 
        /**
+        * Constructor
+        */
+       public function __construct() {
+               $GLOBALS['SOBE'] = $this;
+               $GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_alt_doc.xml');
+       }
+
+       /**
         * First initialization.
         *
         * @return void
-        * @todo Define visibility
         */
        public function preInit() {
                if (GeneralUtility::_GP('justLocalized')) {
@@ -408,7 +415,6 @@ class EditDocumentController {
         * Detects, if a save command has been triggered.
         *
         * @return boolean TRUE, then save the document (data submitted)
-        * @todo Define visibility
         */
        public function doProcessData() {
                $out = $this->doSave || isset($_POST['_savedok_x']) || isset($_POST['_saveandclosedok_x']) || isset($_POST['_savedokview_x']) || isset($_POST['_savedoknew_x']) || isset($_POST['_translation_savedok_x']) || isset($_POST['_translation_savedokclear_x']);
@@ -419,7 +425,6 @@ class EditDocumentController {
         * Do processing of data, submitting it to TCEmain.
         *
         * @return void
-        * @todo Define visibility
         */
        public function processData() {
                // GPvars specifically for processing:
@@ -554,7 +559,6 @@ class EditDocumentController {
         * Initialize the normal module operation
         *
         * @return void
-        * @todo Define visibility
         */
        public function init() {
                // Setting more GPvars:
@@ -632,7 +636,6 @@ class EditDocumentController {
         * Main module operation
         *
         * @return void
-        * @todo Define visibility
         */
        public function main() {
                // Begin edit:
@@ -699,7 +702,6 @@ class EditDocumentController {
         * Outputting the accumulated content to screen
         *
         * @return void
-        * @todo Define visibility
         */
        public function printContent() {
                echo $this->content;
index b3669ba..27d8a41 100644 (file)
@@ -91,12 +91,21 @@ class CreateFolderController {
        public $content;
 
        /**
-        * Constructor function for class
+        * Constructor
+        */
+       public function __construct() {
+               $GLOBALS['SOBE'] = $this;
+               $GLOBALS['BACK_PATH'] = '';
+
+               $this->init();
+       }
+
+       /**
+        * Initialize
         *
         * @return void
-        * @todo Define visibility
         */
-       public function init() {
+       protected function init() {
                // Initialize GPvars:
                $this->number = GeneralUtility::_GP('number');
                $this->target = ($combinedIdentifier = GeneralUtility::_GP('target'));
@@ -139,7 +148,6 @@ class CreateFolderController {
         * Main function, rendering the main module content
         *
         * @return void
-        * @todo Define visibility
         */
        public function main() {
                // Start content compilation
@@ -244,7 +252,6 @@ class CreateFolderController {
         * Outputting the accumulated content to screen
         *
         * @return void
-        * @todo Define visibility
         */
        public function printContent() {
                echo $this->content;
index 469cfff..00b5855 100644 (file)
@@ -84,12 +84,21 @@ class EditFileController {
        protected $fileObject;
 
        /**
+        * Constructor
+        */
+       public function __construct() {
+               $GLOBALS['SOBE'] = $this;
+               $GLOBALS['BACK_PATH'] = '';
+
+               $this->init();
+       }
+
+       /**
         * Initialize script class
         *
         * @return      void
-        * @todo Define visibility
         */
-       public function init() {
+       protected function init() {
                // Setting target, which must be a file reference to a file within the mounts.
                $this->target = ($this->origTarget = ($fileIdentifier = GeneralUtility::_GP('target')));
                $this->returnUrl = GeneralUtility::sanitizeLocalUrl(GeneralUtility::_GP('returnUrl'));
@@ -123,7 +132,6 @@ class EditFileController {
         * Main function, redering the actual content of the editing page
         *
         * @return void
-        * @todo Define visibility
         */
        public function main() {
                $docHeaderButtons = $this->getButtons();
@@ -201,7 +209,6 @@ class EditFileController {
         * Outputting the accumulated content to screen
         *
         * @return void
-        * @todo Define visibility
         */
        public function printContent() {
                echo $this->content;
index f767fdf..1d09030 100644 (file)
@@ -80,12 +80,22 @@ class FileUploadController {
        protected $folderObject;
 
        /**
-        * Constructor for initializing the class
+        * Constructor
+        */
+       public function __construct() {
+               $GLOBALS['SOBE'] = $this;
+               $GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_misc.xlf');
+               $GLOBALS['BACK_PATH'] = '';
+
+               $this->init();
+       }
+
+       /**
+        * Initialize
         *
         * @return      void
-        * @todo Define visibility
         */
-       public function init() {
+       protected function init() {
                // Initialize GPvars:
                $this->target = GeneralUtility::_GP('target');
                $this->returnUrl = GeneralUtility::sanitizeLocalUrl(GeneralUtility::_GP('returnUrl'));
@@ -116,7 +126,6 @@ class FileUploadController {
         * Main function, rendering the upload file form fields
         *
         * @return void
-        * @todo Define visibility
         */
        public function main() {
                // Make page header:
@@ -185,7 +194,6 @@ class FileUploadController {
         * Outputting the accumulated content to screen
         *
         * @return void
-        * @todo Define visibility
         */
        public function printContent() {
                echo $this->content;
index 024660c..d12d421 100644 (file)
@@ -80,12 +80,21 @@ class RenameFileController {
        public $content;
 
        /**
-        * Constructor function for class
+        * Constructor
+        */
+       public function __construct() {
+               $GLOBALS['SOBE'] = $this;
+               $GLOBALS['BACK_PATH'] = '';
+
+               $this->init();
+       }
+
+       /**
+        * Initialize
         *
-        * @return      void
-        * @todo Define visibility
+        * @return void
         */
-       public function init() {
+       protected function init() {
                // Initialize GPvars:
                $this->target = GeneralUtility::_GP('target');
                $this->returnUrl = GeneralUtility::sanitizeLocalUrl(GeneralUtility::_GP('returnUrl'));
@@ -127,7 +136,6 @@ class RenameFileController {
         * Main function, rendering the content of the rename form
         *
         * @return void
-        * @todo Define visibility
         */
        public function main() {
                // Make page header:
@@ -184,7 +192,6 @@ class RenameFileController {
         * Outputting the accumulated content to screen
         *
         * @return void
-        * @todo Define visibility
         */
        public function printContent() {
                echo $this->content;
@@ -192,4 +199,4 @@ class RenameFileController {
 
 }
 
-?>
\ No newline at end of file
+?>
index a8484f8..f3412e8 100644 (file)
@@ -75,12 +75,20 @@ class FileSystemNavigationFrameController {
        public $cMR;
 
        /**
+        * Constructor
+        */
+       public function __construct() {
+               $GLOBALS['SOBE'] = $this;
+               $GLOBALS['BACK_PATH'] = '';
+               $this->init();
+       }
+
+       /**
         * Initialiation of the script class
         *
         * @return      void
-        * @todo Define visibility
         */
-       public function init() {
+       protected function init() {
                // Setting backPath
                $this->backPath = $GLOBALS['BACK_PATH'];
                // Setting GPvars:
@@ -138,7 +146,6 @@ class FileSystemNavigationFrameController {
         * Main function, rendering the folder tree
         *
         * @return void
-        * @todo Define visibility
         */
        public function main() {
                // Produce browse-tree:
@@ -169,7 +176,6 @@ class FileSystemNavigationFrameController {
         * Outputting the accumulated content to screen
         *
         * @return void
-        * @todo Define visibility
         */
        public function printContent() {
                echo $this->content;
index a964d63..f465c4c 100644 (file)
@@ -157,12 +157,22 @@ class NewRecordController {
        public $tRows;
 
        /**
+        * Constructor
+        */
+       public function __construct() {
+               $GLOBALS['SOBE'] = $this;
+               $GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_misc.xlf');
+               $GLOBALS['BACK_PATH'] = '';
+
+               $this->init();
+       }
+
+       /**
         * Constructor function for the class
         *
         * @return void
-        * @todo Define visibility
         */
-       public function init() {
+       protected function init() {
                // Page-selection permission clause (reading)
                $this->perms_clause = $GLOBALS['BE_USER']->getPagePermsClause(1);
                // This will hide records from display - it has nothing to do with user rights!!
@@ -221,7 +231,6 @@ class NewRecordController {
         * Main processing, creating the list of new record tables to select from
         *
         * @return void
-        * @todo Define visibility
         */
        public function main() {
                // If there was a page - or if the user is admin (admins has access to the root) we proceed:
@@ -568,7 +577,6 @@ class NewRecordController {
         * Ending page output and echo'ing content to browser.
         *
         * @return void
-        * @todo Define visibility
         */
        public function printContent() {
                echo $this->content;
@@ -655,4 +663,4 @@ class NewRecordController {
 
 }
 
-?>
\ No newline at end of file
+?>
index d18e5ee..bc8d29a 100644 (file)
@@ -60,12 +60,21 @@ class NoDocumentsOpenController {
        public $loadModules;
 
        /**
-        * Constructor, initialize.
+        * Constructor
+        */
+       public function __construct() {
+               $GLOBALS['SOBE'] = $this;
+               $GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_alt_doc.xml');
+
+               $this->init();
+       }
+
+       /**
+        * Initialize.
         *
         * @return void
-        * @todo Define visibility
         */
-       public function init() {
+       protected function init() {
                // Start the template object:
                $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
                $this->doc->bodyTagMargins['x'] = 5;
@@ -97,7 +106,6 @@ class NoDocumentsOpenController {
         * Rendering the content.
         *
         * @return void
-        * @todo Define visibility
         */
        public function main() {
                $msg = array();
@@ -144,7 +152,6 @@ class NoDocumentsOpenController {
         * Printing the content.
         *
         * @return void
-        * @todo Define visibility
         */
        public function printContent() {
                $this->content .= $this->doc->endPage();
index 54f4a1f..302280d 100644 (file)
@@ -97,12 +97,21 @@ class PageTreeNavigationController {
        public $hasFilterBox;
 
        /**
+        * Constructor
+        */
+       public function __construct() {
+               $GLOBALS['SOBE'] = $this;
+               $GLOBALS['BACK_PATH'] = '';
+
+               $this->init();
+       }
+
+       /**
         * Initialiation of the class
         *
         * @return      void
-        * @todo Define visibility
         */
-       public function init() {
+       protected function init() {
                // Setting backPath
                $this->backPath = $GLOBALS['BACK_PATH'];
                // Setting GPvars:
@@ -187,7 +196,6 @@ class PageTreeNavigationController {
         * Main function, rendering the browsable page tree
         *
         * @return      void
-        * @todo Define visibility
         */
        public function main() {
                // Produce browse-tree:
@@ -232,7 +240,6 @@ class PageTreeNavigationController {
         * Outputting the accumulated content to screen
         *
         * @return void
-        * @todo Define visibility
         */
        public function printContent() {
                echo $this->content;
@@ -355,4 +362,4 @@ class PageTreeNavigationController {
 
 }
 
-?>
\ No newline at end of file
+?>
index ee2b924..f34dfd1 100644 (file)
@@ -174,12 +174,21 @@ class ShortcutFrameController {
        public $alternativeTableUid = array();
 
        /**
+        * Constructor
+        */
+       public function __construct() {
+               $GLOBALS['SOBE'] = $this;
+               $GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_misc.xlf');
+
+               $this->preinit();
+       }
+
+       /**
         * Pre-initialization - setting input variables for storing shortcuts etc.
         *
         * @return void
-        * @todo Define visibility
         */
-       public function preinit() {
+       protected function preinit() {
                // Setting GPvars:
                $this->isAjaxCall = (bool) GeneralUtility::_GP('ajax');
                $this->modName = GeneralUtility::_GP('modName');
@@ -202,7 +211,6 @@ class ShortcutFrameController {
         * Adding shortcuts, editing shortcuts etc.
         *
         * @return void
-        * @todo Define visibility
         */
        public function preprocess() {
                // Default description
@@ -282,7 +290,6 @@ class ShortcutFrameController {
         * Initialize (page output)
         *
         * @return void
-        * @todo Define visibility
         */
        public function init() {
                $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
@@ -324,7 +331,6 @@ class ShortcutFrameController {
         * Main function, creating content in the frame
         *
         * @return      void
-        * @todo Define visibility
         */
        public function main() {
                // By default, 5 groups are set
@@ -632,7 +638,6 @@ class ShortcutFrameController {
         * Outputting the accumulated content to screen
         *
         * @return void
-        * @todo Define visibility
         */
        public function printContent() {
                $content = '';
index fcc697a..b2de67d 100644 (file)
@@ -66,12 +66,22 @@ class ElementBrowserController {
        public $doc;
 
        /**
+        * Constructor
+        */
+       public function __construct() {
+               $GLOBALS['SOBE'] = $this;
+               $GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_browse_links.xlf');
+               $GLOBALS['BACK_PATH'] = '';
+
+               $this->init();
+       }
+
+       /**
         * Not really needed but for backwards compatibility ...
         *
         * @return void
-        * @todo Define visibility
         */
-       public function init() {
+       protected function init() {
                // Find "mode"
                $this->mode = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('mode');
                if (!$this->mode) {
@@ -87,7 +97,6 @@ class ElementBrowserController {
         * Main function, detecting the current mode of the element browser and branching out to internal methods.
         *
         * @return void
-        * @todo Define visibility
         */
        public function main() {
                // Clear temporary DB mounts
@@ -108,9 +117,7 @@ class ElementBrowserController {
                // Look for alternative mountpoints
                switch ((string) $this->mode) {
                        case 'rte':
-
                        case 'db':
-
                        case 'wizard':
                                // Setting alternative browsing mounts (ONLY local to browse_links.php this script so they stay "read-only")
                                $altMountPoints = trim($GLOBALS['BE_USER']->getTSConfigVal('options.pageTree.altElementBrowserMountPoints'));
@@ -119,9 +126,7 @@ class ElementBrowserController {
                                        $GLOBALS['WEBMOUNTS'] = $GLOBALS['BE_USER']->returnWebmounts();
                                }
                        case 'file':
-
                        case 'filedrag':
-
                        case 'folder':
                                // Setting additional read-only browsing file mounts
                                // @todo: add this feature for FAL and TYPO3 6.0
@@ -166,7 +171,6 @@ class ElementBrowserController {
                                        $this->content = $this->browser->main_db();
                                        break;
                                case 'file':
-
                                case 'filedrag':
                                        $this->content = $this->browser->main_file();
                                        break;
@@ -184,7 +188,6 @@ class ElementBrowserController {
         * Print module content
         *
         * @return void
-        * @todo Define visibility
         */
        public function printContent() {
                echo $this->content;
@@ -192,5 +195,4 @@ class ElementBrowserController {
 
 }
 
-
-?>
+?>
\ No newline at end of file
index b68f40b..db8a932 100644 (file)
@@ -45,7 +45,6 @@ class ElementBrowserFramesetController {
         * Creates the header code in XHTML, the JavaScript, then the frameset for the two frames.
         *
         * @return void
-        * @todo Define visibility
         */
        public function main() {
                // Setting GPvars:
@@ -84,7 +83,6 @@ class ElementBrowserFramesetController {
         * Outputs the page content.
         *
         * @return void
-        * @todo Define visibility
         */
        public function printContent() {
                echo $this->content;
@@ -92,5 +90,4 @@ class ElementBrowserFramesetController {
 
 }
 
-
 ?>
\ No newline at end of file