[FEATURE] Integrate basic file abstraction layer models
authorOliver Hader <oliver@typo3.org>
Sat, 18 Aug 2012 12:51:18 +0000 (14:51 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 19 Aug 2012 11:12:16 +0000 (13:12 +0200)
[FEATURE] Integrate basic file abstraction layer models

Warning: This feature is marked as experimental! It is a quick shot to
get a basic connection between extbase and FAL. We added the code to
see if it works out, but it is also possible that we decide to throw it
away completly and substitute it with something different later on. Be
aware of this if you use the models and type converters in your code!

Since the file abstraction layer (FAL) has been introduced during the
development of TYPO3 6.0, it is also required to have an automized and
fluent way to access those abstract files via Extbase. Since the FAL
models cannot completely and directly be used as Extbase Domain object,
simple wrapping objects are defined to access the concrete objects.

The patch adds the basic models for this. Furthermore additional type
converter classes are added for those models.

The patch contains an additional base test case that is able to create
a test database and feed it with fixture data, it is also marked as

Change-Id: I537d32377ddd891627af2c163af252c48554d003
Resolves: #39926
Releases: 6.0
Reviewed-on: http://review.typo3.org/13885
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
24 files changed:
typo3/sysext/extbase/Classes/Domain/Model/AbstractFileCollection.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/Domain/Model/AbstractFileFolder.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/Domain/Model/File.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/Domain/Model/FileReference.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/Domain/Model/Folder.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/Domain/Model/FolderBasedFileCollection.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/Domain/Model/StaticFileCollection.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/Property/TypeConverter/AbstractFileCollectionConverter.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/Property/TypeConverter/AbstractFileFolderConverter.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/Property/TypeConverter/FileConverter.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/Property/TypeConverter/FileReferenceConverter.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/Property/TypeConverter/FolderBasedFileCollectionConverter.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/Property/TypeConverter/FolderConverter.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/Property/TypeConverter/StaticFileCollectionConverter.php [new file with mode: 0644]
typo3/sysext/extbase/Tests/Functional/BaseTestCase.php [new file with mode: 0644]
typo3/sysext/extbase/Tests/Functional/Domain/Model/FileContextTest.php [new file with mode: 0644]
typo3/sysext/extbase/Tests/Functional/Domain/Model/Fixture/FileContext.php [new file with mode: 0644]
typo3/sysext/extbase/Tests/Functional/Domain/Model/Fixture/data_sys_file.xml [new file with mode: 0644]
typo3/sysext/extbase/Tests/Functional/Domain/Model/Fixture/data_sys_file_collection.xml [new file with mode: 0644]
typo3/sysext/extbase/Tests/Functional/Domain/Model/Fixture/data_sys_file_reference.xml [new file with mode: 0644]
typo3/sysext/extbase/Tests/Functional/Domain/Model/Fixture/data_sys_file_storage.xml [new file with mode: 0644]