Skip to content

Commit 42be7a5

Browse files
committed
fix(OCP): Add since tag for all constants
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 887c061 commit 42be7a5

37 files changed

+795
-6
lines changed

lib/public/Accounts/IAccountManager.php

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,20 +72,23 @@ interface IAccountManager {
7272
/**
7373
* Contact details only visible locally
7474
*
75+
* @since 15.0.0
7576
* @deprecated 21.0.1
7677
*/
7778
public const VISIBILITY_PRIVATE = 'private';
7879

7980
/**
8081
* Contact details visible on trusted federated servers.
8182
*
83+
* @since 15.0.0
8284
* @deprecated 21.0.1
8385
*/
8486
public const VISIBILITY_CONTACTS_ONLY = 'contacts';
8587

8688
/**
8789
* Contact details visible on trusted federated servers and in the public lookup server.
8890
*
91+
* @since 15.0.0
8992
* @deprecated 21.0.1
9093
*/
9194
public const VISIBILITY_PUBLIC = 'public';
@@ -105,14 +108,49 @@ interface IAccountManager {
105108
self::VISIBILITY_PUBLIC,
106109
];
107110

111+
/**
112+
* @since 15.0.0
113+
*/
108114
public const PROPERTY_AVATAR = 'avatar';
115+
116+
/**
117+
* @since 15.0.0
118+
*/
109119
public const PROPERTY_DISPLAYNAME = 'displayname';
120+
121+
/**
122+
* @since 27.0.0
123+
*/
110124
public const PROPERTY_DISPLAYNAME_LEGACY = 'display-name';
125+
126+
/**
127+
* @since 15.0.0
128+
*/
111129
public const PROPERTY_PHONE = 'phone';
130+
131+
/**
132+
* @since 15.0.0
133+
*/
112134
public const PROPERTY_EMAIL = 'email';
135+
136+
/**
137+
* @since 15.0.0
138+
*/
113139
public const PROPERTY_WEBSITE = 'website';
140+
141+
/**
142+
* @since 15.0.0
143+
*/
114144
public const PROPERTY_ADDRESS = 'address';
145+
146+
/**
147+
* @since 15.0.0
148+
*/
115149
public const PROPERTY_TWITTER = 'twitter';
150+
151+
/**
152+
* @since 26.0.0
153+
*/
116154
public const PROPERTY_FEDIVERSE = 'fediverse';
117155

118156
/**
@@ -161,10 +199,25 @@ interface IAccountManager {
161199
self::PROPERTY_PROFILE_ENABLED,
162200
];
163201

202+
203+
/**
204+
* @since 22.0.0
205+
*/
164206
public const COLLECTION_EMAIL = 'additional_mail';
165207

208+
/**
209+
* @since 15.0.0
210+
*/
166211
public const NOT_VERIFIED = '0';
212+
213+
/**
214+
* @since 15.0.0
215+
*/
167216
public const VERIFICATION_IN_PROGRESS = '1';
217+
218+
/**
219+
* @since 15.0.0
220+
*/
168221
public const VERIFIED = '2';
169222

170223
/**

lib/public/Activity/IExtension.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,43 @@
3131
* @since 8.0.0
3232
*/
3333
interface IExtension {
34+
/**
35+
* @since 8.0.0
36+
*/
3437
public const METHOD_STREAM = 'stream';
38+
39+
/**
40+
* @since 8.0.0
41+
*/
3542
public const METHOD_MAIL = 'email';
43+
44+
/**
45+
* @since 20.0.0
46+
*/
3647
public const METHOD_NOTIFICATION = 'notification';
3748

49+
/**
50+
* @since 8.0.0
51+
*/
3852
public const PRIORITY_VERYLOW = 10;
53+
54+
/**
55+
* @since 8.0.0
56+
*/
3957
public const PRIORITY_LOW = 20;
58+
59+
/**
60+
* @since 8.0.0
61+
*/
4062
public const PRIORITY_MEDIUM = 30;
63+
64+
/**
65+
* @since 8.0.0
66+
*/
4167
public const PRIORITY_HIGH = 40;
68+
69+
/**
70+
* @since 8.0.0
71+
*/
4272
public const PRIORITY_VERYHIGH = 50;
4373
}

lib/public/App/ManagerEvent.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,19 @@
3232
*/
3333
class ManagerEvent extends Event {
3434
/**
35+
* @since 9.0.0
3536
* @deprecated 22.0.0
3637
*/
3738
public const EVENT_APP_ENABLE = 'OCP\App\IAppManager::enableApp';
3839

3940
/**
41+
* @since 9.0.0
4042
* @deprecated 22.0.0
4143
*/
4244
public const EVENT_APP_ENABLE_FOR_GROUPS = 'OCP\App\IAppManager::enableAppForGroups';
4345

4446
/**
47+
* @since 9.0.0
4548
* @deprecated 22.0.0
4649
*/
4750
public const EVENT_APP_DISABLE = 'OCP\App\IAppManager::disableApp';

0 commit comments

Comments
 (0)