nextcloud/apps/admin_audit/lib/Actions/Versions.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
581 B
PHP
Raw Normal View History

2016-06-09 14:10:26 -04:00
<?php
declare(strict_types=1);
2016-06-09 14:10:26 -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
*/
namespace OCA\AdminAudit\Actions;
2016-06-09 14:10:26 -04:00
class Versions extends Action {
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']
);
}
public function delete(array $params): void {
2016-06-09 14:10:26 -04:00
$this->log('Version "%s" was deleted.',
['path' => $params['path']],
['path']
);
}
}