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/Bootstrap/IRegistrationContext.php
lib/public/AppFramework/Controller.php
lib/public/AppFramework/Db/Entity.php
lib/public/AppFramework/Http/Attribute/IgnoreOpenAPI.php
lib/public/AppFramework/Http/RedirectToDefaultAppResponse.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/Events/AnyLoginFailedEvent.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/IJobList.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/Command/IBus.php
lib/public/Command/ICommand.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/DB/Types.php
lib/public/Defaults.php
lib/public/EventDispatcher/GenericEvent.php
lib/public/EventDispatcher/IEventDispatcher.php
lib/public/Federation/ICloudFederationProviderManager.php
lib/public/Files/Cache/ICache.php
lib/public/Files/Events/BeforeZipCreatedEvent.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/IStorage.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/IUserManager.php
lib/public/Mail/IMailer.php
lib/public/Notification/IManager.php
lib/public/OCM/ICapabilityAwareOCMProvider.php
lib/public/Preview/BeforePreviewFetchedEvent.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/IRoute.php
lib/public/Route/IRouter.php
lib/public/Security/Bruteforce/IThrottler.php
lib/public/Security/IContentSecurityPolicyManager.php
lib/public/Settings/IManager.php
lib/public/Share/IShare.php
lib/public/Share.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/ISystemTagManagerFactory.php
lib/public/SystemTag/ManagerEvent.php
lib/public/SystemTag/MapperEvent.php
lib/public/SystemTag/SystemTagsEntityEvent.php
lib/public/Template.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/User/Backend/ICountUsersBackend.php
lib/public/UserInterface.php
lib/public/Util.php

IAccount.php

Line Element Reason
54 IAccount::getProperties()

use getAllProperties()

IAccountManager.php

Line Element Reason
76 IAccountManager::PROPERTY_DISPLAYNAME_LEGACY

only added for backwards compatibility with provisioning_api UsersController::getCurrentUser

102 IAccountManager::PROPERTY_TWITTER

IAppManager.php

Line Element Reason
98 IAppManager::isInstalled()

Use either self::isEnabledForUser or self::isEnabledForAnyone

206 IAppManager::getInstalledApps()

Use either self::getEnabledApps or self::getEnabledAppsForUser

292 IAppManager::getDefaultAppForUser()

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

302 IAppManager::getDefaultApps()

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

313 IAppManager::setDefaultApps()

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

ManagerEvent.php

Line Element Reason
23 ManagerEvent::EVENT_APP_ENABLE
29 ManagerEvent::EVENT_APP_ENABLE_FOR_GROUPS
35 ManagerEvent::EVENT_APP_DISABLE
41 ManagerEvent::EVENT_APP_UPDATE

App.php

Line Element Reason
42 App::buildAppNamespace()

use IAppManager::getAppNamespace

IRegistrationContext.php

Line Element Reason
166 IRegistrationContext::registerAlternativeLogin()

Use registerAlternativeLoginProvider instead.

Controller.php

Line Element Reason
95 Controller::getResponderByHTTPHeader()

Use IRequest::getFormat instead

Entity.php

Line Element Reason
290 Entity::slugify()

IgnoreOpenAPI.php

Line Element Reason
20 IgnoreOpenAPI

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

RedirectToDefaultAppResponse.php

Line Element Reason
24 RedirectToDefaultAppResponse

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

33 RedirectToDefaultAppResponse::__construct()

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

IAppContainer.php

Line Element Reason
25 IAppContainer
32 IAppContainer::getAppName()
39 IAppContainer::getServer()
47 IAppContainer::registerMiddleWare()

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

56 IAppContainer::registerCapability()

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

QueryException.php

Line Element Reason
23 QueryException

catch \Psr\Container\ContainerExceptionInterface

IAppConfig.php

Line Element Reason
88 IAppConfig::setAppValue()

use setAppValueString()

199 IAppConfig::getAppValue()

use getAppValueString()

IControllerMethodReflector.php

Line Element Reason
32 IControllerMethodReflector::getType()

this method is only used internally

39 IControllerMethodReflector::getParameters()

this method is only used internally

50 IControllerMethodReflector::hasAnnotation()

will be obsolete with native attributes in PHP8

AnyLoginFailedEvent.php

Line Element Reason
37 AnyLoginFailedEvent::geLoginName()

Use getLoginName() instead

IRegistry.php

Line Element Reason
28 IRegistry::EVENT_PROVIDER_ENABLED
34 IRegistry::EVENT_PROVIDER_DISABLED

RegistryEvent.php

