Nextcloud PHP API (master)

ICollection

Tags
since
16.0.0

Table of Contents

Methods

addResource()  : void
Adds a resource to a collection
canAccess()  : bool
Can a user/guest access the collection
getId()  : int
getName()  : string
getResources()  : array<string|int, 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

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

        
On this page

Search results