[FEATURE][CONF][!!!] Deprecate PHP_SCRIPT* objects
authorFrancois Suter <francois@typo3.org>
Fri, 20 May 2011 12:10:38 +0000 (14:10 +0200)
committerFrancois Suter <francois@typo3.org>
Sun, 22 May 2011 12:11:25 +0000 (14:11 +0200)
PHP_SCRIPT, PHP_SCRIPT_INT and PHP_SCRIPT_EXT objects are old
TypoScript content objects which really shouldn't be used anymore.
Mark them as deprecated.

Change-Id: I6f17728e6202291ba5594fa9e1af8d05112acfe8
Resolves: #26936
Releases: 4.6
Reviewed-on: http://review.typo3.org/2269
Reviewed-by: Xavier Perseguers
Reviewed-by: Christopher
Tested-by: Christopher
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Francois Suter
Tested-by: Francois Suter
typo3/sysext/cms/tslib/content/class.tslib_content_phpscript.php
typo3/sysext/cms/tslib/content/class.tslib_content_phpscriptexternal.php
typo3/sysext/cms/tslib/content/class.tslib_content_phpscriptinternal.php

index 6b8d682..3678848 100644 (file)
@@ -39,8 +39,13 @@ class tslib_content_PhpScript extends tslib_content_Abstract {
         *
         * @param       array           Array of TypoScript properties
         * @return      string          Output
+        * @deprecated since TYPO3 4.6, will be removed in TYPO3 4.8
         */
        public function render($conf = array()) {
+               $GLOBALS['TSFE']->logDeprecatedTyposcript(
+                       'PHP_SCRIPT',
+                       'Usage of PHP_SCRIPT is deprecated since TYPO3 4.6. Use plugins instead.'
+               );
 
                $file = isset($conf['file.'])
                        ? $this->cObj->stdWrap($conf['file'], $conf['file.'])
index bbd58d6..a0bf8a5 100644 (file)
@@ -37,8 +37,13 @@ class tslib_content_PhpScriptExternal extends tslib_content_Abstract {
         *
         * @param       array           Array of TypoScript properties
         * @return      string          Output
+        * @deprecated since TYPO3 4.6, will be removed in TYPO3 4.8
         */
        public function render($conf = array()) {
+               $GLOBALS['TSFE']->logDeprecatedTyposcript(
+                       'PHP_SCRIPT__EXT',
+                       'Usage of PHP_SCRIPT__EXT is deprecated since TYPO3 4.6. Use plugins instead.'
+               );
                $file = isset($conf['file.'])
                        ? $this->cObj->stdWrap($conf['file'], $conf['file.'])
                        : $conf['file'];
index d275eff..928f8da 100644 (file)
@@ -39,8 +39,13 @@ class tslib_content_PhpScriptInternal extends tslib_content_Abstract {
         *
         * @param       array           Array of TypoScript properties
         * @return      string          Output
+        * @deprecated since TYPO3 4.6, will be removed in TYPO3 4.8
         */
        public function render($conf = array()) {
+               $GLOBALS['TSFE']->logDeprecatedTyposcript(
+                       'PHP_SCRIPT_INT',
+                       'Usage of PHP_SCRIPT_INT is deprecated since TYPO3 4.6. Use plugins instead.'
+               );
                $file = isset($conf['file.'])
                        ? $this->cObj->stdWrap($conf['file'], $conf['file.'])
                        : $conf['file'];