Nextcloud PHP API (master)

Deprecated

Table of Contents

lib/public/Accounts/IAccount.php
lib/public/Accounts/IAccountManager.php
lib/public/App/ManagerEvent.php
lib/public/AppFramework/App.php
lib/public/AppFramework/Db/Entity.php
lib/public/AppFramework/Http/Attribute/IgnoreOpenAPI.php
lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php
lib/public/AppFramework/Http/RedirectToDefaultAppResponse.php
lib/public/AppFramework/Http/StrictContentSecurityPolicy.php
lib/public/AppFramework/Http/StrictEvalContentSecurityPolicy.php
lib/public/AppFramework/Http/StrictInlineContentSecurityPolicy.php
lib/public/AppFramework/IAppContainer.php
lib/public/AppFramework/QueryException.php
lib/public/AppFramework/Services/IAppConfig.php
lib/public/AppFramework/Utility/IControllerMethodReflector.php
lib/public/Authentication/TwoFactorAuth/IRegistry.php
lib/public/Authentication/TwoFactorAuth/RegistryEvent.php
lib/public/Authentication/TwoFactorAuth/TwoFactorProviderDisabled.php
lib/public/Authentication/TwoFactorAuth/TwoFactorProviderForUserDisabled.php
lib/public/Authentication/TwoFactorAuth/TwoFactorProviderForUserEnabled.php
lib/public/BackgroundJob/IJob.php
lib/public/BackgroundJob/IJobList.php
lib/public/BackgroundJob/Job.php
lib/public/BackgroundJob/QueuedJob.php
lib/public/BackgroundJob/TimedJob.php
lib/public/Calendar/IManager.php
lib/public/Calendar/Resource/IManager.php
lib/public/Calendar/Room/IManager.php
lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php
lib/public/Collaboration/Resources/IManager.php
lib/public/Comments/CommentsEntityEvent.php
lib/public/Comments/CommentsEvent.php
lib/public/Console/ConsoleEvent.php
lib/public/DB/IPreparedStatement.php
lib/public/DB/IResult.php
lib/public/DB/QueryBuilder/IQueryBuilder.php
lib/public/Defaults.php
lib/public/EventDispatcher/GenericEvent.php
lib/public/EventDispatcher/IEventDispatcher.php
lib/public/Federation/ICloudFederationProviderManager.php
lib/public/Files/Cache/CacheInsertEvent.php
lib/public/Files/Cache/CacheUpdateEvent.php
lib/public/Files/Cache/ICache.php
lib/public/Files/Events/Node/BeforeNodeDeletedEvent.php
lib/public/Files/Events/Node/BeforeNodeRenamedEvent.php
lib/public/Files/Lock/ILockManager.php
lib/public/Files/Storage.php
lib/public/Files/Template/TemplateFileCreator.php
lib/public/Files.php
lib/public/Group/Backend/ABackend.php
lib/public/Group/Backend/ICreateGroupBackend.php
lib/public/Group/Events/BeforeUserRemovedEvent.php
lib/public/GroupInterface.php
lib/public/IAppConfig.php
lib/public/ICache.php
lib/public/IConfig.php
lib/public/IContainer.php
lib/public/IDBConnection.php
lib/public/IInitialStateService.php
lib/public/ILogger.php
lib/public/IPreview.php
lib/public/ISearch.php
lib/public/IServerContainer.php
lib/public/IUser.php
lib/public/Notification/IManager.php
lib/public/Preview/BeforePreviewFetchedEvent.php
lib/public/Preview/IProvider.php
lib/public/Remote/Api/IApiCollection.php
lib/public/Remote/Api/IApiFactory.php
lib/public/Remote/Api/ICapabilitiesApi.php
lib/public/Remote/Api/IUserApi.php
lib/public/Remote/ICredentials.php
lib/public/Remote/IInstance.php
lib/public/Remote/IInstanceFactory.php
lib/public/Remote/IUser.php
lib/public/Route/IRouter.php
lib/public/Search/PagedProvider.php
lib/public/Search/Provider.php
lib/public/Search/Result.php
lib/public/Security/Bruteforce/IThrottler.php
lib/public/Security/IContentSecurityPolicyManager.php
lib/public/Settings/IManager.php
lib/public/Share.php
lib/public/Support/CrashReport/IRegistry.php
lib/public/Support/Subscription/IRegistry.php
lib/public/SystemTag/ManagerEvent.php
lib/public/SystemTag/MapperEvent.php
lib/public/SystemTag/SystemTagsEntityEvent.php
lib/public/User/Backend/ABackend.php
lib/public/UserInterface.php
lib/public/Util.php
lib/public/WorkflowEngine/IRuleMatcher.php

