[TASK] Deprecate not used arguments of RecyclerUtility::getRecordPath 82/49682/3
authorGeorg Ringer <georg.ringer@gmail.com>
Wed, 31 Aug 2016 14:00:02 +0000 (16:00 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 1 Sep 2016 14:09:35 +0000 (16:09 +0200)
The optional arguments of RecyclerUtility::getRecordPath are not used
anymore and are deprecated.

Resolevs: #75637
Releases: master
Change-Id: I30b3c3d05ebf9b4961060106b4a02d5c7a4a5089
Reviewed-on: https://review.typo3.org/49682
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Philipp Gampe <philipp.gampe@typo3.org>
Tested-by: Philipp Gampe <philipp.gampe@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Documentation/Changelog/master/Deprecation-75637-DeprecateOptionalParametersOfRecyclerUtilitygetRecordPath.rst [new file with mode: 0644]
typo3/sysext/recycler/Classes/Utility/RecyclerUtility.php

diff --git a/typo3/sysext/core/Documentation/Changelog/master/Deprecation-75637-DeprecateOptionalParametersOfRecyclerUtilitygetRecordPath.rst b/typo3/sysext/core/Documentation/Changelog/master/Deprecation-75637-DeprecateOptionalParametersOfRecyclerUtilitygetRecordPath.rst
new file mode 100644 (file)
index 0000000..33aa4df
--- /dev/null
@@ -0,0 +1,30 @@
+=======================================================================================
+Deprecation: #75637 - Deprecate optional parameters of RecyclerUtility::getRecordPath()
+=======================================================================================
+
+Description
+===========
+
+The following arguments of the method :php:``RecyclerUtility::getRecordPath`` have been deprecated:
+
+- :php:``$clause``
+- :php:``$titleLimit``
+- :php:``$fullTitleLimit``
+
+
+Impact
+======
+
+Using any of the arguments above will trigger a deprecation log entry.
+
+
+Affected Installations
+======================
+
+Any TYPO3 installation using custom calls to :php:``RecyclerUtility::getRecordPath`` using the mentioned arguments
+
+
+Migration
+=========
+
+No migration available.
\ No newline at end of file
index 3ccdc77..f2818d4 100644 (file)
@@ -79,6 +79,10 @@ class RecyclerUtility
      */
     public static function getRecordPath($uid, $clause = '', $titleLimit = 1000, $fullTitleLimit = 0)
     {
+        if ($clause !== '' || (int)$titleLimit !== 1000 || (int)$fullTitleLimit !== 0) {
+            GeneralUtility::deprecationLog('The arguments "clause", "tileLimit" and "fullTitleLimit" ' .
+                'have been deprecated since TYPO3 CMS 8 and will be removed in TYPO3 CMS 9');
+        }
         $uid = (int)$uid;
         $output = ($fullOutput = '/');
         if ($uid === 0) {