Nextcloud PHP API (stable19)

ICollection

Tags
since
16.0.0

Table of Contents

addResource()  : void
Adds a resource to a collection
canAccess()  : bool
Can a user/guest access the collection
getId()  : int
getName()  : string
getResources()  : \OCP\Collaboration\Resources\IResource[]
removeResource()  : void
Removes a resource from a collection
setName()  : void

Methods

canAccess()

Can a user/guest access the collection

public canAccess(IUser|null $user) : bool
Parameters
$user : IUser|null
Tags
since
16.0.0
Return values
bool

getId()

public getId() : int
Tags
since
16.0.0
Return values
int

getName()

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

getResources()

public getResources() : \OCP\Collaboration\Resources\IResource[]
Tags
since
16.0.0
Return values
\OCP\Collaboration\Resources\IResource[]

removeResource()

Removes a resource from a collection

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

setName()

public setName(string $name) : void
Parameters
$name : string
Tags
since
16.0.0

Search results