Documentation

Deprecated

Table of Contents

lib/public/API.php
lib/public/App.php
lib/public/AppFramework/App.php
lib/public/AppFramework/Db/Mapper.php
lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php
lib/public/AppFramework/Http/OCSResponse.php
lib/public/AppFramework/Http/StrictContentSecurityPolicy.php
lib/public/AppFramework/Http/StrictEvalContentSecurityPolicy.php
lib/public/AppFramework/Http/StrictInlineContentSecurityPolicy.php
lib/public/AppFramework/Http/TemplateResponse.php
lib/public/AppFramework/IAppContainer.php
lib/public/AppFramework/QueryException.php
lib/public/AppFramework/Utility/IControllerMethodReflector.php
lib/public/BackgroundJob/IJobList.php
lib/public/BackgroundJob.php
lib/public/Collaboration/Resources/IManager.php
lib/public/Contacts/IManager.php
lib/public/Dashboard/IDashboardManager.php
lib/public/Dashboard/IDashboardWidget.php
lib/public/Dashboard/Model/IWidgetConfig.php
lib/public/Dashboard/Model/IWidgetRequest.php
lib/public/Dashboard/Model/WidgetSetting.php
lib/public/Dashboard/Model/WidgetSetup.php
lib/public/Dashboard/Model/WidgetTemplate.php
lib/public/Dashboard/RegisterWidgetEvent.php
lib/public/Dashboard/Service/IEventsService.php
lib/public/Dashboard/Service/IWidgetsService.php
lib/public/Defaults.php
lib/public/Files/Cache/ICache.php
lib/public/Files/Storage/INotifyStorage.php
lib/public/Files/Storage.php
lib/public/Files.php
lib/public/Group/Backend/ABackend.php
lib/public/Group/Events/BeforeUserRemovedEvent.php
lib/public/ICache.php
lib/public/ICacheFactory.php
lib/public/IContainer.php
lib/public/IDBConnection.php
lib/public/ILogger.php
lib/public/ISearch.php
lib/public/IServerContainer.php
lib/public/Notification/IManager.php
lib/public/Preview/IProvider.php
lib/public/Route/IRouter.php
lib/public/Search/PagedProvider.php
lib/public/Search/Provider.php
lib/public/Search/Result.php
lib/public/Security/IContentSecurityPolicyManager.php
lib/public/Settings/ISection.php
lib/public/Share.php
lib/public/Support/CrashReport/IRegistry.php
lib/public/Support/Subscription/IRegistry.php
lib/public/User/Backend/ABackend.php
lib/public/User.php
lib/public/UserInterface.php
lib/public/Util.php
lib/public/WorkflowEngine/IEntityCompat.php
lib/public/WorkflowEngine/IOperationCompat.php
lib/public/WorkflowEngine/IRuleMatcher.php

API.php

Line Element Reason
43 normal Use the AppFramework

App.php

Line Element Reason
49 normal
60 normal Use settings section in appinfo.xml to register personal admin sections
72 normal Use settings section in appinfo.xml to register admin sections
84 normal ise \OC::$server->getAppManager()->getAppInfo($appId)
97 normal use \OC::$server->getAppManager()->isEnabledForUser($appId)
108 normal use \OC::$server->getAppManager()->getAppVersion($appId)

App.php

Line Element Reason
148 normal Just return an array from your routes.php

Mapper.php

Line Element Reason
39 normal Move over to QBMapper
52 normal Move over to QBMapper
71 normal Move over to QBMapper
83 normal Move over to QBMapper
98 normal Move over to QBMapper
147 normal Move over to QBMapper
203 normal Move over to QBMapper
214 normal Move over to QBMapper
236 normal Move over to QBMapper
272 normal Move over to QBMapper
308 normal Move over to QBMapper
325 normal Move over to QBMapper
340 normal Move over to QBMapper
368 normal Move over to QBMapper

EmptyContentSecurityPolicy.php

Line Element Reason
93 normal CSP tokens are now used
118 normal Eval should not be used anymore. Please update your scripts. This function will stop functioning in a future version of Nextcloud.
329 normal use addAllowedWorkerSrcDomains or addAllowedFrameDomain
342 normal use the WorkerSrcDomains or FrameDomain

OCSResponse.php

Line Element Reason
39 normal To implement an OCS endpoint extend the OCSController
58 normal To implement an OCS endpoint extend the OCSController
88 normal To implement an OCS endpoint extend the OCSController