IAccount.php

Line Element Reason
53 IAccount::getProperties()

use getAllProperties()

IAccountManager.php

Line Element Reason
56 IAccountManager::VISIBILITY_PRIVATE
64 IAccountManager::VISIBILITY_CONTACTS_ONLY
72 IAccountManager::VISIBILITY_PUBLIC

ManagerEvent.php

Line Element Reason
22 ManagerEvent::EVENT_APP_ENABLE
28 ManagerEvent::EVENT_APP_ENABLE_FOR_GROUPS
34 ManagerEvent::EVENT_APP_DISABLE
40 ManagerEvent::EVENT_APP_UPDATE

App.php

Line Element Reason
119 App::registerRoutes()

Just return an array from your routes.php

Entity.php

Line Element Reason
256 Entity::slugify()

IgnoreOpenAPI.php

Line Element Reason
20 IgnoreOpenAPI

Use OpenAPI with OpenAPI::SCOPE_IGNORE instead: #[OpenAPI(scope: OpenAPI::SCOPE_IGNORE)]

EmptyContentSecurityPolicy.php

Line Element Reason
111 EmptyContentSecurityPolicy::allowEvalScript()

Eval should not be used anymore. Please update your scripts. This function will stop functioning in a future version of Nextcloud.

333 EmptyContentSecurityPolicy::addAllowedChildSrcDomain()

use addAllowedWorkerSrcDomains or addAllowedFrameDomain

346 EmptyContentSecurityPolicy::disallowChildSrcDomain()

use the WorkerSrcDomains or FrameDomain

RedirectToDefaultAppResponse.php

Line Element Reason
23 RedirectToDefaultAppResponse

Use RedirectResponse() with IURLGenerator::linkToDefaultPageUrl() instead

32 RedirectToDefaultAppResponse::__construct()

Use RedirectResponse() with IURLGenerator::linkToDefaultPageUrl() instead

StrictContentSecurityPolicy.php

Line Element Reason
26 StrictContentSecurityPolicy

StrictEvalContentSecurityPolicy.php

Line Element Reason
26 StrictEvalContentSecurityPolicy

StrictInlineContentSecurityPolicy.php

Line Element Reason
26 StrictInlineContentSecurityPolicy

IAppContainer.php

Line Element Reason
24 IAppContainer
31 IAppContainer::getAppName()
38 IAppContainer::getServer()
46 IAppContainer::registerMiddleWare()

use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerMiddleware

55 IAppContainer::registerCapability()

use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerCapability

QueryException.php

Line Element Reason
22 QueryException

catch \Psr\Container\ContainerExceptionInterface

IAppConfig.php

Line Element Reason
87 IAppConfig::setAppValue()

use setAppValueString()

198 IAppConfig::getAppValue()

use getAppValueString()

IControllerMethodReflector.php

Line Element Reason
20 IControllerMethodReflector

will be obsolete with native attributes in PHP8

28 IControllerMethodReflector::reflect()

Reflect should not be called multiple times and only be used internally. This will be removed in Nextcloud 18

40 IControllerMethodReflector::getType()

this method is only used internally

47 IControllerMethodReflector::getParameters()

this method is only used internally

58 IControllerMethodReflector::hasAnnotation()

will be obsolete with native attributes in PHP8

IRegistry.php

Line Element Reason
27 IRegistry::EVENT_PROVIDER_ENABLED
33 IRegistry::EVENT_PROVIDER_DISABLED

RegistryEvent.php

Line Element Reason
20 RegistryEvent

Use TwoFactorProviderForUserRegistered or TwoFactorProviderForUserUnregistered instead

