diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-06-10 20:15:13 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-10-18 20:21:51 +0200 |
commit | f432dd2e2ea9fe4e7c19d5ea9d60481e662a0367 (patch) | |
tree | 69a867888c347607ba2e49c2040cb2594bc00491 /apps/dav/lib | |
parent | 643e85cfe81ac079bd2e5bcf1a344a20319f48db (diff) | |
download | nextcloud-server-f432dd2e2ea9fe4e7c19d5ea9d60481e662a0367.tar.gz nextcloud-server-f432dd2e2ea9fe4e7c19d5ea9d60481e662a0367.zip |
Add scheduling availability settings
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/dav/lib')
-rw-r--r-- | apps/dav/lib/Settings/AvailabilitySettings.php | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/apps/dav/lib/Settings/AvailabilitySettings.php b/apps/dav/lib/Settings/AvailabilitySettings.php new file mode 100644 index 00000000000..9a163e21edb --- /dev/null +++ b/apps/dav/lib/Settings/AvailabilitySettings.php @@ -0,0 +1,44 @@ +<?php + +declare(strict_types=1); + +/* + * @copyright 2021 Christoph Wurst <christoph@winzerhof-wurst.at> + * + * @author 2021 Christoph Wurst <christoph@winzerhof-wurst.at> + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +namespace OCA\DAV\Settings; + +use OCA\DAV\AppInfo\Application; +use OCP\AppFramework\Http\TemplateResponse; +use OCP\Settings\ISettings; + +class AvailabilitySettings implements ISettings { + public function getForm(): TemplateResponse { + return new TemplateResponse(Application::APP_ID, 'settings-personal-availability'); + } + + public function getSection(): string { + return 'groupware'; + } + + public function getPriority(): int { + return 10; + } +} |