Methods

getContactsManager()

getContactsManager() : \OCP\Contacts\IManager

The contacts manager will act as a broker between consumers for contacts information and providers which actual deliver the contact information.

Returns

\OCP\Contacts\IManager

getRequest()

getRequest() : \OCP\IRequest

The current request object holding all information about the request currently being processed is returned from this method.

In case the current execution was not initiated by a web request null is returned

Returns

\OCP\IRequest

getPreviewManager()

getPreviewManager() : \OCP\IPreview

Returns the preview manager which can create preview images for a given file

Returns

\OCP\IPreview

getTagManager()

getTagManager() : \OCP\ITagManager

Returns the tag manager which can get and set tags for different object types

Returns

\OCP\ITagManager

getRootFolder()

getRootFolder() : \OCP\Files\IRootFolder

Returns the root folder of ownCloud's data directory

Returns

\OCP\Files\IRootFolder

getUserFolder()

getUserFolder(string  $userId = null) : \OCP\Files\Folder

Returns a view to ownCloud's files folder

Parameters

string $userId

user ID

Returns

\OCP\Files\Folder

getAppFolder()

getAppFolder() : \OCP\Files\Folder

Returns an app-specific view in ownClouds data directory

Returns

\OCP\Files\Folder

getUserManager()

getUserManager() : \OCP\IUserManager

Returns a user manager

Returns

\OCP\IUserManager

getGroupManager()

getGroupManager() : \OCP\IGroupManager

Returns a group manager

Returns

\OCP\IGroupManager

getUserSession()

getUserSession() : \OCP\IUserSession

Returns the user session

Returns

\OCP\IUserSession

getNavigationManager()

getNavigationManager() : \OCP\INavigationManager

Returns the navigation manager

Returns

\OCP\INavigationManager

getConfig()

getConfig() : \OCP\IConfig

Returns the config manager

Returns

\OCP\IConfig

getCrypto()

getCrypto() : \OCP\Security\ICrypto

Returns a Crypto instance

Returns

\OCP\Security\ICrypto

getHasher()

getHasher() : \OCP\Security\IHasher

Returns a Hasher instance

Returns

\OCP\Security\IHasher

getSecureRandom()

getSecureRandom() : \OCP\Security\ISecureRandom

Returns a SecureRandom instance

Returns

\OCP\Security\ISecureRandom

getCredentialsManager()

getCredentialsManager() : \OCP\Security\ICredentialsManager

Returns a CredentialsManager instance

Returns

\OCP\Security\ICredentialsManager

getDb()

getDb() : \OCP\IDb

Returns an instance of the db facade

Returns

\OCP\IDb

getAppConfig()

getAppConfig() : \OCP\IAppConfig

Returns the app config manager

Returns

\OCP\IAppConfig

getL10N()

getL10N(string  $app, string  $lang = null) : \OCP\IL10N

get an L10N instance

Parameters

string $app

appid

string $lang

Returns

\OCP\IL10N

getEncryptionManager()

getEncryptionManager() : \OC\Encryption\Manager

Returns

\OC\Encryption\Manager

getEncryptionFilesHelper()

getEncryptionFilesHelper() : \OC\Encryption\File

Returns

\OC\Encryption\File

getURLGenerator()

getURLGenerator() : \OCP\IURLGenerator

Returns the URL generator

Returns

\OCP\IURLGenerator

getHelper()

getHelper() : \OCP\IHelper

Returns the Helper

Returns

\OCP\IHelper

getCache()

getCache() : \OCP\ICache

Returns an ICache instance

Returns

\OCP\ICache

getMemCacheFactory()

getMemCacheFactory() : \OCP\ICacheFactory

Returns an \OCP\CacheFactory instance

Returns

\OCP\ICacheFactory

getSession()

getSession() : \OCP\ISession

Returns the current session

Returns

\OCP\ISession

getActivityManager()

getActivityManager() : \OCP\Activity\IManager

Returns the activity manager

Returns

\OCP\Activity\IManager

getDatabaseConnection()

getDatabaseConnection() : \OCP\IDBConnection

Returns the current session

Returns

\OCP\IDBConnection

getAvatarManager()

getAvatarManager() : \OCP\IAvatarManager

Returns an avatar manager, used for avatar functionality

Returns

\OCP\IAvatarManager

getJobList()

getJobList() : \OCP\BackgroundJob\IJobList

Returns an job list for controlling background jobs

Returns

\OCP\BackgroundJob\IJobList

getLogger()

getLogger() : \OCP\ILogger

Returns a logger instance

Returns

\OCP\ILogger

getRouter()

getRouter() : \OCP\Route\IRouter

Returns a router for generating and matching urls

Returns

\OCP\Route\IRouter

getSearch()

getSearch() : \OCP\ISearch

Returns a search instance

Returns

\OCP\ISearch

getCertificateManager()

getCertificateManager(string  $userId = null) : \OCP\ICertificateManager

Get the certificate manager for the user

Parameters

string $userId

(optional) if not specified the current loggedin user is used, use null to get the system certificate manager

Returns

\OCP\ICertificateManager

| null if $userId is null and no user is logged in

createEventSource()

createEventSource() : \OCP\IEventSource

Create a new event source

Returns

\OCP\IEventSource

getHTTPHelper()

getHTTPHelper() : \OC\HTTPHelper

Returns an instance of the HTTP helper class

Returns

\OC\HTTPHelper

getHTTPClientService()

getHTTPClientService() : \OCP\Http\Client\IClientService

Returns an instance of the HTTP client service

Returns

\OCP\Http\Client\IClientService

getQueryLogger()

getQueryLogger() : \OCP\Diagnostics\IQueryLogger

Get the active query logger

The returned logger only logs data when debug mode is enabled

Returns

\OCP\Diagnostics\IQueryLogger

getTempManager()

getTempManager() : \OCP\ITempManager

Get the manager for temporary files and folders

Returns

\OCP\ITempManager

getAppManager()

getAppManager() : \OCP\App\IAppManager

Get the app manager

Returns

\OCP\App\IAppManager

getWebRoot()

getWebRoot() : string

Get the webroot

Returns

string

getIniWrapper()

getIniWrapper() : \bantu\IniGetWrapper\IniGetWrapper

Get the IniWrapper

Returns

\bantu\IniGetWrapper\IniGetWrapper

getMailer()

getMailer() : \OCP\Mail\IMailer

Creates a new mailer

Returns

\OCP\Mail\IMailer

getLockingProvider()

getLockingProvider() : \OCP\Lock\ILockingProvider

Get the locking provider

Returns

\OCP\Lock\ILockingProvider

getEventDispatcher()

getEventDispatcher() : \Symfony\Component\EventDispatcher\EventDispatcherInterface

Get the EventDispatcher

Returns

\Symfony\Component\EventDispatcher\EventDispatcherInterface

getNotificationManager()

getNotificationManager() : \OCP\Notification\IManager

Get the Notification Manager

Returns

\OCP\Notification\IManager

getShareManager()

getShareManager() : \OCP\Share\IManager

Returns the share manager

Returns

\OCP\Share\IManager