Line Element Reason
21 RegistryEvent

Use TwoFactorProviderForUserRegistered or TwoFactorProviderForUserUnregistered instead

TwoFactorProviderDisabled.php

Line Element Reason
19 TwoFactorProviderDisabled

Use \OCP\Authentication\TwoFactorAuth\TwoFactorProviderUserDeleted instead

TwoFactorProviderForUserDisabled.php

Line Element Reason
20 TwoFactorProviderForUserDisabled

Use \OCP\Authentication\TwoFactorAuth\TwoFactorProviderChallengeFailed instead

TwoFactorProviderForUserEnabled.php

Line Element Reason
20 TwoFactorProviderForUserEnabled

Use \OCP\Authentication\TwoFactorAuth\TwoFactorProviderChallengePassed instead

IJobList.php

Line Element Reason
92 IJobList::getJobs()

Use getJobsIterator instead to avoid duplicated job objects

IManager.php

Line Element Reason
60 IManager::search()

use \OCP\Calendar\IManager::searchForPrincipal

69 IManager::isEnabled()
79 IManager::registerCalendar()

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

89 IManager::unregisterCalendar()
100 IManager::register()

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

107 IManager::getCalendars()

use \OCP\Calendar\IManager::getCalendarsForPrincipal

116 IManager::clear()

IManager.php

Line Element Reason
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
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
18 AutoCompleteEvent

Use AutoCompleteFilterEvent instead

IBus.php

Line Element Reason
17 IBus

The interface is considered internal going forward and should not be implemented by apps anymore

ICommand.php

Line Element Reason
17 ICommand

The interface is considered internal going forward and should not be implemented by apps anymore

CommentsEntityEvent.php

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

CommentsEvent.php

Line Element Reason
63 CommentsEvent::getEvent()

Use instanceof CommentAddedEvent, CommentRemovedEvent, CommentUpdatedEvent or BeforeCommentUpdatedEvent instead.

27 CommentsEvent::EVENT_ADD

Use \OCP\Comments\Events\CommentAddedEvent instead.

33 CommentsEvent::EVENT_PRE_UPDATE

Use \OCP\Comments\Events\BeforeCommentUpdatedEvent instead.

39 CommentsEvent::EVENT_UPDATE

Use \OCP\Comments\Events\CommentUpdatedEvent instead.

45 CommentsEvent::EVENT_DELETE

Use \OCP\Comments\Events\CommentDeletedEvent instead.

ICommentsEventHandler.php

Line Element Reason
16 ICommentsEventHandler

Register a listener for the CommentsEvent through the IEventDispatcher

22 ICommentsEventHandler::handle()

Register a listener for the CommentsEvent through the IEventDispatcher

ICommentsManager.php

Line Element Reason
117 ICommentsManager::getForObjectSince()
  • Use getCommentsWithVerbForObjectSinceComment instead
221 ICommentsManager::getNumberOfCommentsForObjectSinceComment()
  • Use getNumberOfCommentsWithVerbsForObjectSinceComment instead
270 ICommentsManager::getNumberOfUnreadCommentsForFolder()

use getNumberOfUnreadCommentsForObjects instead

ConsoleEvent.php

Line Element Reason
23 ConsoleEvent::EVENT_RUN

IPreparedStatement.php

Line Element Reason
35 IPreparedStatement::closeCursor()

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

45 IPreparedStatement::fetch()

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

55 IPreparedStatement::fetchAll()

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

63 IPreparedStatement::fetchColumn()

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

71 IPreparedStatement::fetchOne()

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

118 IPreparedStatement::rowCount()

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

IResult.php

Line Element Reason
120 IResult::fetchColumn()

use \OCP\DB\IResult::fetchOne

IQueryBuilder.php

Line Element Reason
194 IQueryBuilder::getState()

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

886 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.

896 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.

908 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.

920 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.

51 IQueryBuilder::PARAM_DATE
  • use PARAM_DATETIME_MUTABLE instead
106 IQueryBuilder::PARAM_JSON

JSON fields can not properly be used in WHERE statements of Oracle and MySQL. It is recommended to use a simple STRING field and handle JSON within PHP

Types.php

Line Element Reason
180 Types::JSON

JSON fields can not properly be used in WHERE statements of Oracle and MySQL. It is recommended to use a simple STRING field and handle JSON within PHP

Defaults.php

Line Element Reason
116 Defaults::getHTMLName()

GenericEvent.php

Line Element Reason
30 GenericEvent

use \OCP\EventDispatcher\Event

