[BUGFIX] Folder: File list filtering does not work
authorAndreas Wolf <andreas.wolf@typo3.org>
Mon, 8 Oct 2012 14:36:27 +0000 (16:36 +0200)
committerSteffen Ritter <info@rs-websystems.de>
Thu, 1 Nov 2012 13:21:13 +0000 (14:21 +0100)
commitd4a90959fa37adf3b0180721d3bcfbd306105bfd
tree28c03c2812a83bc4f35a2c38780144e514b05fd1
parent3c95e7f33985bf71e71cdefd0ba4e0703a8923ec
[BUGFIX] Folder: File list filtering does not work

To filter a file list for certain file extensions, the
FileExtensionFilter class should be used. However, the element browser
currently tries to directly call getFiles() with a file extension list.

This commit adds filter handling methods to Folder and changes the EBs
behaviour to use them. The public interface of Folder::getFiles() and
Folder::getSubfolders() is extended, but in a backwards-compatible way,
so this is no breaking change.

Change-Id: Ib45d5f0a99c038841193ed568d7ebf8289f629d3
Resolves: #41725
Releases: 6.0
Reviewed-on: http://review.typo3.org/15405
Reviewed-by: Dominik Mathern
Tested-by: Dominik Mathern
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
typo3/sysext/core/Classes/Resource/Folder.php
typo3/sysext/core/Tests/Functional/Resource/BaseTestCase.php [new file with mode: 0644]
typo3/sysext/core/Tests/Functional/Resource/FolderTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Resource/FolderTest.php