Nextcloud PHP API (stable19)

IProvider

Tags
since
16.0.0

Table of Contents

canAccessResource()  : bool
Can a user/guest access the collection
getResourceRichObject()  : array
Get the rich object data of a resource
getType()  : string
Get the resource type of the provider

Methods

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

getResourceRichObject()

Get the rich object data of a resource

public getResourceRichObject(IResource $resource) : array
Parameters
$resource : IResource
Tags
since
16.0.0
Return values
array

getType()

Get the resource type of the provider

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

Search results