‪TYPO3CMS  9.5
DriverInterface.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
22 {
26  public function ‪processConfiguration();
27 
33  public function ‪setStorageUid($storageUid);
34 
39  public function ‪initialize();
40 
47  public function ‪getCapabilities();
48 
57  public function ‪mergeConfigurationCapabilities($capabilities);
58 
65  public function ‪hasCapability($capability);
66 
76  public function ‪isCaseSensitiveFileSystem();
77 
86  public function ‪sanitizeFileName($fileName, $charset = '');
87 
96  public function ‪hashIdentifier($identifier);
97 
103  public function ‪getRootLevelFolder();
104 
110  public function ‪getDefaultFolder();
111 
118  public function ‪getParentFolderIdentifierOfIdentifier($fileIdentifier);
119 
127  public function ‪getPublicUrl($identifier);
128 
138  public function ‪createFolder($newFolderName, $parentFolderIdentifier = '', $recursive = false);
139 
147  public function ‪renameFolder($folderIdentifier, $newName);
148 
156  public function ‪deleteFolder($folderIdentifier, $deleteRecursively = false);
157 
164  public function ‪fileExists($fileIdentifier);
165 
172  public function ‪folderExists($folderIdentifier);
173 
180  public function ‪isFolderEmpty($folderIdentifier);
181 
195  public function ‪addFile($localFilePath, $targetFolderIdentifier, $newFileName = '', $removeOriginal = true);
196 
204  public function ‪createFile($fileName, $parentFolderIdentifier);
205 
216  public function ‪copyFileWithinStorage($fileIdentifier, $targetFolderIdentifier, $fileName);
217 
225  public function ‪renameFile($fileIdentifier, $newName);
226 
234  public function ‪replaceFile($fileIdentifier, $localFilePath);
235 
244  public function ‪deleteFile($fileIdentifier);
245 
253  public function ‪hash($fileIdentifier, $hashAlgorithm);
254 
265  public function ‪moveFileWithinStorage($fileIdentifier, $targetFolderIdentifier, $newFileName);
266 
275  public function ‪moveFolderWithinStorage($sourceFolderIdentifier, $targetFolderIdentifier, $newFolderName);
276 
285  public function ‪copyFolderWithinStorage($sourceFolderIdentifier, $targetFolderIdentifier, $newFolderName);
286 
296  public function ‪getFileContents($fileIdentifier);
297 
305  public function ‪setFileContents($fileIdentifier, $contents);
306 
314  public function ‪fileExistsInFolder($fileName, $folderIdentifier);
315 
323  public function ‪folderExistsInFolder($folderName, $folderIdentifier);
324 
336  public function ‪getFileForLocalProcessing($fileIdentifier, $writable = true);
337 
345  public function ‪getPermissions($identifier);
346 
354  public function ‪dumpFileContents($identifier);
355 
369  public function ‪isWithin($folderIdentifier, $identifier);
370 
379  public function ‪getFileInfoByIdentifier($fileIdentifier, array $propertiesToExtract = []);
380 
387  public function ‪getFolderInfoByIdentifier($folderIdentifier);
388 
396  public function ‪getFileInFolder($fileName, $folderIdentifier);
397 
414  public function ‪getFilesInFolder($folderIdentifier, $start = 0, $numberOfItems = 0, $recursive = false, array $filenameFilterCallbacks = [], $sort = '', $sortRev = false);
415 
423  public function ‪getFolderInFolder($folderName, $folderIdentifier);
424 
441  public function ‪getFoldersInFolder($folderIdentifier, $start = 0, $numberOfItems = 0, $recursive = false, array $folderNameFilterCallbacks = [], $sort = '', $sortRev = false);
442 
451  public function ‪countFilesInFolder($folderIdentifier, $recursive = false, array $filenameFilterCallbacks = []);
452 
461  public function ‪countFoldersInFolder($folderIdentifier, $recursive = false, array $folderNameFilterCallbacks = []);
462 }
‪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:22
‪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:2
‪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()