43 GenericEvent::__construct()
55 GenericEvent::getSubject()
66 GenericEvent::getArgument()
80 GenericEvent::setArgument()
91 GenericEvent::getArguments()
101 GenericEvent::setArguments()
112 GenericEvent::hasArgument()
123 GenericEvent::getIterator()
135 GenericEvent::offsetExists()
148 GenericEvent::offsetGet()
161 GenericEvent::offsetSet()
173 GenericEvent::offsetUnset()
32 GenericEvent::$subject
35 GenericEvent::$arguments

IEventDispatcher.php

Line Element Reason
74 IEventDispatcher::dispatch()

use \OCP\EventDispatcher\IEventDispatcher::dispatchTyped

ICloudFederationProviderManager.php

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

ICache.php

Line Element Reason
221 ICache::search()

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

232 ICache::searchByMime()

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

BeforeZipCreatedEvent.php

Line Element Reason
60 BeforeZipCreatedEvent::getDirectory()

Use getFolder instead and use node API

BeforeNodeDeletedEvent.php

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

BeforeNodeRenamedEvent.php

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

ILockManager.php

Line Element Reason
30 ILockManager::registerLockProvider()

Use registerLazyLockProvider

IStorage.php

Line Element Reason
314 IStorage::getDirectDownload()

Use IStorage::getDirectDownloadById instead.

TemplateFileCreator.php

Line Element Reason
56 TemplateFileCreator::setIconClass()
32 TemplateFileCreator::$actionLabel

Files.php

Line Element Reason
19 Files
30 Files::rmdirr()

ABackend.php

Line Element Reason
25 ABackend::implementsActions()

ICreateGroupBackend.php

Line Element Reason
16 ICreateGroupBackend

Use ICreateNamedGroupBackend instead

BeforeUserRemovedEvent.php

Line Element Reason
23 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
34 BeforeUserRemovedEvent::__construct()
45 BeforeUserRemovedEvent::getGroup()
54 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
545 IAppConfig::getValues()

Use getAllValues() or searchValues()

556 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

168 IConfig::setUserValue()
  • use IUserConfig directly
181 IConfig::getUserValue()
  • use IUserConfig directly
193 IConfig::getUserValueForUsers()
  • use IUserConfig::getValuesByUsers directly
204 IConfig::getUserKeys()
  • use IUserConfig::getKeys directly
218 IConfig::getAllUserValues()
  • use IUserConfig::getAllValues directly
229 IConfig::deleteUserValue()
  • use IUserConfig::deleteUserConfig directly
238 IConfig::deleteAllUserValues()
  • use IUserConfig::deleteAllUserConfig directly
247 IConfig::deleteAppFromAllUsers()
  • use IUserConfig::deleteApp directly
260 IConfig::getUsersForUserValue()
  • use IUserConfig::searchUsersByValueString directly

IContainer.php

Line Element Reason
54 IContainer::resolve()

use self::get()

68 IContainer::query()

use self::get()

76 IContainer::registerParameter()

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

89 IContainer::registerService()

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

100 IContainer::registerAlias()

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

IDBConnection.php

Line Element Reason
116 IDBConnection::executeUpdate()

use executeStatement

143 IDBConnection::lastInsertId()

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

160 IDBConnection::insertIfNotExist()
  • use unique index and "try { $db->insert() } catch (\OCP\DB\Exception $e) { if ($e->getReason() === \OCP\DB\Exception::REASON_CONSTRAINT_VIOLATION) } }" instead, because it is more reliable and does not have the risk for deadlocks - see https://github.com/nextcloud/server/pull/12371
245 IDBConnection::getError()

doesn't return anything meaningful

254 IDBConnection::errorCode()

doesn't return anything anymore

263 IDBConnection::errorInfo()

doesn't return anything anymore

298 IDBConnection::getDatabasePlatform()

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

IInitialStateService.php

Line Element Reason
18 IInitialStateService

Use IInitialState or InitialStateProvider

33 IInitialStateService::provideInitialState()

Use IInitialState or InitialStateProvider

51 IInitialStateService::provideLazyInitialState()

Use IInitialState or InitialStateProvider

IPreview.php

Line Element Reason
49 IPreview::registerProvider()

Register your provider via the IRegistrationContext when booting the app

IServerContainer.php

Line Element Reason
25 IServerContainer
36 IServerContainer::getUserFolder()

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

47 IServerContainer::getL10N()

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

56 IServerContainer::getWebRoot()

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

IUser.php

Line Element Reason
251 IUser::setEMailAddress()

