[TASK] Deprecate unused methods in ElementBrowser 47/27847/4
authorTymoteusz Motylewski <t.motylewski@gmail.com>
Tue, 25 Feb 2014 16:23:15 +0000 (17:23 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 25 Feb 2014 18:49:22 +0000 (19:49 +0100)
There are 3 methods in ElementBrowser which are never used in the core.
We deprecate them, so they can be removed two versions later.

The methods are:
 * checkFolder
 * isWebFolder
 * setRecordList

Releases: 6.2
Resolves: #55985
Change-Id: I3e4f34e7ebaba9e8eeb0332e9f43c0e4acd2e706
Reviewed-on: https://review.typo3.org/27847
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Oliver Klee
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/recordlist/Classes/Browser/ElementBrowser.php

index 5edefb6..ad3e9c0 100644 (file)
@@ -2111,9 +2111,10 @@ class ElementBrowser {
         *
         * @param string $folder Absolute filepath
         * @return boolean If the input path is found in PATH_site then it returns TRUE.
-        * @todo Define visibility
+        * @deprecated since 6.2 - will be removed two versions later without replacement
         */
        public function isWebFolder($folder) {
+               GeneralUtility::logDeprecatedFunction();
                $folder = rtrim($folder, '/') . '/';
                return GeneralUtility::isFirstPartOfStr($folder, PATH_site) ? TRUE : FALSE;
        }
@@ -2123,9 +2124,10 @@ class ElementBrowser {
         *
         * @param string $folder Absolute filepath
         * @return boolean If the input path is found in the backend users filemounts, then return TRUE.
-        * @todo Define visibility
+        * @deprecated since 6.2 - will be removed two versions later without replacement
         */
        public function checkFolder($folder) {
+               GeneralUtility::logDeprecatedFunction();
                return $this->fileProcessor->checkPathAgainstMounts(rtrim($folder, '/') . '/') ? TRUE : FALSE;
        }
 
@@ -2299,8 +2301,10 @@ class ElementBrowser {
         * @param \TYPO3\CMS\Backend\RecordList\ElementBrowserRecordList $recordList
         * @throws \InvalidArgumentException
         * @return void
+        * @deprecated since 6.2 - will be removed two versions later without replacement
         */
        public function setRecordList($recordList) {
+               GeneralUtility::logDeprecatedFunction();
                if (!$recordList instanceof \TYPO3\CMS\Backend\RecordList\ElementBrowserRecordList) {
                        throw new \InvalidArgumentException('$recordList needs to be an instance of \\TYPO3\\CMS\\Backend\\RecordList\\ElementBrowserRecordList', 1370878522);
                }