[BUGFIX] Folder: getSubfolders() has no range parameters
authorAndreas Wolf <andreas.wolf@typo3.org>
Fri, 12 Oct 2012 20:31:35 +0000 (22:31 +0200)
committerAndreas Wolf <andreas.wolf@ikt-werk.de>
Sun, 21 Oct 2012 15:08:57 +0000 (17:08 +0200)
Resolves: #41940
Releases: 6.0
Change-Id: Ie45de7e048950cae42672439f72639813ce423ff
Reviewed-on: http://review.typo3.org/15857
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
typo3/sysext/core/Classes/Resource/Folder.php

index 1a87e84..d887468 100644 (file)
@@ -204,11 +204,13 @@ class Folder implements \TYPO3\CMS\Core\Resource\FolderInterface {
        /**
         * Returns a list of all subfolders
         *
+        * @param integer $start The item to start at
+        * @param integer $numberOfItems The number of items to return
         * @return \TYPO3\CMS\Core\Resource\Folder[]
         */
-       public function getSubfolders() {
+       public function getSubfolders($start = 0, $numberOfItems = 0) {
                $folderObjects = array();
-               $folderArray = $this->storage->getFolderList($this->identifier);
+               $folderArray = $this->storage->getFolderList($this->identifier, $start, $numberOfItems);
                if (count($folderArray) > 0) {
                        /** @var $factory \TYPO3\CMS\Core\Resource\ResourceFactory */
                        $factory = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\ResourceFactory');