use setSystemEMailAddress() or setPrimaryEMailAddress()

IUserManager.php

Line Element Reason
113 IUserManager::search()

use searchDisplayName instead

IMailer.php

Line Element Reason
86 IMailer::validateMailAddress()

use IEmailValidator::isValid() instead

IManager.php

Line Element Reason
29 IManager::registerNotifierService()

use the IBootStrap registration context

ICapabilityAwareOCMProvider.php

Line Element Reason
18 ICapabilityAwareOCMProvider

IOCMProvider

BeforePreviewFetchedEvent.php

Line Element Reason
31 BeforePreviewFetchedEvent::$width

passing null is deprecated *

33 BeforePreviewFetchedEvent::$height

passing null is deprecated *

35 BeforePreviewFetchedEvent::$crop

passing null is deprecated *

37 BeforePreviewFetchedEvent::$mode

passing null is deprecated *

IApiCollection.php

Line Element Reason
16 IApiCollection
23 IApiCollection::getUserApi()
31 IApiCollection::getCapabilitiesApi()

IApiFactory.php

Line Element Reason
17 IApiFactory
26 IApiFactory::getApiCollection()

ICapabilitiesApi.php

Line Element Reason
14 ICapabilitiesApi
21 ICapabilitiesApi::getCapabilities()

IUserApi.php

Line Element Reason
16 IUserApi
24 IUserApi::getUser()

ICredentials.php

Line Element Reason
16 ICredentials
23 ICredentials::getUsername()
31 ICredentials::getPassword()

IInstance.php

Line Element Reason
18 IInstance
26 IInstance::getUrl()
34 IInstance::getFullUrl()
42 IInstance::getVersion()
50 IInstance::getProtocol()
60 IInstance::isActive()

IInstanceFactory.php

Line Element Reason
14 IInstanceFactory
22 IInstanceFactory::getInstance()

IUser.php

Line Element Reason
16 IUser
23 IUser::getUserId()
31 IUser::getEmail()
39 IUser::getDisplayName()
47 IUser::getPhone()
55 IUser::getAddress()
63 IUser::getWebsite()
71 IUser::getTwitter()
79 IUser::getGroups()
87 IUser::getLanguage()
95 IUser::getUsedSpace()
103 IUser::getFreeSpace()
111 IUser::getTotalSpace()
119 IUser::getQuota()

IRoute.php

Line Element Reason
42 IRoute::actionInclude()

Use a proper controller instead

77 IRoute::action()

Use a proper controller instead

IRouter.php

Line Element Reason
17 IRouter
29 IRouter::create()

IThrottler.php

Line Element Reason
73 IThrottler::getAttempts()

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

94 IThrottler::getDelay()

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

113 IThrottler::resetDelayForIP()

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

124 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
20 IContentSecurityPolicyManager

listen to the AddContentSecurityPolicyEvent to add a policy

39 IContentSecurityPolicyManager::addDefaultPolicy()

listen to the AddContentSecurityPolicyEvent to add a policy

IManager.php

Line Element Reason
20 IManager::KEY_ADMIN_SETTINGS

Use self::SETTINGS_ADMIN instead

26 IManager::KEY_ADMIN_SECTION

Use self::SETTINGS_ADMIN instead

32 IManager::KEY_PERSONAL_SETTINGS

Use self::SETTINGS_PERSONAL instead

38 IManager::KEY_PERSONAL_SECTION

Use self::SETTINGS_PERSONAL instead

IShare.php

Line Element Reason
106 IShare::TYPE_SCIENCEMESH

The app is abandonned.

Share.php

Line Element Reason
21 Share

AbstractTranscriptionEvent.php

Line Element Reason
19 AbstractTranscriptionEvent

TranscriptionFailedEvent.php

Line Element Reason
19 TranscriptionFailedEvent

TranscriptionSuccessfulEvent.php

Line Element Reason
19 TranscriptionSuccessfulEvent

ISpeechToTextManager.php

Line Element Reason
21 ISpeechToTextManager

ISpeechToTextProvider.php

Line Element Reason
19 ISpeechToTextProvider

ISpeechToTextProviderWithId.php

Line Element Reason
14 ISpeechToTextProviderWithId

ISpeechToTextProviderWithUserId.php

Line Element Reason
16 ISpeechToTextProviderWithUserId

IRegistry.php

Line Element Reason
20 IRegistry

used internally only

30 IRegistry::register()

use IRegistrationContext::registerCrashReporter

42 IRegistry::delegateBreadcrumb()

used internally only

