Nextcloud PHP API (master)

IManager extends IProvider

Tags
since
16.0.0

Table of Contents

Methods

canAccessCollection()  : bool
Can a user/guest access the collection
canAccessResource()  : bool
Can a user/guest access the collection
createResource()  : IResource
getCollection()  : ICollection
getCollectionForUser()  : ICollection
getResourceForUser()  : IResource
getResourceRichObject()  : array<string|int, mixed>
Get the rich object data of a resource
getType()  : string
Get the resource type of the provider
invalidateAccessCacheForProvider()  : void
invalidateAccessCacheForProviderByUser()  : void
invalidateAccessCacheForResource()  : void
invalidateAccessCacheForResourceByUser()  : void
invalidateAccessCacheForUser()  : void
newCollection()  : ICollection
registerResourceProvider()  : void

Methods

canAccessCollection()

Can a user/guest access the collection

public canAccessCollection(ICollection $collection, IUser|null $user) : bool
Parameters
$collection : ICollection
$user : IUser|null
Tags
since
16.0.0
Return values
bool

canAccessResource()

Can a user/guest access the collection

public canAccessResource(IResource $resource, IUser|null $user) : bool
Parameters
$resource : IResource
$user : IUser|null
Tags
since
16.0.0
Return values
bool

createResource()

public createResource(string $type, string $id) : IResource
Parameters
$type : string
$id : string
Tags
since
16.0.0
Return values
IResource

getResourceRichObject()

Get the rich object data of a resource

public getResourceRichObject(IResource $resource) : array<string|int, mixed>
Parameters
$resource : IResource
Tags
since
16.0.0
Return values
array<string|int, mixed>

getType()

Get the resource type of the provider

public getType() : string
Tags
since
16.0.0
Return values
string

invalidateAccessCacheForProvider()

public invalidateAccessCacheForProvider(IProvider $provider) : void
Parameters
$provider : IProvider
Tags
since
16.0.0

invalidateAccessCacheForProviderByUser()

public invalidateAccessCacheForProviderByUser(IProvider $provider, IUser|null $user) : void
Parameters
$provider : IProvider
$user : IUser|null
Tags
since
16.0.0

invalidateAccessCacheForResource()

public invalidateAccessCacheForResource(IResource $resource) : void
Parameters
$resource : IResource
Tags
since
16.0.0

invalidateAccessCacheForResourceByUser()

public invalidateAccessCacheForResourceByUser(IResource $resource, IUser|null $user) : void
Parameters
$resource : IResource
$user : IUser|null
Tags
since
16.0.0

invalidateAccessCacheForUser()

public invalidateAccessCacheForUser(IUser|null $user) : void
Parameters
$user : IUser|null
Tags
since
16.0.0

registerResourceProvider()

public registerResourceProvider(string $provider) : void

Use IProviderManager::registerResourceProvider instead

Parameters
$provider : string
Tags
since
16.0.0

        
On this page

Search results