[TASK] FAL-Drivers: Make getFileInfo more versatile and performant 64/23464/8
authorSteffen Ritter <info@rs-websystems.de>
Thu, 29 Aug 2013 13:15:54 +0000 (15:15 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Fri, 11 Oct 2013 13:13:48 +0000 (15:13 +0200)
commite356a5902a02dda30852326324a13de8718cbf07
tree940e3e6d9c11c9557aab29b22850d0686cba7bb3
parentecbce5ac045896510c222cbc3a24f72bc673bed8
[TASK] FAL-Drivers: Make getFileInfo more versatile and performant

If a storage needs information about a file, it always has
to retrieve all information about the file from the driver.
This can be very expensive - especially if only the modification
timestamp would be relevant, but sha1 content hash as well
as creation time, access time, size, mimetype ... are detected.
This patch extends the interface with a possibility to only
retrieve a subset of these information. As drivers are only
accessible through an ResourceStorage and the new parameters
are optional this patch does not change behaviour or break
backwards compatiblity.

Releases: 6.2
Resolves: #51515
Change-Id: I45dec41e3f6cfa2d6c8902b795dc224c729296f8
Reviewed-on: https://review.typo3.org/23464
Tested-by: Oliver Hader
Reviewed-by: Oliver Hader
typo3/sysext/core/Classes/Resource/Driver/AbstractDriver.php
typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php
typo3/sysext/core/Tests/Unit/Resource/Driver/LocalDriverTest.php