Nextcloud PHP API (stable18)

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
42 normal Use the AppFramework

App.php

Line Element Reason
48 normal
59 normal Use settings section in appinfo.xml to register personal admin sections
71 normal Use settings section in appinfo.xml to register admin sections
83 normal ise \OC::$server->getAppManager()->getAppInfo($appId)
96 normal use \OC::$server->getAppManager()->isEnabledForUser($appId)
107 normal use \OC::$server->getAppManager()->getAppVersion($appId)

Mapper.php

Line Element Reason
38 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
148 normal Move over to QBMapper
205 normal Move over to QBMapper
216 normal Move over to QBMapper
238 normal Move over to QBMapper
274 normal Move over to QBMapper
310 normal Move over to QBMapper
327 normal Move over to QBMapper
342 normal Move over to QBMapper
370 normal Move over to QBMapper

EmptyContentSecurityPolicy.php

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

OCSResponse.php

Line Element Reason
39 normal To implement an OCS endpoint extend the OCSController
59 normal To implement an OCS endpoint extend the OCSController
89 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
169 normal - Use `$this->getUserAddressBooks()` instead

Defaults.php

Line Element Reason
150 normal

ICache.php

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

INotifyStorage.php

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

Storage.php

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

Files.php

Line Element Reason
50 normal
57 normal
69 normal
80 normal
92 normal
105 normal use getNonExistingName of the OCP\Files\Folder object
117 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
46 normal Use either createLocking, createDistributed or createLocal

IDBConnection.php

Line Element Reason
122 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
152 normal use IAppData
540 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
36 normal
45 normal
52 normal
61 normal
71 normal
80 normal
93 normal
104 normal
112 normal
124 normal

IContentSecurityPolicyManager.php

Line Element Reason
33 normal listen to the AddContentSecurityPolicyEvent to add a policy
52 normal listen to the AddContentSecurityPolicyEvent to add a policy

ISection.php

Line Element Reason
32 normal Use IIconSection instead

Share.php

Line Element Reason
50 normal
62 normal
77 normal
90 normal
106 normal
123 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
130 normal use log of \OCP\ILogger
142 normal Use \OC::$server->getShareManager()->sharingDisabledForUser
246 normal - use OCP\IURLGenerator
426 normal
470 normal use \OC\Files\View::verifyPath()
62 normal use \OCP\ILogger::DEBUG
66 normal use \OCP\ILogger::INFO
70 normal use \OCP\ILogger::WARN
74 normal use \OCP\ILogger::ERROR
78 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