implemented snapshot diff; started work on admin settings
This commit is contained in:
parent
4c67bf71c4
commit
8b22d56e32
7 changed files with 423 additions and 8 deletions
33
lib/Settings/SnapshotsAdmin.php
Normal file
33
lib/Settings/SnapshotsAdmin.php
Normal file
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
namespace OCA\GroupfolderFilesystemSnapshots\Settings;
|
||||
|
||||
use OCP\AppFramework\Http\TemplateResponse;
|
||||
use OCP\IConfig;
|
||||
use OCP\Settings\ISettings;
|
||||
|
||||
class SnapshotsAdmin implements ISettings {
|
||||
private IConfig $config;
|
||||
|
||||
public function __construct(IConfig $config) {
|
||||
$this->config = $config;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TemplateResponse
|
||||
*/
|
||||
public function getForm() {
|
||||
$parameters = [
|
||||
'Filesystem Snapshots Path' => $this->config->getSystemValue('snapshots_path', true),
|
||||
];
|
||||
|
||||
return new TemplateResponse('settings', 'settings/admin', $parameters, '');
|
||||
}
|
||||
|
||||
public function getSection() {
|
||||
return 'groupfolder_filesystem_snapshots';
|
||||
}
|
||||
|
||||
public function getPriority() {
|
||||
return 10;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue