[!!!][FEATURE] Add count methods and sort functionality to FAL drivers 60/28560/8
authorChristian Weiske <christian.weiske@netresearch.de>
Thu, 20 Mar 2014 12:02:00 +0000 (13:02 +0100)
committerFrans Saris <franssaris@gmail.com>
Wed, 8 Apr 2015 08:37:01 +0000 (10:37 +0200)
commitd32e20d192bcc04b945f778cfa8b66f9aaf85f42
treede2d3583f7ef4cfcccbff5efb363915d4c79d3a3
parent4e92ec5785f76fc857c245211d8ced2492c16bfe
[!!!][FEATURE] Add count methods and sort functionality to FAL drivers

Instead of fetching all files and folders to count them,
two new FAL driver methods are introduced:
getFoldersInFolderCount() and getFilesInFolderCount()

Filelist makes use of the new counting methods, reducing the
processing time folders which contain a large number of files.

Sorting files is also moved into the driver.

Change-Id: I79c18fb697c976649adb40637f22df5341396d1e
Resolves: #56746
Releases: master
Reviewed-on: http://review.typo3.org/28560
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
typo3/sysext/core/Classes/Resource/Driver/DriverInterface.php
typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php
typo3/sysext/core/Classes/Resource/Folder.php
typo3/sysext/core/Classes/Resource/ResourceStorage.php
typo3/sysext/core/Documentation/Changelog/master/Breaking-56746-AddCountMethodsAndSortFunctionalityToFalDrivers.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Resource/Driver/LocalDriverTest.php
typo3/sysext/filelist/Classes/FileList.php