StrictContentSecurityPolicy.php

Line Element Reason
46 normal

StrictEvalContentSecurityPolicy.php

Line Element Reason
46 normal

StrictInlineContentSecurityPolicy.php

Line Element Reason
46 normal

TemplateResponse.php

Line Element Reason
69 normal use OCP\AppFramework\Http\Events\BeforeTemplateRenderedEvent
73 normal use OCP\AppFramework\Http\Events\BeforeTemplateRenderedEvent

IAppContainer.php

Line Element Reason
52 normal
59 normal
67 normal use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerMiddleware
76 normal use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerCapability

QueryException.php

Line Element Reason
42 normal catch \Psr\Container\ContainerExceptionInterface

IControllerMethodReflector.php

Line Element Reason
48 normal Reflect should not be called multiple times and only be used internally. This will be removed in Nextcloud 18

IJobList.php

Line Element Reason
85 normal - This method is dangerous since it can cause load and memory problems when creating too many instances.

BackgroundJob.php

Line Element Reason
31 normal
36 normal
44 normal

IManager.php

Line Element Reason
127 normal Use IProviderManager::registerResourceProvider instead

IManager.php

Line Element Reason
171 normal - Use `$this->getUserAddressBooks()` instead

IDashboardManager.php

Line Element Reason
45 normal
56 normal
67 normal
84 normal
107 normal
122 normal
136 normal

IDashboardWidget.php

Line Element Reason
52 normal
62 normal
73 normal
85 normal
99 normal
113 normal
132 normal
148 normal

IWidgetConfig.php

Line Element Reason
43 normal
54 normal
65 normal
85 normal
116 normal
127 normal

IWidgetRequest.php

Line Element Reason
45 normal
55 normal
66 normal
86 normal
99 normal
110 normal
124 normal
137 normal

WidgetSetting.php

Line Element Reason
52 normal
81 normal
96 normal
110 normal
125 normal
139 normal
154 normal
168 normal
183 normal
197 normal
212 normal
226 normal
237 normal

WidgetSetup.php

Line Element Reason
45 normal
83 normal
99 normal
115 normal
132 normal
152 normal
177 normal
194 normal
207 normal
222 normal
237 normal
255 normal
268 normal

WidgetTemplate.php

Line Element Reason
44 normal
74 normal
91 normal
105 normal
119 normal
135 normal
149 normal
163 normal
179 normal
193 normal
207 normal
221 normal
236 normal
252 normal
268 normal
286 normal
304 normal
319 normal

RegisterWidgetEvent.php

Line Element Reason
43 normal

IEventsService.php

Line Element Reason
42 normal
58 normal
74 normal
89 normal

IWidgetsService.php

Line Element Reason
43 normal
56 normal

Defaults.php

Line Element Reason
150 normal

ICache.php

Line Element Reason
205 normal due to lack of pagination, not all backends might implement this
216 normal due to lack of pagination, not all backends might implement this

INotifyStorage.php

Line Element Reason
56 normal use INotifyStorage::notify()->listen() instead

Storage.php

Line Element Reason
53 normal use \OCP\Files\Storage\IStorage instead

Files.php

Line Element Reason
51 normal
58 normal
70 normal
81 normal
93 normal
106 normal use getNonExistingName of the OCP\Files\Folder object
118 normal use IAppData instead

ABackend.php

Line Element Reason
42 normal

BeforeUserRemovedEvent.php

Line Element Reason
40 normal - it can't be guaranteed that this event is triggered in all case (e.g. for LDAP users this isn't possible) - if there is a valid use case please reach out in the issue tracker at https://github.com/nextcloud/server/issues
52 normal
63 normal
72 normal

ICache.php

Line Element Reason
69 normal Directly read from GET to prevent race conditions

ICacheFactory.php

Line Element Reason
48 normal Use either createLocking, createDistributed or createLocal

IContainer.php

Line Element Reason
52 normal use \Psr\Container\ContainerInterface
64 normal use \Psr\Container\ContainerInterface::get
77 normal use \Psr\Container\ContainerInterface::get
88 normal use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerParameter
104 normal use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerService
115 normal use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerServiceAlias

IDBConnection.php

Line Element Reason
126 normal - use unique index and "try { $db->insert() } catch (UniqueConstraintViolationException $e) }" instead, because it is more reliable and does not have the risk for deadlocks - see https://github.com/nextcloud/server/pull/12371

