‪TYPO3CMS  10.4
DriverInterface.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
23 {
27  public function ‪processConfiguration();
28 
34  public function ‪setStorageUid($storageUid);
35 
40  public function ‪initialize();
41 
48  public function ‪getCapabilities();
49 
58  public function ‪mergeConfigurationCapabilities($capabilities);
59 
66  public function ‪hasCapability($capability);
67 
77  public function ‪isCaseSensitiveFileSystem();
78 
87  public function ‪sanitizeFileName($fileName, $charset = '');
88 
97  public function ‪hashIdentifier($identifier);
98 
104  public function ‪getRootLevelFolder();
105 
111  public function ‪getDefaultFolder();
112 
119  public function ‪getParentFolderIdentifierOfIdentifier($fileIdentifier);
120 
128  public function ‪getPublicUrl($identifier);
129 
139  public function ‪createFolder($newFolderName, $parentFolderIdentifier = '', $recursive = false);
140 
148  public function ‪renameFolder($folderIdentifier, $newName);
149 
157  public function ‪deleteFolder($folderIdentifier, $deleteRecursively = false);
158 
165  public function ‪fileExists($fileIdentifier);
166 
173  public function ‪folderExists($folderIdentifier);
174 
181  public function ‪isFolderEmpty($folderIdentifier);
182 
196  public function ‪addFile($localFilePath, $targetFolderIdentifier, $newFileName = '', $removeOriginal = true);
197 
205  public function ‪createFile($fileName, $parentFolderIdentifier);
206 
217  public function ‪copyFileWithinStorage($fileIdentifier, $targetFolderIdentifier, $fileName);
218 
226  public function ‪renameFile($fileIdentifier, $newName);
227 
235  public function ‪replaceFile($fileIdentifier, $localFilePath);
236 
245  public function ‪deleteFile($fileIdentifier);
246 
254  public function ‪hash($fileIdentifier, $hashAlgorithm);
255 
266  public function ‪moveFileWithinStorage($fileIdentifier, $targetFolderIdentifier, $newFileName);
267 
276  public function ‪moveFolderWithinStorage($sourceFolderIdentifier, $targetFolderIdentifier, $newFolderName);
277 
286  public function ‪copyFolderWithinStorage($sourceFolderIdentifier, $targetFolderIdentifier, $newFolderName);
287 
297  public function ‪getFileContents($fileIdentifier);
298 
306  public function ‪setFileContents($fileIdentifier, $contents);
307 
315  public function ‪fileExistsInFolder($fileName, $folderIdentifier);
316 
324  public function ‪folderExistsInFolder($folderName, $folderIdentifier);
325 
337  public function ‪getFileForLocalProcessing($fileIdentifier, $writable = true);
338 
346  public function ‪getPermissions($identifier);
347 
355  public function ‪dumpFileContents($identifier);
356 
370  public function ‪isWithin($folderIdentifier, $identifier);
371 
380  public function ‪getFileInfoByIdentifier($fileIdentifier, array $propertiesToExtract = []);
381 
388  public function ‪getFolderInfoByIdentifier($folderIdentifier);
389 
397  public function ‪getFileInFolder($fileName, $folderIdentifier);
398 
415  public function ‪getFilesInFolder($folderIdentifier, $start = 0, $numberOfItems = 0, $recursive = false, array $filenameFilterCallbacks = [], $sort = '', $sortRev = false);
416 
424  public function ‪getFolderInFolder($folderName, $folderIdentifier);
425 
442  public function ‪getFoldersInFolder($folderIdentifier, $start = 0, $numberOfItems = 0, $recursive = false, array $folderNameFilterCallbacks = [], $sort = '', $sortRev = false);
443 
452  public function ‪countFilesInFolder($folderIdentifier, $recursive = false, array $filenameFilterCallbacks = []);
453 
462  public function ‪countFoldersInFolder($folderIdentifier, $recursive = false, array $folderNameFilterCallbacks = []);
463 }
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\getFolderInfoByIdentifier
‪array getFolderInfoByIdentifier($folderIdentifier)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\getFileContents
‪string getFileContents($fileIdentifier)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\hash
‪string hash($fileIdentifier, $hashAlgorithm)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\createFolder
‪string createFolder($newFolderName, $parentFolderIdentifier='', $recursive=false)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\replaceFile
‪bool replaceFile($fileIdentifier, $localFilePath)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\isCaseSensitiveFileSystem
‪bool isCaseSensitiveFileSystem()
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\getParentFolderIdentifierOfIdentifier
‪string getParentFolderIdentifierOfIdentifier($fileIdentifier)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface
Definition: DriverInterface.php:23
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\setFileContents
‪int setFileContents($fileIdentifier, $contents)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\getFolderInFolder
‪string getFolderInFolder($folderName, $folderIdentifier)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\deleteFolder
‪bool deleteFolder($folderIdentifier, $deleteRecursively=false)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\getPublicUrl
‪string null getPublicUrl($identifier)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\fileExistsInFolder
‪bool fileExistsInFolder($fileName, $folderIdentifier)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\copyFolderWithinStorage
‪bool copyFolderWithinStorage($sourceFolderIdentifier, $targetFolderIdentifier, $newFolderName)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\getFoldersInFolder
‪array getFoldersInFolder($folderIdentifier, $start=0, $numberOfItems=0, $recursive=false, array $folderNameFilterCallbacks=[], $sort='', $sortRev=false)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\getFileForLocalProcessing
‪string getFileForLocalProcessing($fileIdentifier, $writable=true)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\folderExists
‪bool folderExists($folderIdentifier)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\countFilesInFolder
‪int countFilesInFolder($folderIdentifier, $recursive=false, array $filenameFilterCallbacks=[])
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\isWithin
‪bool isWithin($folderIdentifier, $identifier)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\deleteFile
‪bool deleteFile($fileIdentifier)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\sanitizeFileName
‪string sanitizeFileName($fileName, $charset='')
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\hasCapability
‪bool hasCapability($capability)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\getFileInfoByIdentifier
‪array getFileInfoByIdentifier($fileIdentifier, array $propertiesToExtract=[])
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\getPermissions
‪array getPermissions($identifier)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\renameFile
‪string renameFile($fileIdentifier, $newName)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\getCapabilities
‪int getCapabilities()
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\getDefaultFolder
‪string getDefaultFolder()
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\getFilesInFolder
‪array getFilesInFolder($folderIdentifier, $start=0, $numberOfItems=0, $recursive=false, array $filenameFilterCallbacks=[], $sort='', $sortRev=false)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\moveFolderWithinStorage
‪array moveFolderWithinStorage($sourceFolderIdentifier, $targetFolderIdentifier, $newFolderName)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\getRootLevelFolder
‪string getRootLevelFolder()
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\getFileInFolder
‪string getFileInFolder($fileName, $folderIdentifier)
‪TYPO3\CMS\Core\Resource\Driver
Definition: AbstractDriver.php:16
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\createFile
‪string createFile($fileName, $parentFolderIdentifier)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\countFoldersInFolder
‪int countFoldersInFolder($folderIdentifier, $recursive=false, array $folderNameFilterCallbacks=[])
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\moveFileWithinStorage
‪string moveFileWithinStorage($fileIdentifier, $targetFolderIdentifier, $newFileName)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\processConfiguration
‪processConfiguration()
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\setStorageUid
‪setStorageUid($storageUid)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\folderExistsInFolder
‪bool folderExistsInFolder($folderName, $folderIdentifier)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\fileExists
‪bool fileExists($fileIdentifier)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\addFile
‪string addFile($localFilePath, $targetFolderIdentifier, $newFileName='', $removeOriginal=true)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\dumpFileContents
‪dumpFileContents($identifier)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\hashIdentifier
‪string hashIdentifier($identifier)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\renameFolder
‪array renameFolder($folderIdentifier, $newName)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\isFolderEmpty
‪bool isFolderEmpty($folderIdentifier)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\copyFileWithinStorage
‪string copyFileWithinStorage($fileIdentifier, $targetFolderIdentifier, $fileName)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\mergeConfigurationCapabilities
‪int mergeConfigurationCapabilities($capabilities)
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface\initialize
‪initialize()