TwoFactorProviderDisabled.php

Line Element Reason
18 TwoFactorProviderDisabled

Use \OCP\Authentication\TwoFactorAuth\TwoFactorProviderUserDeleted instead

TwoFactorProviderForUserDisabled.php

Line Element Reason
19 TwoFactorProviderForUserDisabled

Use \OCP\Authentication\TwoFactorAuth\TwoFactorProviderChallengeFailed instead

TwoFactorProviderForUserEnabled.php

Line Element Reason
19 TwoFactorProviderForUserEnabled

Use \OCP\Authentication\TwoFactorAuth\TwoFactorProviderChallengePassed instead

IJob.php

Line Element Reason
39 IJob::execute()

since 25.0.0 Use start() instead. This method will be removed with the ILogger interface

IJobList.php

Line Element Reason
80 IJobList::getJobs()

Use getJobsIterator instead to avoid duplicated job objects

Job.php

Line Element Reason
45 Job::execute()

since 25.0.0 Use start() instead. This method will be removed with the ILogger interface

QueuedJob.php

Line Element Reason
28 QueuedJob::execute()

since 25.0.0 Use start() instead. This method will be removed with the ILogger interface

TimedJob.php

Line Element Reason
72 TimedJob::execute()

since 25.0.0 Use start() instead

IManager.php

Line Element Reason
56 IManager::search()

use \OCP\Calendar\IManager::searchForPrincipal

65 IManager::isEnabled()
75 IManager::registerCalendar()

use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerCalendarProvider

85 IManager::unregisterCalendar()
96 IManager::register()

use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerCalendarProvider

103 IManager::getCalendars()

use \OCP\Calendar\IManager::getCalendarsForPrincipal

112 IManager::clear()

IManager.php

Line Element Reason
15 IManager
24 IManager::registerBackend()

use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerCalendarResourceBackend

34 IManager::unregisterBackend()
41 IManager::getBackends()
49 IManager::getBackend()
57 IManager::clear()

IManager.php

Line Element Reason
15 IManager
24 IManager::registerBackend()

use \OC\AppFramework\Bootstrap::registerCalendarRoomBackend

34 IManager::unregisterBackend()
41 IManager::getBackends()
49 IManager::getBackend()
57 IManager::clear()

AutoCompleteEvent.php

Line Element Reason
17 AutoCompleteEvent

Use AutoCompleteFilterEvent instead

IManager.php

Line Element Reason
106 IManager::registerResourceProvider()

Use IProviderManager::registerResourceProvider instead

CommentsEntityEvent.php

Line Element Reason
23 CommentsEntityEvent::EVENT_ENTITY
  • Listen to the typed event instead.

CommentsEvent.php

Line Element Reason
22 CommentsEvent::EVENT_ADD
28 CommentsEvent::EVENT_PRE_UPDATE
34 CommentsEvent::EVENT_UPDATE
40 CommentsEvent::EVENT_DELETE

ConsoleEvent.php

Line Element Reason
22 ConsoleEvent::EVENT_RUN

IPreparedStatement.php

Line Element Reason
34 IPreparedStatement::closeCursor()

use \OCP\DB\IResult::closeCursor on the \OCP\DB\IResult returned by \OCP\IDBConnection::prepare

44 IPreparedStatement::fetch()

use \OCP\DB\IResult::fetch on the \OCP\DB\IResult returned by \OCP\IDBConnection::prepare

54 IPreparedStatement::fetchAll()

use \OCP\DB\IResult::fetchAll on the \OCP\DB\IResult returned by \OCP\IDBConnection::prepare

62 IPreparedStatement::fetchColumn()

use \OCP\DB\IResult::fetchColumn on the \OCP\DB\IResult returned by \OCP\IDBConnection::prepare

70 IPreparedStatement::fetchOne()

use \OCP\DB\IResult::fetchOne on the \OCP\DB\IResult returned by \OCP\IDBConnection::prepare

117 IPreparedStatement::rowCount()

use \OCP\DB\IResult::rowCount on the \OCP\DB\IResult returned by \OCP\IDBConnection::prepare

IResult.php

