2016-06-09 14:10:26 -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 14:10:26 -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 14:10:26 -04:00
|
|
|
*/
|
2017-07-01 05:28:03 -04:00
|
|
|
namespace OCA\AdminAudit\Actions;
|
2016-06-09 14:10:26 -04:00
|
|
|
|
|
|
|
|
class Versions extends Action {
|
2021-03-05 09:02:35 -05:00
|
|
|
public function rollback(array $params): void {
|
2016-06-09 14:10:26 -04:00
|
|
|
$this->log('Version "%s" of "%s" was restored.',
|
|
|
|
|
[
|
|
|
|
|
'version' => $params['revision'],
|
|
|
|
|
'path' => $params['path']
|
|
|
|
|
],
|
|
|
|
|
['version', 'path']
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-05 09:02:35 -05:00
|
|
|
public function delete(array $params): void {
|
2016-06-09 14:10:26 -04:00
|
|
|
$this->log('Version "%s" was deleted.',
|
|
|
|
|
['path' => $params['path']],
|
|
|
|
|
['path']
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|