Versions.php 581 B

123456789101112131415161718192021222324252627
  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 Versions extends Action {
  9. public function rollback(array $params): void {
  10. $this->log('Version "%s" of "%s" was restored.',
  11. [
  12. 'version' => $params['revision'],
  13. 'path' => $params['path']
  14. ],
  15. ['version', 'path']
  16. );
  17. }
  18. public function delete(array $params): void {
  19. $this->log('Version "%s" was deleted.',
  20. ['path' => $params['path']],
  21. ['path']
  22. );
  23. }
  24. }