Line Element Reason
60 IResult::fetchColumn()

use \OCP\DB\IResult::fetchOne

IQueryBuilder.php

Line Element Reason
154 IQueryBuilder::execute()

Use executeQuery or executeStatement

Defaults.php

Line Element Reason
116 Defaults::getHTMLName()

GenericEvent.php

Line Element Reason
27 GenericEvent

use \OCP\EventDispatcher\Event

40 GenericEvent::__construct()
52 GenericEvent::getSubject()
63 GenericEvent::getArgument()
77 GenericEvent::setArgument()
88 GenericEvent::getArguments()
98 GenericEvent::setArguments()
109 GenericEvent::hasArgument()
120 GenericEvent::getIterator()
131 GenericEvent::offsetExists()
143 GenericEvent::offsetGet()
155 GenericEvent::offsetSet()
166 GenericEvent::offsetUnset()
29 GenericEvent::$subject
32 GenericEvent::$arguments

IEventDispatcher.php

Line Element Reason
73 IEventDispatcher::dispatch()

use \OCP\EventDispatcher\IEventDispatcher::dispatchTyped

ICloudFederationProviderManager.php

Line Element Reason
70 ICloudFederationProviderManager::sendShare()
  • Use sendCloudShare() instead and handle errors manually
90 ICloudFederationProviderManager::sendNotification()
  • Use sendCloudNotification() instead and handle errors manually

CacheInsertEvent.php

Line Element Reason
17 CacheInsertEvent

use CacheEntryInsertedEvent instead

CacheUpdateEvent.php

Line Element Reason
17 CacheUpdateEvent

use CacheEntryUpdatedEvent instead

ICache.php

Line Element Reason
216 ICache::search()

due to lack of pagination, not all backends might implement this

227 ICache::searchByMime()

due to lack of pagination, not all backends might implement this

BeforeNodeDeletedEvent.php

Line Element Reason
21 BeforeNodeDeletedEvent::abortOperation()
  • use OCP\Exceptions\AbortedEventException instead

BeforeNodeRenamedEvent.php

Line Element Reason
21 BeforeNodeRenamedEvent::abortOperation()
  • use OCP\Exceptions\AbortedEventException instead

ILockManager.php

Line Element Reason
30 ILockManager::registerLockProvider()

Use registerLazyLockProvider

Storage.php

Line Element Reason
24 Storage

use \OCP\Files\Storage\IStorage instead

TemplateFileCreator.php

Line Element Reason
55 TemplateFileCreator::setIconClass()
31 TemplateFileCreator::$actionLabel

Files.php

Line Element Reason
18 Files
25 Files::rmdirr()
37 Files::getMimeType()
48 Files::searchByMime()
60 Files::streamCopy()
73 Files::buildNotExistingFileName()

use getNonExistingName of the OCP\Files\Folder object

85 Files::getStorage()

use IAppData instead

ABackend.php

Line Element Reason
24 ABackend::implementsActions()

ICreateGroupBackend.php

Line Element Reason
15 ICreateGroupBackend

Use ICreateNamedGroupBackend instead

BeforeUserRemovedEvent.php

Line Element Reason
22 BeforeUserRemovedEvent
  • 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
33 BeforeUserRemovedEvent::__construct()
44 BeforeUserRemovedEvent::getGroup()
53 BeforeUserRemovedEvent::getUser()

GroupInterface.php

Line Element Reason
130 GroupInterface::usersInGroup()

Use searchInGroup instead, for performance reasons

40 GroupInterface::REMOVE_FROM_GOUP

IAppConfig.php

Line Element Reason
495 IAppConfig::getValues()

Use getAllValues() or searchValues()

506 IAppConfig::getFilteredValues()

Use getAllValues() or searchValues()

ICache.php

Line Element Reason
43 ICache::hasKey()

Directly read from GET to prevent race conditions

IConfig.php

Line Element Reason
109 IConfig::getAppKeys()

Use IAppConfig directly

121 IConfig::setAppValue()

Use IAppConfig directly

134 IConfig::getAppValue()

Use IAppConfig directly

144 IConfig::deleteAppValue()

Use IAppConfig directly

