TYPO3 CMS  TYPO3_7-6
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 {
27  public function processConfiguration();
28 
35  public function setStorageUid($storageUid);
36 
43  public function initialize();
44 
51  public function getCapabilities();
52 
61  public function mergeConfigurationCapabilities($capabilities);
62 
69  public function hasCapability($capability);
70 
80  public function isCaseSensitiveFileSystem();
81 
90  public function sanitizeFileName($fileName, $charset = '');
91 
100  public function hashIdentifier($identifier);
101 
107  public function getRootLevelFolder();
108 
114  public function getDefaultFolder();
115 
122  public function getParentFolderIdentifierOfIdentifier($fileIdentifier);
123 
131  public function getPublicUrl($identifier);
132 
142  public function createFolder($newFolderName, $parentFolderIdentifier = '', $recursive = false);
143 
151  public function renameFolder($folderIdentifier, $newName);
152 
160  public function deleteFolder($folderIdentifier, $deleteRecursively = false);
161 
168  public function fileExists($fileIdentifier);
169 
176  public function folderExists($folderIdentifier);
177 
184  public function isFolderEmpty($folderIdentifier);
185 
199  public function addFile($localFilePath, $targetFolderIdentifier, $newFileName = '', $removeOriginal = true);
200 
208  public function createFile($fileName, $parentFolderIdentifier);
209 
220  public function copyFileWithinStorage($fileIdentifier, $targetFolderIdentifier, $fileName);
221 
229  public function renameFile($fileIdentifier, $newName);
230 
238  public function replaceFile($fileIdentifier, $localFilePath);
239 
248  public function deleteFile($fileIdentifier);
249 
257  public function hash($fileIdentifier, $hashAlgorithm);
258 
269  public function moveFileWithinStorage($fileIdentifier, $targetFolderIdentifier, $newFileName);
270 
279  public function moveFolderWithinStorage($sourceFolderIdentifier, $targetFolderIdentifier, $newFolderName);
280 
289  public function copyFolderWithinStorage($sourceFolderIdentifier, $targetFolderIdentifier, $newFolderName);
290 
300  public function getFileContents($fileIdentifier);
301 
309  public function setFileContents($fileIdentifier, $contents);
310 
318  public function fileExistsInFolder($fileName, $folderIdentifier);
319 
327  public function folderExistsInFolder($folderName, $folderIdentifier);
328 
340  public function getFileForLocalProcessing($fileIdentifier, $writable = true);
341 
349  public function getPermissions($identifier);
350 
359  public function dumpFileContents($identifier);
360 
374  public function isWithin($folderIdentifier, $identifier);
375 
384  public function getFileInfoByIdentifier($fileIdentifier, array $propertiesToExtract = []);
385 
392  public function getFolderInfoByIdentifier($folderIdentifier);
393 
401  public function getFileInFolder($fileName, $folderIdentifier);
402 
419  public function getFilesInFolder($folderIdentifier, $start = 0, $numberOfItems = 0, $recursive = false, array $filenameFilterCallbacks = [], $sort = '', $sortRev = false);
420 
428  public function getFolderInFolder($folderName, $folderIdentifier);
429 
446  public function getFoldersInFolder($folderIdentifier, $start = 0, $numberOfItems = 0, $recursive = false, array $folderNameFilterCallbacks = [], $sort = '', $sortRev = false);
447 
456  public function countFilesInFolder($folderIdentifier, $recursive = false, array $filenameFilterCallbacks = []);
457 
466  public function countFoldersInFolder($folderIdentifier, $recursive = false, array $folderNameFilterCallbacks = []);
467 }
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)