2 namespace TYPO3\CMS\Core\Resource\Collection;
33 protected static $type =
'folder';
66 if ($this->folder instanceof
Folder) {
68 foreach ($entries as $entry) {
81 return $this->folder->getCombinedIdentifier();
94 'type' => self::$type,
96 'folder' => $this->folder->getIdentifier(),
97 'storage' => $this->folder->getStorage()->getUid()
110 $this->uid = $array[
'uid'];
111 $this->title = $array[
'title'];
112 $this->description = $array[
'description'];
113 $this->recursive = (bool)$array[
'recursive'];
114 if (!empty($array[
'folder']) && !empty($array[
'storage'])) {
116 $storageRepository = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Resource\StorageRepository::class);
118 $storage = $storageRepository->findByUid($array[
'storage']);
120 $this->folder =
$storage->getFolder($array[
'folder']);