153 IConfig::deleteAppValues()

Use IAppConfig directly

IContainer.php

Line Element Reason
27 IContainer

use \Psr\Container\ContainerInterface

42 IContainer::resolve()

use \Psr\Container\ContainerInterface::get

60 IContainer::query()

use \Psr\Container\ContainerInterface::get

71 IContainer::registerParameter()

use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerParameter

87 IContainer::registerService()

use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerService

98 IContainer::registerAlias()

use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerServiceAlias

IDBConnection.php

Line Element Reason
100 IDBConnection::executeUpdate()

use executeStatement

127 IDBConnection::lastInsertId()

use \OCP\DB\QueryBuilder\IQueryBuilder::getLastInsertId

144 IDBConnection::insertIfNotExist()
  • 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
230 IDBConnection::getError()

doesn't return anything meaningful

239 IDBConnection::errorCode()

doesn't return anything anymore

248 IDBConnection::errorInfo()

doesn't return anything anymore

IInitialStateService.php

Line Element Reason
17 IInitialStateService

Use OCP\AppFramework\Services\IInitialState or OCP\AppFramework\Services\InitialStateProvider

32 IInitialStateService::provideInitialState()

Use OCP\AppFramework\Services\IInitialState or OCP\AppFramework\Services\InitialStateProvider

50 IInitialStateService::provideLazyInitialState()

Use OCP\AppFramework\Services\IInitialState or OCP\AppFramework\Services\InitialStateProvider

ILogger.php

Line Element Reason
19 ILogger

use the PSR-3 logger \Psr\Log\LoggerInterface

55 ILogger::emergency()

use \Psr\Log\LoggerInterface::emergency

66 ILogger::alert()

use \Psr\Log\LoggerInterface::alert

77 ILogger::critical()

use \Psr\Log\LoggerInterface::critical

89 ILogger::error()

use \Psr\Log\LoggerInterface::error

100 ILogger::warning()

use \Psr\Log\LoggerInterface::warning

111 ILogger::notice()

use \Psr\Log\LoggerInterface::notice

122 ILogger::info()

use \Psr\Log\LoggerInterface::info

133 ILogger::debug()

use \Psr\Log\LoggerInterface::debug

145 ILogger::log()

use \Psr\Log\LoggerInterface::log

164 ILogger::logException()

use the exception entry in the context of any method in \Psr\Log\LoggerInterface

24 ILogger::DEBUG
29 ILogger::INFO
34 ILogger::WARN
39 ILogger::ERROR
44 ILogger::FATAL

IPreview.php

Line Element Reason
46 IPreview::registerProvider()

Register your provider via the IRegistrationContext when booting the app

ISearch.php

Line Element Reason
15 ISearch
26 ISearch::searchPaged()
35 ISearch::registerProvider()
43 ISearch::removeProvider()
50 ISearch::clearProviders()

IServerContainer.php

Line Element Reason
28 IServerContainer
37 IServerContainer::getCalendarManager()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

47 IServerContainer::getCalendarResourceBackendManager()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

57 IServerContainer::getCalendarRoomBackendManager()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

67 IServerContainer::getContactsManager()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

78 IServerContainer::getRequest()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

87 IServerContainer::getPreviewManager()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

97 IServerContainer::getTagManager()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

106 IServerContainer::getRootFolder()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

117 IServerContainer::getUserFolder()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

126 IServerContainer::getUserManager()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

135 IServerContainer::getGroupManager()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

144 IServerContainer::getUserSession()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

153 IServerContainer::getNavigationManager()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

162 IServerContainer::getConfig()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

171 IServerContainer::getCrypto()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

180 IServerContainer::getHasher()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

189 IServerContainer::getSecureRandom()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

198 IServerContainer::getCredentialsManager()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

207 IServerContainer::getAppConfig()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

214 IServerContainer::getL10NFactory()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

224 IServerContainer::getL10N()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

231 IServerContainer::getEncryptionManager()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

238 IServerContainer::getEncryptionFilesHelper()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

245 IServerContainer::getEncryptionKeyStorage()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

254 IServerContainer::getURLGenerator()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

263 IServerContainer::getCache()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

