Esempio n. 1
0
 /**
  * action initialize
  *
  * @return void
  */
 protected function initializeAction()
 {
     //print_r($this->settings);
     $this->folderPath = str_replace('1:', '', $this->settings['flex_startingpoint']);
     $this->folderCombinedId = $this->settings['flex_startingpoint'];
     //$fac = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\ResourceFactory'); // create instance to storage repository
     $this->storageObj = $this->resourceFactory->getStorageObjectFromCombinedIdentifier($this->folderCombinedId);
     $this->folderObj = $this->storageObj->getFolder($this->folderPath);
     $files = $this->folderObj->getFiles();
     foreach ($files as $file) {
         $this->filesList[$file->getUid()]['name'] = $file->getName();
         $this->filesList[$file->getUid()]['identifier'] = $file->getIdentifier();
     }
 }