File tree 3 files changed +42
-29
lines changed
3 files changed +42
-29
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ Developed with ❤️ by [LibreCode](https://librecode.coop). Help us transform
71
71
</settings >
72
72
<activity >
73
73
<settings >
74
- <setting >OCA\Libresign\Activity\FileToSign</setting >
74
+ <setting >OCA\Libresign\Activity\Settings\ FileToSign</setting >
75
75
</settings >
76
76
<filters >
77
77
<filter >OCA\Libresign\Activity\Filter</filter >
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+ /**
5
+ * SPDX-FileCopyrightText: 2025 LibreCode coop and contributors
6
+ * SPDX-License-Identifier: AGPL-3.0-or-later
7
+ */
8
+
9
+ namespace OCA \Libresign \Activity \Settings ;
10
+
11
+ use OCP \IL10N ;
12
+
13
+ class FileToSign extends LibresignActivitySettings {
14
+ public function __construct (
15
+ protected IL10N $ l ,
16
+ ) {
17
+ }
18
+
19
+ /**
20
+ * @return string Lowercase a-z and underscore only identifier. The type of table activity
21
+ * @since 20.0.0
22
+ */
23
+ public function getIdentifier (): string {
24
+ return 'file_to_sign ' ;
25
+ }
26
+
27
+ /**
28
+ * @return string A translated string
29
+ * @since 11.0.0
30
+ */
31
+ public function getName (): string {
32
+ return $ this ->l ->t ('You have a <strong>file to sign</strong> ' );
33
+ }
34
+ }
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
declare (strict_types=1 );
4
+
4
5
/**
5
6
* SPDX-FileCopyrightText: 2020-2024 LibreCode coop and contributors
6
7
* SPDX-License-Identifier: AGPL-3.0-or-later
7
8
*/
8
-
9
- namespace OCA \Libresign \Activity ;
9
+ namespace OCA \Libresign \Activity \Settings ;
10
10
11
11
use OCP \Activity \ActivitySettings ;
12
- use OCP \IL10N ;
13
-
14
- class FileToSign extends ActivitySettings {
15
- public function __construct (
16
- protected IL10N $ l ,
17
- ) {
18
- }
19
12
20
- /**
21
- * @return string Lowercase a-z and underscore only identifier. The type of table activity
22
- * @since 20.0.0
23
- */
24
- public function getIdentifier (): string {
25
- return 'file_to_sign ' ;
26
- }
27
-
28
- /**
29
- * @return string A translated string
30
- * @since 11.0.0
31
- */
32
- public function getName (): string {
33
- return $ this ->l ->t ('You have a <strong>file to sign</strong> ' );
34
- }
13
+ abstract class LibresignActivitySettings extends ActivitySettings {
35
14
36
15
/**
37
16
* {@inheritdoc}
38
17
*/
39
- public function getGroupIdentifier (): string {
40
- return 'other ' ;
18
+ public function getGroupIdentifier () {
19
+ return 'libresign ' ;
41
20
}
42
21
43
22
/**
44
23
* {@inheritdoc}
45
24
*/
46
- public function getGroupName (): string {
47
- return $ this -> l -> t ( ' Other activities ' ) ;
25
+ public function getGroupName () {
26
+ return ' LibreSign ' ;
48
27
}
49
28
50
29
/**
You can’t perform that action at this time.
0 commit comments