272 IServerContainer::getMemCacheFactory()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

281 IServerContainer::getSession()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

290 IServerContainer::getActivityManager()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

299 IServerContainer::getDatabaseConnection()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

308 IServerContainer::getAvatarManager()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

317 IServerContainer::getJobList()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

326 IServerContainer::getLogger()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

335 IServerContainer::getLogFactory()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

344 IServerContainer::getRouter()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

353 IServerContainer::getSearch()
362 IServerContainer::getCertificateManager()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

371 IServerContainer::getHTTPClientService()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

380 IServerContainer::getEventLogger()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

391 IServerContainer::getQueryLogger()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

400 IServerContainer::getTempManager()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

409 IServerContainer::getAppManager()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

418 IServerContainer::getWebRoot()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

425 IServerContainer::getMountProviderCollection()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

434 IServerContainer::getIniWrapper()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

440 IServerContainer::getCommandBus()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

449 IServerContainer::getMailer()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

458 IServerContainer::getLockingProvider()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

465 IServerContainer::getMountManager()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

474 IServerContainer::getMimeTypeDetector()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

483 IServerContainer::getMimeTypeLoader()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

492 IServerContainer::getNotificationManager()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

499 IServerContainer::getCommentsManager()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

509 IServerContainer::getSystemTagManager()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

519 IServerContainer::getSystemTagObjectMapper()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

528 IServerContainer::getShareManager()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

535 IServerContainer::getContentSecurityPolicyManager()

Use the AddContentSecurityPolicyEvent

542 IServerContainer::getDateTimeZone()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

549 IServerContainer::getDateTimeFormatter()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

556 IServerContainer::getCloudIdManager()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

563 IServerContainer::getGlobalScaleConfig()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

570 IServerContainer::getCloudFederationFactory()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

577 IServerContainer::getCloudFederationProviderManager()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

584 IServerContainer::getRemoteApiFactory()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

591 IServerContainer::getRemoteInstanceFactory()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

598 IServerContainer::getStorageFactory()

have it injected or fetch it through \Psr\Container\ContainerInterface::get

IUser.php

Line Element Reason
206 IUser::setEMailAddress()

use setSystemEMailAddress() or setPrimaryEMailAddress()

IManager.php

Line Element Reason
32 IManager::registerNotifier()

use registerNotifierService instead.

40 IManager::registerNotifierService()

use the IBootStrap registration context

BeforePreviewFetchedEvent.php

Line Element Reason
23 BeforePreviewFetchedEvent::$width

null deprecated *

25 BeforePreviewFetchedEvent::$height

null deprecated *

27 BeforePreviewFetchedEvent::$crop

null deprecated *

29 BeforePreviewFetchedEvent::$mode

null deprecated *

IProvider.php

Line Element Reason
16 IProvider

use IProviderV2 instead

IApiCollection.php

Line Element Reason
14 IApiCollection
21 IApiCollection::getUserApi()
29 IApiCollection::getCapabilitiesApi()

IApiFactory.php

Line Element Reason
15 IApiFactory
24 IApiFactory::getApiCollection()

ICapabilitiesApi.php

Line Element Reason
12 ICapabilitiesApi
19 ICapabilitiesApi::getCapabilities()

IUserApi.php

Line Element Reason
14 IUserApi
22 IUserApi::getUser()

ICredentials.php

Line Element Reason
14 ICredentials
21 ICredentials::getUsername()
29 ICredentials::getPassword()

IInstance.php

Line Element Reason
14 IInstance
21 IInstance::getUrl()
29 IInstance::getFullUrl()
37 IInstance::getVersion()
45 IInstance::getProtocol()
55 IInstance::isActive()

IInstanceFactory.php

Line Element Reason
12 IInstanceFactory
20 IInstanceFactory::getInstance()

IUser.php

Line Element Reason
14 IUser
21 IUser::getUserId()
29 IUser::getEmail()
37 IUser::getDisplayName()
45 IUser::getPhone()
53 IUser::getAddress()
61 IUser::getWebsite()
69 IUser::getTwitter()
77 IUser::getGroups()
85 IUser::getLanguage()
93 IUser::getUsedSpace()
101 IUser::getFreeSpace()
109 IUser::getTotalSpace()
117 IUser::getQuota()

