Project

General

Profile

Actions

Task #53688

closed

Epic #55070: Workpackages

Epic #54260: WP: FAL Missing Issues / Features / API

Story #54263: As an Integrator I want to have my metadata present at places when using files

Task #52778: No metadata shown for Folder and Category bases collections

ResourceFactory::createFileObject is called from Folder::getFiles directly

Added by Steffen Ritter over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2014-01-01
Due date:
2014-02-15
% Done:

100%

Estimated time:
3.00 h
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
medium
Sprint Focus:

Description

sysext/core/Resource/Folder::getFiles directly collects the files from the driver (very expensive!) and creates FileObjects directly.
These FileObjects do not know of their index record!

The method has to be restructered. With method FileIndexRepository::findByFolder (introduced with #53687) the folder's index records can be retrieved.
  • The driver already provides a method that only returns the existing identifiers instead of extracting the file's data.
  • In case the IndexRecord is already present, the method calls ResourceFactory::getFile($uid, $indexRecord) otherwise ResourceFactory::getFileObjectByStorageAndIdentifier() is used.

Related issues 1 (0 open1 closed)

Follows TYPO3 Core - Task #53687: FileRepository:getFileIndexRecordsForFolder only works for hierarchical pathClosedSteffen Ritter2013-11-162013-12-31

Actions
Actions

Also available in: Atom PDF