Nextcloud PHP API (stable19)

Deprecated

Table of Contents

lib/public/API.php
lib/public/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/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/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/ICache.php
lib/public/ICacheFactory.php
lib/public/IDBConnection.php
lib/public/IServerContainer.php
lib/public/Notification/IManager.php
lib/public/Preview/IProvider.php
lib/public/Route/IRouter.php
lib/public/Security/IContentSecurityPolicyManager.php
lib/public/Settings/ISection.php
lib/public/Share.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)

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
92 normal CSP tokens are now used
117 normal Eval should not be used anymore. Please update your scripts. This function will stop functioning in a future version of Nextcloud.
328 normal use addAllowedWorkerSrcDomains or addAllowedFrameDomain
341 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
45 normal

StrictEvalContentSecurityPolicy.php

Line Element Reason
45 normal

StrictInlineContentSecurityPolicy.php

Line Element Reason
45 normal

IControllerMethodReflector.php

Line Element Reason
47 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
84 normal - This method is dangerous since it can cause load and memory problems when creating too many instances.
126 normal - The functionality behind the value is deprecated, it only tells you which job finished last, but since we now allow multiple executors to run in parallel, it's not used to calculate the next job.

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

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

ICache.php

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

ICacheFactory.php

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

IDBConnection.php

Line Element Reason
125 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

IServerContainer.php

Line Element Reason
153 normal use IAppData
541 normal Use the AddContentSecurityPolicyEvent

IManager.php

Line Element Reason
50 normal use registerNotifierService instead.

IProvider.php

Line Element Reason
34 normal use IProviderV2 instead

IRouter.php

Line Element Reason
37 normal
46 normal
53 normal
62 normal
72 normal
81 normal
94 normal
105 normal
113 normal
125 normal

IContentSecurityPolicyManager.php

Line Element Reason
35 normal listen to the AddContentSecurityPolicyEvent to add a policy
54 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

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
54 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
39 normal
47 normal

IOperationCompat.php

Line Element Reason
39 normal
50 normal

IRuleMatcher.php

Line Element Reason
46 normal

Search results