IRouter.php

Line Element Reason
16 IRouter
28 IRouter::create()

PagedProvider.php

Line Element Reason
15 PagedProvider
29 PagedProvider::__construct()
40 PagedProvider::search()
54 PagedProvider::searchPaged()
21 PagedProvider::SIZE_ALL

Provider.php

Line Element Reason
15 Provider
36 Provider::__construct()
47 Provider::getOption()
65 Provider::providesResultsFor()
77 Provider::search()
20 Provider::OPTION_APPS
28 Provider::$options

Result.php

Line Element Reason
15 Result
59 Result::__construct()
23 Result::$id
32 Result::$name
40 Result::$link
49 Result::$type

IThrottler.php

Line Element Reason
74 IThrottler::getAttempts()

This method is considered internal as of Nextcloud 28. Use showBruteforceWarning() to decide whether a warning should be shown.

95 IThrottler::getDelay()

This method is considered internal as of Nextcloud 28. Use showBruteforceWarning() to decide whether a warning should be shown.

114 IThrottler::resetDelayForIP()

This method is considered internal as of Nextcloud 28. Use resetDelay() and only reset the entries of your action and metadata

125 IThrottler::sleepDelay()

Use sleepDelayOrThrowOnMax() instead and abort handling the request when it throws

30 IThrottler::MAX_DELAY
36 IThrottler::MAX_DELAY_MS
42 IThrottler::MAX_ATTEMPTS

IContentSecurityPolicyManager.php

Line Element Reason
19 IContentSecurityPolicyManager

listen to the AddContentSecurityPolicyEvent to add a policy

38 IContentSecurityPolicyManager::addDefaultPolicy()

listen to the AddContentSecurityPolicyEvent to add a policy

IManager.php

Line Element Reason
19 IManager::KEY_ADMIN_SETTINGS

Use self::SETTINGS_ADMIN instead

25 IManager::KEY_ADMIN_SECTION

Use self::SETTINGS_ADMIN instead

31 IManager::KEY_PERSONAL_SETTINGS

Use self::SETTINGS_PERSONAL instead

37 IManager::KEY_PERSONAL_SECTION

Use self::SETTINGS_PERSONAL instead

Share.php

Line Element Reason
21 Share

IRegistry.php

Line Element Reason
19 IRegistry

used internally only

29 IRegistry::register()

use IRegistrationContext::registerCrashReporter

41 IRegistry::delegateBreadcrumb()

used internally only

52 IRegistry::delegateReport()

used internally only

65 IRegistry::delegateMessage()

used internally only

74 IRegistry::hasReporters()

use internally only

IRegistry.php

Line Element Reason
28 IRegistry::register()

use registerService

ManagerEvent.php

Line Element Reason
23 ManagerEvent::EVENT_CREATE
29 ManagerEvent::EVENT_UPDATE
35 ManagerEvent::EVENT_DELETE

MapperEvent.php

Line Element Reason
23 MapperEvent::EVENT_ASSIGN
29 MapperEvent::EVENT_UNASSIGN

SystemTagsEntityEvent.php

Line Element Reason
24 SystemTagsEntityEvent::EVENT_ENTITY

Listen to the typed event instead

ABackend.php

Line Element Reason
26 ABackend::implementsActions()

UserInterface.php

Line Element Reason
29 UserInterface::implementsActions()

Switch to the interfaces from OCP\User\Backend

Util.php

Line Element Reason
79 Util::isSharingDisabledForUser()

Use \OC::$server->get(\OCP\Share\IManager::class)->sharingDisabledForUser

362 Util::connectHook()

use \OCP\EventDispatcher\IEventDispatcher::addListener

377 Util::emitHook()

use \OCP\EventDispatcher\IEventDispatcher::dispatchTypedEvent

452 Util::recursiveArraySearch()
517 Util::isValidFileName()

use OCP\Files\Storage\IStorage::verifyPath()

IRuleMatcher.php

Line Element Reason
28 IRuleMatcher::getMatchingOperations()

Search results