[API][!!!] Fix API compatibility break
authorXavier Perseguers <typo3@perseguers.ch>
Fri, 15 Jul 2011 18:59:22 +0000 (20:59 +0200)
committerJigal van Hemert <jigal@xs4all.nl>
Tue, 19 Jul 2011 09:30:09 +0000 (11:30 +0200)
Task #26505 removed old PHP4 constructors without deprecating
them first as required by TYPO3 core rules.
The change was commited to Git here: https://review.typo3.org/1797

The fix: reintroduce the old constructors and deprecate them.

Change-Id: I2fa86c6d2ddb7ffd79fbd5afbbd29eddb975ec01
Resolves: #28246
Releases: 4.6
Reviewed-on: http://review.typo3.org/3371
Reviewed-by: Stefano Kowalke
Reviewed-by: Kay Strobach
Tested-by: Kay Strobach
Reviewed-by: Stefan Neufeind
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
29 files changed:
t3lib/class.t3lib_cli.php
t3lib/class.t3lib_foldertree.php
t3lib/class.t3lib_htmlmail.php
t3lib/class.t3lib_install.php
t3lib/class.t3lib_superadmin.php
t3lib/class.t3lib_tceforms.php
t3lib/class.t3lib_xml.php
typo3/class.browse_links.php
typo3/class.filelistfoldertree.php
typo3/class.show_rechis.inc
typo3/class.webpagetree.php
typo3/sysext/beuser/mod/index.php
typo3/sysext/cms/tslib/class.tslib_fe.php
typo3/sysext/impexp/app/index.php
typo3/sysext/indexed_search/class.lexer.php
typo3/sysext/install/mod/class.tx_install.php
typo3/sysext/lowlevel/class.tx_lowlevel_admin_core.php
typo3/sysext/lowlevel/class.tx_lowlevel_cleaner_core.php
typo3/sysext/lowlevel/clmods/class.cleanflexform.php
typo3/sysext/lowlevel/clmods/class.deleted.php
typo3/sysext/lowlevel/clmods/class.double_files.php
typo3/sysext/lowlevel/clmods/class.lost_files.php
typo3/sysext/lowlevel/clmods/class.missing_files.php
typo3/sysext/lowlevel/clmods/class.missing_relations.php
typo3/sysext/lowlevel/clmods/class.orphan_records.php
typo3/sysext/lowlevel/clmods/class.rte_images.php
typo3/sysext/lowlevel/clmods/class.syslog.php
typo3/sysext/lowlevel/clmods/class.versions.php
typo3/template.php

index f6c6d1c..6f7bad8 100644 (file)
@@ -70,6 +70,19 @@ class t3lib_cli {
        }
 
        /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function t3lib_cli() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               t3lib_cli::__construct();