ILogger.php

Line Element Reason
44 normal use the PSR-3 logger \Psr\Log\LoggerInterface
80 normal use \Psr\Log\LoggerInterface::emergency
91 normal use \Psr\Log\LoggerInterface::alert
102 normal use \Psr\Log\LoggerInterface::critical
114 normal use \Psr\Log\LoggerInterface::error
125 normal use \Psr\Log\LoggerInterface::warning
136 normal use \Psr\Log\LoggerInterface::notice
147 normal use \Psr\Log\LoggerInterface::info
158 normal use \Psr\Log\LoggerInterface::debug
170 normal use \Psr\Log\LoggerInterface::log
189 normal use the `exception` entry in the context of any method in \Psr\Log\LoggerInterface
49 normal
54 normal
59 normal
64 normal
69 normal

ISearch.php

Line Element Reason
34 normal
46 normal
55 normal
63 normal
70 normal

IServerContainer.php

Line Element Reason
71 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
81 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
91 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
101 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
112 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
121 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
131 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
140 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
151 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
160 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
169 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
178 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
187 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
196 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
205 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
214 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
223 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
232 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
241 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
248 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
258 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
265 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
272 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
279 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
288 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
297 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
306 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
315 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
324 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
333 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
342 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
351 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
360 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
369 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
378 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
387 normal
397 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
406 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
415 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
424 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
435 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
444 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
453 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
462 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
469 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
478 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
484 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
493 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
502 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
509 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
518 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
527 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
536 normal use \OCP\EventDispatcher\IEventDispatcher
545 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
552 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
562 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
572 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
581 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
588 normal Use the AddContentSecurityPolicyEvent
595 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
602 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
609 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
616 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
623 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
630 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
637 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
644 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get
651 normal have it injected or fetch it through \Psr\Container\ContainerInterface::get

IManager.php

Line Element Reason
51 normal use registerNotifierService instead.

IProvider.php

Line Element Reason
35 normal use IProviderV2 instead

IRouter.php

Line Element Reason
38 normal
47 normal
54 normal
63 normal
73 normal
82 normal
95 normal
106 normal
114 normal
126 normal

PagedProvider.php

Line Element Reason
35 normal
50 normal
61 normal
75 normal
42 normal

Provider.php

Line Element Reason
35 normal
57 normal
68 normal
86 normal
98 normal
41 normal
49 normal

Result.php

Line Element Reason
34 normal
79 normal
43 normal
52 normal
60 normal
69 normal

IContentSecurityPolicyManager.php

Line Element Reason
36 normal listen to the AddContentSecurityPolicyEvent to add a policy
55 normal listen to the AddContentSecurityPolicyEvent to add a policy

ISection.php

Line Element Reason
32 normal Use IIconSection instead

Share.php

Line Element Reason
51 normal
63 normal
78 normal
91 normal
107 normal
124 normal
139 normal

IRegistry.php

Line Element Reason
37 normal used internally only
48 normal use IRegistrationContext::registerCrashReporter
60 normal used internally only
71 normal used internally only
84 normal used internally only

IRegistry.php

Line Element Reason
47 normal use registerService

ABackend.php

Line Element Reason
45 normal

User.php

Line Element Reason
46 normal
53 normal Use \OC::$server->getUserSession()->getUser()->getUID()
63 normal Use annotation based ACLs from the AppFramework instead
72 normal Use annotation based ACLs from the AppFramework instead
82 normal Use annotation based ACLs from the AppFramework instead

UserInterface.php

Line Element Reason
55 normal Switch to the interfaces from OCP\User\Backend

Util.php

Line Element Reason
132 normal use log of \OCP\ILogger
144 normal Use \OC::$server->getShareManager()->sharingDisabledForUser
248 normal - use OCP\IURLGenerator
428 normal
472 normal use \OC\Files\View::verifyPath()
63 normal use \OCP\ILogger::DEBUG
67 normal use \OCP\ILogger::INFO
71 normal use \OCP\ILogger::WARN
75 normal use \OCP\ILogger::ERROR
79 normal use \OCP\ILogger::FATAL

IEntityCompat.php

Line Element Reason
40 normal
48 normal

IOperationCompat.php

Line Element Reason
40 normal
51 normal

IRuleMatcher.php

Line Element Reason
47 normal

Search results