1 | <?php |
||
30 | class FilesHooksStatic { |
||
31 | /** |
||
32 | * Registers the filesystem hooks for basic filesystem operations. |
||
33 | * All other events has to be triggered by the apps. |
||
34 | */ |
||
35 | 1 | public static function register() { |
|
46 | |||
47 | /** |
||
48 | * @return FilesHooks |
||
49 | */ |
||
50 | static protected function getHooks() { |
||
54 | |||
55 | /** |
||
56 | * Store the create hook events |
||
57 | * @param array $params The hook params |
||
58 | */ |
||
59 | public static function fileCreate($params) { |
||
62 | |||
63 | /** |
||
64 | * Store the update hook events |
||
65 | * @param array $params The hook params |
||
66 | */ |
||
67 | public static function fileUpdate($params) { |
||
70 | |||
71 | /** |
||
72 | * Store the delete hook events |
||
73 | * @param array $params The hook params |
||
74 | */ |
||
75 | public static function fileDelete($params) { |
||
78 | |||
79 | /** |
||
80 | * Store the restore hook events |
||
81 | * @param array $params The hook params |
||
82 | */ |
||
83 | public static function fileRestore($params) { |
||
86 | |||
87 | /** |
||
88 | * Manage sharing events |
||
89 | * @param array $params The hook params |
||
90 | */ |
||
91 | public static function share($params) { |
||
94 | |||
95 | /** |
||
96 | * Manage sharing events |
||
97 | * @param array $params The hook params |
||
98 | */ |
||
99 | public static function unShare($params) { |
||
102 | |||
103 | /** |
||
104 | * Load additional scripts when the files app is visible |
||
105 | */ |
||
106 | public static function onLoadFilesAppScripts() { |
||
114 | } |
||
115 |