Trashbin.php 528 B

12345678910111213141516171819202122
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\AdminAudit\Actions;
  8. class Trashbin extends Action {
  9. public function delete(array $params): void {
  10. $this->log('File "%s" deleted from trash bin.',
  11. ['path' => $params['path']], ['path']
  12. );
  13. }
  14. public function restore(array $params): void {
  15. $this->log('File "%s" restored from trash bin.',
  16. ['path' => $params['filePath']], ['path']
  17. );
  18. }
  19. }