123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?php
- namespace OCA\Files_Trashbin\Events;
- use OCP\EventDispatcher\Event;
- use OCP\Files\Node;
- class MoveToTrashEvent extends Event {
-
- private $moveToTrashBin;
- public function __construct(
- private Node $node,
- ) {
- $this->moveToTrashBin = true;
- }
-
- public function getNode() {
- return $this->node;
- }
-
- public function disableTrashBin() {
- $this->moveToTrashBin = false;
- }
-
- public function shouldMoveToTrashBin() {
- return $this->moveToTrashBin;
- }
- }
|