2016-06-09 12:03:31 -04:00
|
|
|
<?php
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2018-03-10 13:40:19 -05:00
|
|
|
declare(strict_types=1);
|
2016-06-09 12:03:31 -04:00
|
|
|
/**
|
2024-05-24 13:43:47 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2016-06-09 12:03:31 -04:00
|
|
|
*/
|
2017-07-01 05:28:03 -04:00
|
|
|
namespace OCA\AdminAudit\Actions;
|
2016-06-09 12:03:31 -04:00
|
|
|
|
|
|
|
|
class Trashbin extends Action {
|
2021-03-05 09:02:35 -05:00
|
|
|
public function delete(array $params): void {
|
2016-06-20 05:21:27 -04:00
|
|
|
$this->log('File "%s" deleted from trash bin.',
|
|
|
|
|
['path' => $params['path']], ['path']
|
2016-06-09 12:03:31 -04:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-05 09:02:35 -05:00
|
|
|
public function restore(array $params): void {
|
2016-06-20 05:21:27 -04:00
|
|
|
$this->log('File "%s" restored from trash bin.',
|
|
|
|
|
['path' => $params['filePath']], ['path']
|
2016-06-09 12:03:31 -04:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|