TYPO3 CMS  TYPO3_8-7
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 
21 interface DriverInterface
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 }
getFoldersInFolder($folderIdentifier, $start=0, $numberOfItems=0, $recursive=false, array $folderNameFilterCallbacks=[], $sort='', $sortRev=false)
createFile($fileName, $parentFolderIdentifier)
folderExistsInFolder($folderName, $folderIdentifier)
getFileForLocalProcessing($fileIdentifier, $writable=true)
hash($fileIdentifier, $hashAlgorithm)
copyFolderWithinStorage($sourceFolderIdentifier, $targetFolderIdentifier, $newFolderName)
countFoldersInFolder($folderIdentifier, $recursive=false, array $folderNameFilterCallbacks=[])
moveFileWithinStorage($fileIdentifier, $targetFolderIdentifier, $newFileName)
deleteFolder($folderIdentifier, $deleteRecursively=false)
renameFolder($folderIdentifier, $newName)
getFileInfoByIdentifier($fileIdentifier, array $propertiesToExtract=[])
isWithin($folderIdentifier, $identifier)
getFilesInFolder($folderIdentifier, $start=0, $numberOfItems=0, $recursive=false, array $filenameFilterCallbacks=[], $sort='', $sortRev=false)
countFilesInFolder($folderIdentifier, $recursive=false, array $filenameFilterCallbacks=[])
copyFileWithinStorage($fileIdentifier, $targetFolderIdentifier, $fileName)
replaceFile($fileIdentifier, $localFilePath)
createFolder($newFolderName, $parentFolderIdentifier='', $recursive=false)
addFile($localFilePath, $targetFolderIdentifier, $newFileName='', $removeOriginal=true)
getFolderInFolder($folderName, $folderIdentifier)
fileExistsInFolder($fileName, $folderIdentifier)
getFileInFolder($fileName, $folderIdentifier)
moveFolderWithinStorage($sourceFolderIdentifier, $targetFolderIdentifier, $newFolderName)
setFileContents($fileIdentifier, $contents)