[BUGFIX] Add missing parameters to getFiles 91/47291/4
authorSusanne Moog <typo3@susannemoog.de>
Wed, 16 Mar 2016 14:07:50 +0000 (15:07 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Wed, 16 Mar 2016 18:54:38 +0000 (19:54 +0100)
InaccessibleFolder extends Folder and the definition of its methods
should therefor be compatible to each other.

Resolves: #73712
Releases: master, 7.6

Change-Id: I3798841a7349ac7b615238328c26d540cf938d34
Reviewed-on: https://review.typo3.org/47291
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/core/Classes/Resource/InaccessibleFolder.php

index 4f17ed4..4ad83db 100644 (file)
@@ -76,9 +76,11 @@ class InaccessibleFolder extends Folder
      * @param int $numberOfItems The number of items to return
      * @param int $filterMode The filter mode to use for the filelist.
      * @param bool $recursive
+     * @param string $sort
+     * @param bool $sortRev
      * @return File[]
      */
-    public function getFiles($start = 0, $numberOfItems = 0, $filterMode = self::FILTER_MODE_USE_OWN_AND_STORAGE_FILTERS, $recursive = false)
+    public function getFiles($start = 0, $numberOfItems = 0, $filterMode = self::FILTER_MODE_USE_OWN_AND_STORAGE_FILTERS, $recursive = false, $sort = '', $sortRev = false)
     {
         $this->throwInaccessibleException();
     }
@@ -116,9 +118,10 @@ class InaccessibleFolder extends Folder
      * @param int $start The item to start at
      * @param int $numberOfItems The number of items to return
      * @param int $filterMode The filter mode to use for the filelist.
+     * @param bool $recursive
      * @return Folder[]
      */
-    public function getSubfolders($start = 0, $numberOfItems = 0, $filterMode = self::FILTER_MODE_USE_OWN_AND_STORAGE_FILTERS)
+    public function getSubfolders($start = 0, $numberOfItems = 0, $filterMode = self::FILTER_MODE_USE_OWN_AND_STORAGE_FILTERS, $recursive = false)
     {
         $this->throwInaccessibleException();
     }