예제 #1
0
 /**
  * @param Tx_Yag_Domain_Model_Album $album
  */
 public function removeAlbumDirectory(Tx_Yag_Domain_Model_Album $album)
 {
     $albumPath = $this->getOrigFileDirectoryPathForAlbum($album);
     Tx_Yag_Domain_FileSystem_Div::rRMDir($albumPath);
 }
예제 #2
0
 /** 
  * Clear the whole resolutionFileCache
  * - Truncate the cache table
  * - Remove alle files from the cache directory
  */
 public function clear()
 {
     $GLOBALS['TYPO3_DB']->sql_query('TRUNCATE tx_yag_domain_model_resolutionfilecache');
     $cacheDirectoryRoot = $this->configurationBuilder->buildExtensionConfiguration()->getHashFilesystemRootAbsolute();
     Tx_Yag_Domain_FileSystem_Div::rRMDir($cacheDirectoryRoot);
 }