[TASK] Streamline FAL pre-emit signals for createFile and setContent
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Resource / ResourceStorageInterface.php
1 <?php
2 namespace TYPO3\CMS\Core\Resource;
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
17 /**
18 * The interface for a resource storage containing all constants
19 */
20 interface ResourceStorageInterface
21 {
22 const SIGNAL_SanitizeFileName = 'sanitizeFileName';
23 const SIGNAL_PreFileAdd = 'preFileAdd';
24 const SIGNAL_PostFileAdd = 'postFileAdd';
25 const SIGNAL_PreFileCreate = 'preFileCreate';
26 const SIGNAL_PostFileCreate = 'postFileCreate';
27 const SIGNAL_PreFileCopy = 'preFileCopy';
28 const SIGNAL_PostFileCopy = 'postFileCopy';
29 const SIGNAL_PreFileMove = 'preFileMove';
30 const SIGNAL_PostFileMove = 'postFileMove';
31 const SIGNAL_PreFileDelete = 'preFileDelete';
32 const SIGNAL_PostFileDelete = 'postFileDelete';
33 const SIGNAL_PreFileRename = 'preFileRename';
34 const SIGNAL_PostFileRename = 'postFileRename';
35 const SIGNAL_PreFileReplace = 'preFileReplace';
36 const SIGNAL_PostFileReplace = 'postFileReplace';
37 const SIGNAL_PreFileSetContents = 'preFileSetContents';
38 const SIGNAL_PostFileSetContents = 'postFileSetContents';
39 const SIGNAL_PreFolderAdd = 'preFolderAdd';
40 const SIGNAL_PostFolderAdd = 'postFolderAdd';
41 const SIGNAL_PreFolderCopy = 'preFolderCopy';
42 const SIGNAL_PostFolderCopy = 'postFolderCopy';
43 const SIGNAL_PreFolderMove = 'preFolderMove';
44 const SIGNAL_PostFolderMove = 'postFolderMove';
45 const SIGNAL_PreFolderDelete = 'preFolderDelete';
46 const SIGNAL_PostFolderDelete = 'postFolderDelete';
47 const SIGNAL_PreFolderRename = 'preFolderRename';
48 const SIGNAL_PostFolderRename = 'postFolderRename';
49 const SIGNAL_PreGeneratePublicUrl = 'preGeneratePublicUrl';
50
51 /**
52 * Capability for being browsable by (backend) users
53 */
54 const CAPABILITY_BROWSABLE = 1;
55 /**
56 * Capability for publicly accessible storages (= accessible from the web)
57 */
58 const CAPABILITY_PUBLIC = 2;
59 /**
60 * Capability for writable storages. This only signifies writability in
61 * general - this might also be further limited by configuration.
62 */
63 const CAPABILITY_WRITABLE = 4;
64 /**
65 * Name of the default processing folder
66 */
67 const DEFAULT_ProcessingFolder = '_processed_';
68 }