Nextcloud PHP API (stable18)

IResource

Tags
since
16.0.0

Table of Contents

canAccess()  : bool
Can a user/guest access the resource
getCollections()  : \OCP\Collaboration\Resources\ICollection[]
getId()  : string
getRichObject()  : array
getType()  : string

Methods

canAccess()

Can a user/guest access the resource

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

getCollections()

public getCollections() : \OCP\Collaboration\Resources\ICollection[]
Tags
since
16.0.0
Return values
\OCP\Collaboration\Resources\ICollection[]

getId()

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

getRichObject()

public getRichObject() : array
Tags
since
16.0.0
Return values
array

getType()

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

Search results