Nextcloud PHP API (master)

Deprecated

Table of Contents

lib/public/Accounts/IAccount.php
lib/public/Accounts/IAccountManager.php
lib/public/App/IAppManager.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/Comments/ICommentsEventHandler.php
lib/public/Comments/ICommentsManager.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/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/IPreview.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/Share_Backend.php
lib/public/SpeechToText/Events/AbstractTranscriptionEvent.php
lib/public/SpeechToText/Events/TranscriptionFailedEvent.php
lib/public/SpeechToText/Events/TranscriptionSuccessfulEvent.php
lib/public/SpeechToText/ISpeechToTextManager.php
lib/public/SpeechToText/ISpeechToTextProvider.php
lib/public/SpeechToText/ISpeechToTextProviderWithId.php
lib/public/SpeechToText/ISpeechToTextProviderWithUserId.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/TextProcessing/Events/AbstractTextProcessingEvent.php
lib/public/TextProcessing/Events/TaskFailedEvent.php
lib/public/TextProcessing/Events/TaskSuccessfulEvent.php
lib/public/TextProcessing/Exception/TaskFailureException.php
lib/public/TextProcessing/FreePromptTaskType.php
lib/public/TextProcessing/HeadlineTaskType.php
lib/public/TextProcessing/IManager.php
lib/public/TextProcessing/IProvider.php
lib/public/TextProcessing/IProviderWithExpectedRuntime.php
lib/public/TextProcessing/IProviderWithId.php
lib/public/TextProcessing/IProviderWithUserId.php
lib/public/TextProcessing/ITaskType.php
lib/public/TextProcessing/SummaryTaskType.php
lib/public/TextProcessing/Task.php
lib/public/TextProcessing/TopicsTaskType.php
lib/public/TextToImage/Events/AbstractTextToImageEvent.php
lib/public/TextToImage/Events/TaskFailedEvent.php
lib/public/TextToImage/Events/TaskSuccessfulEvent.php
lib/public/TextToImage/Exception/TaskFailureException.php
lib/public/TextToImage/Exception/TaskNotFoundException.php
lib/public/TextToImage/Exception/TextToImageException.php
lib/public/TextToImage/IManager.php
lib/public/TextToImage/IProvider.php
lib/public/TextToImage/IProviderWithUserId.php
lib/public/TextToImage/Task.php
lib/public/Translation/CouldNotTranslateException.php
lib/public/Translation/IDetectLanguageProvider.php
lib/public/Translation/ITranslationManager.php
lib/public/Translation/ITranslationProvider.php
lib/public/Translation/ITranslationProviderWithId.php
lib/public/Translation/ITranslationProviderWithUserId.php
lib/public/Translation/LanguageTuple.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

IAppManager.php

Line Element Reason
251 IAppManager::getDefaultAppForUser()

Use @see \OCP\INavigationManager::getDefaultEntryIdForUser() instead

261 IAppManager::getDefaultApps()

Use @see \OCP\INavigationManager::getDefaultEntryIds() instead

272 IAppManager::setDefaultApps()

Use @see \OCP\INavigationManager::setDefaultEntryIds() instead

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
273 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()

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

IJobList.php

Line Element Reason
88 IJobList::getJobs()

Use getJobsIterator instead to avoid duplicated job objects

Job.php

Line Element Reason
45 Job::execute()

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

QueuedJob.php

Line Element Reason
28 QueuedJob::execute()

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

TimedJob.php

Line Element Reason
74 TimedJob::execute()

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
23 IManager::registerBackend()

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

33 IManager::unregisterBackend()
40 IManager::getBackends()
48 IManager::getBackend()
56 IManager::clear()

IManager.php

Line Element Reason
23 IManager::registerBackend()

use \OC\AppFramework\Bootstrap::registerCalendarRoomBackend

33 IManager::unregisterBackend()
40 IManager::getBackends()
48 IManager::getBackend()
56 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

ICommentsEventHandler.php

Line Element Reason
14 ICommentsEventHandler

