Fixed bug #12394: Log deprecated method call in t3lib_tceforms_inline and remove...
authorSteffen Kamper <info@sk-typo3.de>
Sat, 31 Oct 2009 14:59:12 +0000 (14:59 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Sat, 31 Oct 2009 14:59:12 +0000 (14:59 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6305 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tceforms_inline.php

index 2c440f1..83c3e1f 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-10-31  Steffen Kamper  <info@sk-typo3.de>
+
+       * Fixed bug #12394: Log deprecated method call in t3lib_tceforms_inline and remove the methods in 4.4 (thanks to Xavier Perseguers)
+
 2009-10-30  Francois Suter  <francois@typo3.org>
 
        * Fixed bug #12406: Scheduler: Performed some minor cleanups in the BE module
 2009-10-30  Francois Suter  <francois@typo3.org>
 
        * Fixed bug #12406: Scheduler: Performed some minor cleanups in the BE module
index ce9eeb4..0867a13 100644 (file)
@@ -922,9 +922,11 @@ class t3lib_TCEforms_inline {
         * @param       string          $objectPrefix: The "path" to the child record to create (e.g. 'data-parentPageId-partenTable-parentUid-parentField-childTable')
         * @param       array           $conf: TCA configuration of the parent(!) field
         * @return      string          The HTML code for the new record link
         * @param       string          $objectPrefix: The "path" to the child record to create (e.g. 'data-parentPageId-partenTable-parentUid-parentField-childTable')
         * @param       array           $conf: TCA configuration of the parent(!) field
         * @return      string          The HTML code for the new record link
-        * @deprecated  since TYPO3 4.2.0-beta1
+        * @deprecated  since TYPO3 4.2.0-beta1, this function will be removed in TYPO3 4.5.
         */
        function getNewRecordLink($objectPrefix, $conf = array()) {
         */
        function getNewRecordLink($objectPrefix, $conf = array()) {
+               t3lib_div::logDeprecatedFunction();
+
                return $this->getLevelInteractionLink('newRecord', $objectPrefix, $conf);
        }
 
                return $this->getLevelInteractionLink('newRecord', $objectPrefix, $conf);
        }
 
@@ -1071,9 +1073,11 @@ class t3lib_TCEforms_inline {
         * @param       string          $method: Name of the method to be called
         * @param       array           $arguments: Arguments to be delivered to the method
         * @return      void
         * @param       string          $method: Name of the method to be called
         * @param       array           $arguments: Arguments to be delivered to the method
         * @return      void
-        * @deprecated  since TYPO3 4.2.0-alpha3
+        * @deprecated  since TYPO3 4.2.0-alpha3, this function will be removed in TYPO3 4.5.
         */
        function initForAJAX($method, &$arguments) {
         */
        function initForAJAX($method, &$arguments) {
+               t3lib_div::logDeprecatedFunction();
+
                        // Set t3lib_TCEforms::$RTEcounter to the given value:
                if ($method == 'createNewRecord') {
                        $this->fObj->RTEcounter = intval(array_shift($arguments));
                        // Set t3lib_TCEforms::$RTEcounter to the given value:
                if ($method == 'createNewRecord') {
                        $this->fObj->RTEcounter = intval(array_shift($arguments));
@@ -1840,6 +1844,7 @@ class t3lib_TCEforms_inline {
                }
                        // 'newRecordLinkPosition' is deprecated since TYPO3 4.2.0-beta1, this is for backward compatibility:
                if (!isset($config['appearance']['levelLinksPosition']) && isset($config['appearance']['newRecordLinkPosition']) && $config['appearance']['newRecordLinkPosition']) {
                }
                        // 'newRecordLinkPosition' is deprecated since TYPO3 4.2.0-beta1, this is for backward compatibility:
                if (!isset($config['appearance']['levelLinksPosition']) && isset($config['appearance']['newRecordLinkPosition']) && $config['appearance']['newRecordLinkPosition']) {
+                       t3lib_div::deprecationLog('TCA contains a deprecated definition using "newRecordLinkPosition"');
                        $config['appearance']['levelLinksPosition'] = $config['appearance']['newRecordLinkPosition'];
                }
                        // Set the position/appearance of the "Create new record" link:
                        $config['appearance']['levelLinksPosition'] = $config['appearance']['newRecordLinkPosition'];
                }
                        // Set the position/appearance of the "Create new record" link:
@@ -2288,6 +2293,8 @@ class t3lib_TCEforms_inline {
         * @deprecated                  Since TYPO3 4.2: Moved to t3lib_div::array2json, will be removed in TYPO3 4.4
         */
        function getJSON($jsonArray) {
         * @deprecated                  Since TYPO3 4.2: Moved to t3lib_div::array2json, will be removed in TYPO3 4.4
         */
        function getJSON($jsonArray) {
+               t3lib_div::logDeprecatedFunction();
+
                return json_encode($jsonArray);
        }
 
                return json_encode($jsonArray);
        }