53 IRegistry::delegateReport()

used internally only

66 IRegistry::delegateMessage()

used internally only

75 IRegistry::hasReporters()

use internally only

IRegistry.php

Line Element Reason
29 IRegistry::register()

use registerService

ISystemTagManagerFactory.php

Line Element Reason
22 ISystemTagManagerFactory

use Dependency Injection instead, or \OCP\Server::get

30 ISystemTagManagerFactory::__construct()
39 ISystemTagManagerFactory::getManager()
49 ISystemTagManagerFactory::getObjectMapper()

ManagerEvent.php

Line Element Reason
24 ManagerEvent::EVENT_CREATE
30 ManagerEvent::EVENT_UPDATE
36 ManagerEvent::EVENT_DELETE

MapperEvent.php

Line Element Reason
25 MapperEvent::EVENT_ASSIGN
31 MapperEvent::EVENT_UNASSIGN

SystemTagsEntityEvent.php

Line Element Reason
25 SystemTagsEntityEvent::EVENT_ENTITY

Listen to the typed event instead

Template.php

Line Element Reason
25 Template

Use \OCP\Template\ITemplateManager instead

37 Template::image_path()

Use the function directly instead

49 Template::mimetype_icon()

Use the function directly instead

61 Template::preview_icon()

Use the function directly instead

75 Template::publicPreview_icon()

Use the function directly instead

88 Template::human_file_size()

Use \OCP\Util::humanFileSize instead

102 Template::relative_modified_date()

Use the function directly instead

116 Template::html_select_options()

Use the function directly instead

AbstractTextProcessingEvent.php

Line Element Reason
19 AbstractTextProcessingEvent

TaskFailedEvent.php

Line Element Reason
16 TaskFailedEvent

TaskSuccessfulEvent.php

Line Element Reason
14 TaskSuccessfulEvent

TaskFailureException.php

Line Element Reason
15 TaskFailureException

FreePromptTaskType.php

Line Element Reason
20 FreePromptTaskType

HeadlineTaskType.php

Line Element Reason
20 HeadlineTaskType

IManager.php

Line Element Reason
24 IManager

IProvider.php

Line Element Reason
21 IProvider

IProviderWithExpectedRuntime.php

Line Element Reason
19 IProviderWithExpectedRuntime

IProviderWithId.php

Line Element Reason
18 IProviderWithId

IProviderWithUserId.php

Line Element Reason
19 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
24 IManager

IProvider.php

Line Element Reason
20 IProvider

IProviderWithUserId.php

Line Element Reason
15 IProviderWithUserId

Task.php

Line Element Reason
25 Task

CouldNotTranslateException.php

Line Element Reason
16 CouldNotTranslateException

IDetectLanguageProvider.php

Line Element Reason
16 IDetectLanguageProvider

ITranslationManager.php

Line Element Reason
19 ITranslationManager

ITranslationProvider.php

Line Element Reason
18 ITranslationProvider

ITranslationProviderWithId.php

Line Element Reason
16 ITranslationProviderWithId

ITranslationProviderWithUserId.php

Line Element Reason
16 ITranslationProviderWithUserId

LanguageTuple.php

Line Element Reason
18 LanguageTuple

ABackend.php

Line Element Reason
27 ABackend::implementsActions()

ICountUsersBackend.php

Line Element Reason
16 ICountUsersBackend

use and implement ILimitAwareCountUsersBackend instead.

UserInterface.php

Line Element Reason
29 UserInterface::implementsActions()

Switch to the interfaces from OCP\User\Backend

Util.php

Line Element Reason
42 Util::getVersion()

Use \OCP\ServerVersion::getVersion

65 Util::setChannel()

Use \OCP\ServerVersion::setChannel

75 Util::getChannel()

Use \OCP\ServerVersion::getChannel

247 Util::linkToAbsolute()

Use IUrlGenerator::getAbsoluteUrl and IUrlGenerator::linkTo

262 Util::linkToRemote()

Use IURlGenerator::linkToRemote

413 Util::connectHook()

use \OCP\EventDispatcher\IEventDispatcher::addListener

428 Util::emitHook()

use \OCP\EventDispatcher\IEventDispatcher::dispatchTypedEvent

437 Util::callRegister()

directly use CsrfTokenManager instead

564 Util::isPublicLinkPasswordRequired()

use OCP\Share\IManager's shareApiLinkEnforcePassword directly

575 Util::isDefaultExpireDateEnforced()

use OCP\Share\IManager's shareApiLinkDefaultExpireDateEnforced directly

Search results