Nextcloud PHP API (master)

IProvider

Tags
since
16.0.0

Table of Contents

Methods

canAccessResource()  : bool
Can a user/guest access the collection
getResourceRichObject()  : array<string|int, mixed>
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<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

        
On this page

Search results