+       }
+
+       /**
         * Finds the arg token (like "-s") in argv and returns the rest of argv from that point on.
         * This should only be used in special cases since this->cli_args should already be prepared with an index of values!
         *
index a7155cc..f6cfad8 100644 (file)
@@ -61,6 +61,19 @@ class t3lib_folderTree extends t3lib_treeView {
        }
 
        /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function t3lib_folderTree() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               t3lib_folderTree::__construct();
+       }
+
+       /**
         * Wrapping the folder icon
         *
         * @param       string          The image tag for the icon
index a494165..9765677 100644 (file)
@@ -186,6 +186,18 @@ class t3lib_htmlmail {
                $this->mailer = 'TYPO3';
        }
 
+       /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.5 and will be removed in TYPO3 4.7. Use __construct() instead.
+        */
+       public function t3lib_htmlmail() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               t3lib_htmlmail::__construct();
+       }
 
        /**
         * start action that sets the message ID and the charset
index eecb52f..1526821 100644 (file)
@@ -67,6 +67,19 @@ class t3lib_install {
                $this->sqlHandler = t3lib_div::makeInstance('t3lib_install_Sql');
        }
 
+       /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function t3lib_install() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               t3lib_install::__construct();
+       }
+
 
        /**************************************
         *
index 64b6983..f2ac240 100644 (file)
@@ -120,6 +120,19 @@ class t3lib_superadmin {
        }
 
        /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function t3lib_superadmin() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               t3lib_superadmin::__construct();
+       }
+
+       /**
         * Initialize with configuration - from the 'superadmin.php' script. See misc/superadmin.php for example.
         *
         * @param       array           Numerical array with arrays having two keys, 'dir' and 'url' where 'dir' is the absolute path to a directory with TYPO3 installations inside.
index f0922e8..6a53ed0 100644 (file)
@@ -232,6 +232,19 @@ class t3lib_TCEforms {
        }
 
        /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function t3lib_TCEforms() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               t3lib_TCEforms::__construct();
+       }
+
+       /**
         * Initialize various internal variables.
         *
         * @return      void
index feeba91..84ed452 100644 (file)
@@ -64,6 +64,20 @@ class t3lib_xml {
        }
 
        /**
+        * Compatibility constructor.
+        *
+        * @param string Top Level Name
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function t3lib_xml($topLevelName) {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               t3lib_xml::__construct($topLevelName);
+       }
+
+       /**
         * When outputting a input record in XML only fields listed in $this->XML_recFields for the current table will be rendered.
         *
         * @param       string          Table name
index 74b1553..6975636 100644 (file)
@@ -64,6 +64,19 @@ class TBE_browser_recordList extends localRecordList {
        }
 
        /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function TBE_browser_recordList() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               TBE_browser_recordList::__construct();
+       }
+
+       /**
         * Creates the URL for links
         *
         * @param       mixed           If not blank string, this is used instead of $this->id as the id value.
@@ -176,6 +189,19 @@ class localPageTree extends t3lib_browseTree {
        }
 
        /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function localPageTree() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               localPageTree::__construct();
+       }
+
+       /**
         * Wrapping the title in a link, if applicable.
         *
         * @param       string          Title, (must be ready for output, that means it must be htmlspecialchars()'ed).
@@ -381,6 +407,19 @@ class localFolderTree extends t3lib_folderTree {
        }
 
        /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function localFolderTree() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               localFolderTree::__construct();
+       }
+
+       /**
         * Wrapping the title in a link, if applicable.
         *
         * @param       string          Title, ready for output.
index 8c0703d..c6d0269 100644 (file)
@@ -65,6 +65,19 @@ class filelistFolderTree extends t3lib_folderTree {
        var $ajaxStatus = FALSE; // Indicates, whether the ajax call was successful, i.e. the requested page has been found
 
        /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function filelistFolderTree() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               filelistFolderTree::__construct();
+       }
+
+       /**
         * Wrapping icon in browse tree
         *
         * @param       string          Icon IMG code
index 801f4a6..aa2a23c 100644 (file)
@@ -72,6 +72,19 @@ class recordHistory {
        }
 
        /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function recordHistory() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               recordHistory::__construct();
+       }
+
+       /**
         * Main function for the listing of history.
         * It detects incoming variables like element reference, history element uid etc. and renders the correct screen.
         *
index 3da88de..970c9f0 100644 (file)
@@ -84,6 +84,19 @@ class webPageTree extends t3lib_browseTree {
        }
 
        /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function webPageTree() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               webPageTree::__construct();
+       }
+
+       /**
         * Wrapping icon in browse tree
         *
         * @param       string          Icon IMG code
index d860174..e9b4aa7 100755 (executable)
@@ -76,6 +76,21 @@ $BE_USER->modAccess($MCONF,1);
        }
 
        /**
+        * Compatibility constructor.
+        *
+        * @param object Local backend user (not the GLOBALS[] backend user!!)
+        * @param array Webmounts for the backend user
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function localPageTree($BE_USER, $WEBMOUNTS = '') {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               localPageTree::__construct($BE_USER, $WEBMOUNTS);
+       }
+
+       /**
         * Return select permissions.
         *
         * @return      string          WHERE query part.
@@ -331,6 +346,21 @@ class printAllPageTree_perms extends printAllPageTree {
        }
 
        /**
+        * Compatibility constructor.
+        *
+        * @param object Local backend user (not the GLOBALS[] backend user!!)
+        * @param array Filemounts for the backend user
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function localFolderTree($BE_USER, $FILEMOUNTS = '') {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               localFolderTree::__construct($BE_USER, $FILEMOUNTS);
+       }
+
+       /**
         * Wraps the title.
         *
         * @param       string          [See parent]
index c9ab064..6715aca 100644 (file)
        }
 
        /**
+        * Compatibility constructor.
+        *
+        * @param array The global $TYPO3_CONF_VARS array. Will be set internally in ->TYPO3_CONF_VARS
+        * @param mixed The value of t3lib_div::_GP('id')
+        * @param integer The value of t3lib_div::_GP('type')
+        * @param boolean The value of t3lib_div::_GP('no_cache'), evaluated to 1/0
+        * @param string The value of t3lib_div::_GP('cHash')
+        * @param string The value of t3lib_div::_GP('jumpurl')
+        * @param string The value of t3lib_div::_GP('MP')
+        * @param string The value of t3lib_div::_GP('RDCT')
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function tslib_fe($TYPO3_CONF_VARS, $id, $type, $no_cache = '', $cHash = '', $jumpurl = '', $MP = '', $RDCT = '') {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               tslib_fe::__construct($TYPO3_CONF_VARS, $id, $type, $no_cache, $cHash, $jumpurl, $MP, $RDCT);
+       }
+
+       /**
         * Connect to SQL database. May exit after outputting an error message
         * or some JavaScript redirecting to the install tool.
         *
index 026e4b6..a8f7d5a 100755 (executable)
@@ -93,6 +93,19 @@ class localPageTree extends t3lib_browseTree {
        }
 
        /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function localPageTree() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               localPageTree::__construct();
+       }
+
+       /**
         * Wrapping title from page tree.
         *
         * @param       string          Title to wrap
index b3cf936..12746a8 100755 (executable)
@@ -92,6 +92,19 @@ class tx_indexedsearch_lexer {
        }
 
        /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function tx_indexedsearch_lexer() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               tx_indexedsearch_lexer::__construct();
+       }
+
+       /**
         * Splitting string into words.
         * Used for indexing, can also be used to find words in query.
         *
index 693fec1..c62e147 100755 (executable)
@@ -298,6 +298,19 @@ class tx_install extends t3lib_install {
        }
 
        /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function tx_install() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               tx_install::__construct();
+       }
+
+       /**
         * Returns TRUE if submitted password is ok.
         *
         * If password is ok, set session as "authorized".
index 22173bd..3ca594b 100644 (file)
@@ -65,6 +65,18 @@ class tx_lowlevel_admin_core extends t3lib_cli {
                $this->cli_help['author'] = "Kasper Skaarhoej, (c) 2009";
        }
 
+       /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function tx_lowlevel_admin_core() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               tx_lowlevel_admin_core::__construct();
+       }
 
 
 
index c86ba85..6c30f00 100644 (file)
@@ -85,6 +85,18 @@ class tx_lowlevel_cleaner_core extends t3lib_cli {
                $this->cli_help['author'] = "Kasper Skaarhoej, (c) 2006";
        }
 
+       /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function tx_lowlevel_cleaner_core() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               tx_lowlevel_cleaner_core::__construct();
+       }
 
 
 
index 40d96c0..e8f1e1c 100644 (file)
@@ -66,6 +66,19 @@ Cleaning XML for FlexForm fields.
        }
 
        /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function tx_lowlevel_cleanflexform() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               tx_lowlevel_cleanflexform::__construct();
+       }
+
+       /**
         * Find orphan records
         * VERY CPU and memory intensive since it will look up the whole page tree!
         *
index 9793a04..451c02b 100644 (file)
@@ -66,6 +66,19 @@ Although deleted records are not errors to be repaired, this tool allows you to
        }
 
        /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function tx_lowlevel_deleted() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               tx_lowlevel_deleted::__construct();
+       }
+
+       /**
         * Find orphan records
         * VERY CPU and memory intensive since it will look up the whole page tree!
         *
index 6674624..dd0b5d4 100644 (file)
@@ -73,6 +73,19 @@ This will check the system for double files relations.';
        }
 
        /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function tx_lowlevel_double_files() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               tx_lowlevel_double_files::__construct();
+       }
+
+       /**
         * Find managed files which are referred to more than one time
         * Fix methods: API in t3lib_refindex that allows to change the value of a reference (we could copy the file) or remove reference
         *
index 857b63b..d0a044c 100644 (file)
@@ -77,6 +77,18 @@ Automatic Repair of Errors:
 Will report lost files.';
        }
 
+       /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function tx_lowlevel_lost_files() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               tx_lowlevel_lost_files::__construct();
+       }
 
        /**
         * Find lost files in uploads/ folder
index c95b77d..8f8954e 100644 (file)
@@ -76,6 +76,19 @@ This will show you missing files in the TYPO3 system and only report back if err
        }
 
        /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function tx_lowlevel_missing_files() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               tx_lowlevel_missing_files::__construct();
+       }
+
+       /**
         * Find file references that points to non-existing files in system
         * Fix methods: API in t3lib_refindex that allows to change the value of a reference (or remove it)
         *
index 796b9c4..dffa221 100644 (file)
@@ -77,6 +77,18 @@ NOTICE: Uses the Reference Index Table (sys_refindex) for analysis. Update it be
 Reports missing relations';
        }
 
+       /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function tx_lowlevel_missing_relations() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               tx_lowlevel_missing_relations::__construct();
+       }
 
        /**
         * Find relations pointing to non-existing records
index f87ab46..19b57ee 100644 (file)
@@ -74,6 +74,19 @@ Will report orphan uids from TCA tables.';
        }
 
        /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function tx_lowlevel_orphan_records() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               tx_lowlevel_orphan_records::__construct();
+       }
+
+       /**
         * Find orphan records
         * VERY CPU and memory intensive since it will look up the whole page tree!
         *
index af3a052..4a5eb76 100644 (file)
@@ -74,6 +74,19 @@ Reports problems with RTE images';
        }
 
        /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function tx_lowlevel_rte_images() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               tx_lowlevel_rte_images::__construct();
+       }
+
+       /**
         * Analyse situation with RTE magic images. (still to define what the most useful output is).
         * Fix methods: API in t3lib_refindex that allows to change the value of a reference (we could copy the files) or remove reference
         *
index ffb1653..93a4e29 100644 (file)
@@ -58,6 +58,19 @@ Showing last 25 hour entries from the syslog. More features pending. This is the
        }
 
        /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function tx_lowlevel_syslog() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               tx_lowlevel_syslog::__construct();
+       }
+
+       /**
         * Find syslog
         *
         * @return      array
index fdc4980..5bf7373 100644 (file)
@@ -71,6 +71,19 @@ Automatic Repair:
        }
 
        /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function tx_lowlevel_versions() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               tx_lowlevel_versions::__construct();
+       }
+
+       /**
         * Find orphan records
         * VERY CPU and memory intensive since it will look up the whole page tree!
         *
index 7b51948..c3e0f25 100644 (file)
@@ -207,6 +207,18 @@ class template {
                if ($GLOBALS['TBE_STYLES']['background'])       $this->backGroundImage = $GLOBALS['TBE_STYLES']['background'];
        }
 
+       /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function template() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               template::__construct();
+       }
 
        /**
         * Gets instance of PageRenderer