Register a listener for the CommentsEvent through the IEventDispatcher

20 ICommentsEventHandler::handle()

Register a listener for the CommentsEvent through the IEventDispatcher

ICommentsManager.php

Line Element Reason
115 ICommentsManager::getForObjectSince()
  • Use getCommentsWithVerbForObjectSinceComment instead
205 ICommentsManager::getNumberOfCommentsForObjectSinceComment()
  • Use getNumberOfCommentsWithVerbsForObjectSinceComment instead
255 ICommentsManager::getNumberOfUnreadCommentsForFolder()

use getNumberOfUnreadCommentsForObjects instead

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
141 IQueryBuilder::getState()

This function is going to be removed with the next Doctrine/DBAL update and we can not fix this in our wrapper.

159 IQueryBuilder::execute()

Use executeQuery or executeStatement

851 IQueryBuilder::getQueryPart()

This function is going to be removed with the next Doctrine/DBAL update and we can not fix this in our wrapper. Please track the details you need, outside the object.

861 IQueryBuilder::getQueryParts()

This function is going to be removed with the next Doctrine/DBAL update and we can not fix this in our wrapper. Please track the details you need, outside the object.

873 IQueryBuilder::resetQueryParts()

This function is going to be removed with the next Doctrine/DBAL update and we can not fix this in our wrapper. Please create a new IQueryBuilder instead.

885 IQueryBuilder::resetQueryPart()

This function is going to be removed with the next Doctrine/DBAL update and we can not fix this in our wrapper. Please create a new IQueryBuilder instead.

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

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
48 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
102 IDBConnection::executeUpdate()

use executeStatement

129 IDBConnection::lastInsertId()

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

146 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
232 IDBConnection::getError()

doesn't return anything meaningful

241 IDBConnection::errorCode()

doesn't return anything anymore

250 IDBConnection::errorInfo()

doesn't return anything anymore

285 IDBConnection::getDatabasePlatform()

Please use self::getDatabaseProvider() and compare to self::PLATFORM_* constants

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

IPreview.php

Line Element Reason
46 IPreview::registerProvider()

Register your provider via the IRegistrationContext when booting the app

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::getLogFactory()

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

335 IServerContainer::getRouter()

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

344 IServerContainer::getCertificateManager()

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

353 IServerContainer::getHTTPClientService()

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

362 IServerContainer::getEventLogger()

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

373 IServerContainer::getQueryLogger()

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

382 IServerContainer::getTempManager()

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

391 IServerContainer::getAppManager()

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

400 IServerContainer::getWebRoot()

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

407 IServerContainer::getMountProviderCollection()

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

416 IServerContainer::getIniWrapper()

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

422 IServerContainer::getCommandBus()

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

431 IServerContainer::getMailer()

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

440 IServerContainer::getLockingProvider()

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

447 IServerContainer::getMountManager()

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

456 IServerContainer::getMimeTypeDetector()

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

465 IServerContainer::getMimeTypeLoader()

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

474 IServerContainer::getNotificationManager()

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

481 IServerContainer::getCommentsManager()

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

491 IServerContainer::getSystemTagManager()

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

501 IServerContainer::getSystemTagObjectMapper()

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

510 IServerContainer::getShareManager()

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

517 IServerContainer::getContentSecurityPolicyManager()

Use the AddContentSecurityPolicyEvent

524 IServerContainer::getDateTimeZone()

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

531 IServerContainer::getDateTimeFormatter()

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

538 IServerContainer::getCloudIdManager()

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

545 IServerContainer::getGlobalScaleConfig()

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

552 IServerContainer::getCloudFederationFactory()

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

559 IServerContainer::getCloudFederationProviderManager()

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

566 IServerContainer::getRemoteApiFactory()

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

573 IServerContainer::getRemoteInstanceFactory()

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

580 IServerContainer::getStorageFactory()

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

IUser.php

Line Element Reason
223 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
29 BeforePreviewFetchedEvent::$width

passing null is deprecated *

31 BeforePreviewFetchedEvent::$height

