1 | <?php |
||
21 | class Lock extends AbstractHook |
||
22 | { |
||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | public function preCreateCollection(Collection $parent, string &$name, array &$attributes, bool $clone): void |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | public function preCreateFile(Collection $parent, string &$name, array &$attributes, bool $clone): void |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | public function preDeleteCollection(Collection $node, bool $force, ?string $recursion, bool $recursion_first): void |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public function preRestoreFile(File $node, int $version): void |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function prePutFile(File $node, ObjectId $session): void |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | public function preDeleteFile(File $node, bool $force, ?string $recursion, bool $recursion_first): void |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | public function preSaveNodeAttributes( |
||
82 | |||
83 | /** |
||
84 | * Validate request. |
||
85 | */ |
||
86 | protected function validateRequest(NodeInterface $node): bool |
||
103 | } |
||
104 |