File tree Expand file tree Collapse file tree 6 files changed +52
-44
lines changed
lib/CalDAV/Activity/Setting Expand file tree Collapse file tree 6 files changed +52
-44
lines changed Original file line number Diff line number Diff line change 2727 'OCA \\DAV \\CalDAV \\Activity \\Provider \\Calendar ' => $ baseDir . '/../lib/CalDAV/Activity/Provider/Calendar.php ' ,
2828 'OCA \\DAV \\CalDAV \\Activity \\Provider \\Event ' => $ baseDir . '/../lib/CalDAV/Activity/Provider/Event.php ' ,
2929 'OCA \\DAV \\CalDAV \\Activity \\Provider \\Todo ' => $ baseDir . '/../lib/CalDAV/Activity/Provider/Todo.php ' ,
30+ 'OCA \\DAV \\CalDAV \\Activity \\Setting \\CalDAVSetting ' => $ baseDir . '/../lib/CalDAV/Activity/Setting/CalDAVSetting.php ' ,
3031 'OCA \\DAV \\CalDAV \\Activity \\Setting \\Calendar ' => $ baseDir . '/../lib/CalDAV/Activity/Setting/Calendar.php ' ,
3132 'OCA \\DAV \\CalDAV \\Activity \\Setting \\Event ' => $ baseDir . '/../lib/CalDAV/Activity/Setting/Event.php ' ,
3233 'OCA \\DAV \\CalDAV \\Activity \\Setting \\Todo ' => $ baseDir . '/../lib/CalDAV/Activity/Setting/Todo.php ' ,
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ class ComposerStaticInitDAV
4242 'OCA \\DAV \\CalDAV \\Activity \\Provider \\Calendar ' => __DIR__ . '/.. ' . '/../lib/CalDAV/Activity/Provider/Calendar.php ' ,
4343 'OCA \\DAV \\CalDAV \\Activity \\Provider \\Event ' => __DIR__ . '/.. ' . '/../lib/CalDAV/Activity/Provider/Event.php ' ,
4444 'OCA \\DAV \\CalDAV \\Activity \\Provider \\Todo ' => __DIR__ . '/.. ' . '/../lib/CalDAV/Activity/Provider/Todo.php ' ,
45+ 'OCA \\DAV \\CalDAV \\Activity \\Setting \\CalDAVSetting ' => __DIR__ . '/.. ' . '/../lib/CalDAV/Activity/Setting/CalDAVSetting.php ' ,
4546 'OCA \\DAV \\CalDAV \\Activity \\Setting \\Calendar ' => __DIR__ . '/.. ' . '/../lib/CalDAV/Activity/Setting/Calendar.php ' ,
4647 'OCA \\DAV \\CalDAV \\Activity \\Setting \\Event ' => __DIR__ . '/.. ' . '/../lib/CalDAV/Activity/Setting/Event.php ' ,
4748 'OCA \\DAV \\CalDAV \\Activity \\Setting \\Todo ' => __DIR__ . '/.. ' . '/../lib/CalDAV/Activity/Setting/Todo.php ' ,
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+ /**
5+ * @copyright Copyright (c) 2020 Robin Appelman <robin@icewind.nl>
6+ *
7+ * @license GNU AGPL version 3 or any later version
8+ *
9+ * This program is free software: you can redistribute it and/or modify
10+ * it under the terms of the GNU Affero General Public License as
11+ * published by the Free Software Foundation, either version 3 of the
12+ * License, or (at your option) any later version.
13+ *
14+ * This program is distributed in the hope that it will be useful,
15+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+ * GNU Affero General Public License for more details.
18+ *
19+ * You should have received a copy of the GNU Affero General Public License
20+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21+ *
22+ */
23+
24+ namespace OCA \DAV \CalDAV \Activity \Setting ;
25+
26+ use OCP \Activity \ActivitySettings ;
27+ use OCP \IL10N ;
28+
29+ abstract class CalDAVSetting extends ActivitySettings {
30+ /** @var IL10N */
31+ protected $ l ;
32+
33+ /**
34+ * @param IL10N $l
35+ */
36+ public function __construct (IL10N $ l ) {
37+ $ this ->l = $ l ;
38+ }
39+
40+ public function getGroupIdentifier () {
41+ return 'calendar ' ;
42+ }
43+
44+ public function getGroupName () {
45+ return $ this ->l ->t ('Calendar and tasks ' );
46+ }
47+ }
Original file line number Diff line number Diff line change 2323
2424namespace OCA \DAV \CalDAV \Activity \Setting ;
2525
26- use OCP \Activity \ISetting ;
27- use OCP \IL10N ;
28-
29- class Calendar implements ISetting {
30-
31- /** @var IL10N */
32- protected $ l ;
33-
34- /**
35- * @param IL10N $l
36- */
37- public function __construct (IL10N $ l ) {
38- $ this ->l = $ l ;
39- }
40-
26+ class Calendar extends CalDAVSetting {
4127 /**
4228 * @return string Lowercase a-z and underscore only identifier
4329 * @since 11.0.0
Original file line number Diff line number Diff line change 2323
2424namespace OCA \DAV \CalDAV \Activity \Setting ;
2525
26- use OCP \Activity \ISetting ;
27- use OCP \IL10N ;
28-
29- class Event implements ISetting {
30-
31- /** @var IL10N */
32- protected $ l ;
33-
34- /**
35- * @param IL10N $l
36- */
37- public function __construct (IL10N $ l ) {
38- $ this ->l = $ l ;
39- }
40-
26+ class Event extends CalDAVSetting {
4127 /**
4228 * @return string Lowercase a-z and underscore only identifier
4329 * @since 11.0.0
Original file line number Diff line number Diff line change 2323
2424namespace OCA \DAV \CalDAV \Activity \Setting ;
2525
26- use OCP \Activity \ISetting ;
27- use OCP \IL10N ;
28-
29- class Todo implements ISetting {
30-
31- /** @var IL10N */
32- protected $ l ;
33-
34- /**
35- * @param IL10N $l
36- */
37- public function __construct (IL10N $ l ) {
38- $ this ->l = $ l ;
39- }
26+ class Todo extends CalDAVSetting {
4027
4128 /**
4229 * @return string Lowercase a-z and underscore only identifier
You can’t perform that action at this time.
0 commit comments