passing null is deprecated *

33 BeforePreviewFetchedEvent::$crop

passing null is deprecated *

35 BeforePreviewFetchedEvent::$mode

passing null is 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

Share_Backend.php

Line Element Reason
40 Share_Backend::generateTarget()

AbstractTranscriptionEvent.php

Line Element Reason
18 AbstractTranscriptionEvent

TranscriptionFailedEvent.php

Line Element Reason
20 TranscriptionFailedEvent

TranscriptionSuccessfulEvent.php

Line Element Reason
20 TranscriptionSuccessfulEvent

ISpeechToTextManager.php

Line Element Reason
22 ISpeechToTextManager

ISpeechToTextProvider.php

Line Element Reason
20 ISpeechToTextProvider

ISpeechToTextProviderWithId.php

Line Element Reason
13 ISpeechToTextProviderWithId

ISpeechToTextProviderWithUserId.php

Line Element Reason
17 ISpeechToTextProviderWithUserId

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

AbstractTextProcessingEvent.php

Line Element Reason
18 AbstractTextProcessingEvent

TaskFailedEvent.php

Line Element Reason
15 TaskFailedEvent

TaskSuccessfulEvent.php

Line Element Reason
13 TaskSuccessfulEvent

TaskFailureException.php

Line Element Reason
14 TaskFailureException

FreePromptTaskType.php

Line Element Reason
20 FreePromptTaskType

HeadlineTaskType.php

Line Element Reason
20 HeadlineTaskType

IManager.php

Line Element Reason
25 IManager

IProvider.php

Line Element Reason
22 IProvider

IProviderWithExpectedRuntime.php

Line Element Reason
20 IProviderWithExpectedRuntime

IProviderWithId.php

Line Element Reason
18 IProviderWithId

IProviderWithUserId.php

Line Element Reason
20 IProviderWithUserId

ITaskType.php

Line Element Reason
18 ITaskType

SummaryTaskType.php

Line Element Reason
20 SummaryTaskType

Task.php

Line Element Reason
18 Task

TopicsTaskType.php

Line Element Reason
20 TopicsTaskType

AbstractTextToImageEvent.php

Line Element Reason
19 AbstractTextToImageEvent

TaskFailedEvent.php

Line Element Reason
18 TaskFailedEvent

TaskSuccessfulEvent.php

Line Element Reason
16 TaskSuccessfulEvent

TaskFailureException.php

Line Element Reason
14 TaskFailureException

TaskNotFoundException.php

Line Element Reason
14 TaskNotFoundException

TextToImageException.php

Line Element Reason
14 TextToImageException

IManager.php

Line Element Reason
25 IManager

IProvider.php

Line Element Reason
20 IProvider

IProviderWithUserId.php

Line Element Reason
14 IProviderWithUserId

Task.php

Line Element Reason
25 Task

CouldNotTranslateException.php

Line Element Reason
16 CouldNotTranslateException

IDetectLanguageProvider.php

Line Element Reason
17 IDetectLanguageProvider

ITranslationManager.php

Line Element Reason
20 ITranslationManager

ITranslationProvider.php

Line Element Reason
19 ITranslationProvider

ITranslationProviderWithId.php

Line Element Reason
17 ITranslationProviderWithId

ITranslationProviderWithUserId.php

Line Element Reason
17 ITranslationProviderWithUserId

LanguageTuple.php

Line Element Reason
19 LanguageTuple

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
40 Util::getVersion()

Use \OCP\ServerVersion::getVersion

72 Util::getChannel()

Use \OCP\ServerVersion::getChannel

83 Util::isSharingDisabledForUser()

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

366 Util::connectHook()

use \OCP\EventDispatcher\IEventDispatcher::addListener

381 Util::emitHook()

use \OCP\EventDispatcher\IEventDispatcher::dispatchTypedEvent

456 Util::recursiveArraySearch()

IRuleMatcher.php

Line Element Reason
28 IRuleMatcher::getMatchingOperations()

Search results