Project

General

Profile

Feature #45725 ยป typo3_src-6.2.4.diff

Stephan Bauer, 2014-07-16 19:17

View differences:

typo3_src-6.2.4/typo3/sysext/core/Classes/Resource/Collection/FolderBasedFileCollection.php 2014-07-16 19:07:15.000000000 +0200
*/
public function loadContents() {
if ($this->folder instanceof \TYPO3\CMS\Core\Resource\Folder) {
$entries = $this->folder->getFiles();
$recursive = FALSE;
if ($this->recursive) {
$recursive = TRUE;
}
$entries = $this->folder->getFiles(0,0,FILTER_MODE_NO_FILTERS,$recursive);
foreach ($entries as $entry) {
$this->add($entry);
}
......
public function fromArray(array $array) {
$this->uid = $array['uid'];
$this->title = $array['title'];
$this->recursive = $array['recursive'];
$this->description = $array['description'];
if (!empty($array['folder']) && !empty($array['storage'])) {
/** @var $storageRepository \TYPO3\CMS\Core\Resource\StorageRepository */
typo3_src-6.2.4/typo3/sysext/core/Configuration/TCA/sys_file_collection.php 2014-07-16 19:09:09.000000000 +0200
'itemsProcFunc' => 'typo3/sysext/core/Classes/Resource/Service/UserFileMountService.php:TYPO3\CMS\Core\Resource\Service\UserFileMountService->renderTceformsSelectDropdown',
)
),
'recursive' => array(
'exclude' => 0,
'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.recursive',
'config' => array(
'type' => 'check',
'default' => 0
)
),
'category' => array(
'exclude' => 0,
'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.category',
......
'types' => array(
'0' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, title;;1, type, files'),
'static' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, title;;1, type, files'),
'folder' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, title;;1, type, storage, folder'),
'folder' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, title;;1, type, storage, folder, recursive'),
'category' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, title;;1, type, category')
),
'palettes' => array(
typo3_src-6.2.4/typo3/sysext/lang/locallang_tca.xlf 2014-07-16 19:05:21.000000000 +0200
<trans-unit id="sys_file_collection.folder" xml:space="preserve">
<source>Folder</source>
</trans-unit>
<trans-unit id="sys_file_collection.recursive" xml:space="preserve">
<source>Recursive</source>
</trans-unit>
<trans-unit id="sys_file_collection.category" xml:space="preserve">
<source>Category</source>
</trans-unit>
    (1-1/1)