Nextcloud PHP API (master)

IFileCheck extends IEntityCheck

Interface IFileCheck

Tags
since
18.0.0

Table of Contents

Methods

setEntitySubject()  : void
Equips the check with a subject fitting the Entity. For instance, an entity of File will receive an instance of OCP\Files\Node, or a comment entity might get an IComment.
setFileInfo()  : void

Methods

setEntitySubject()

Equips the check with a subject fitting the Entity. For instance, an entity of File will receive an instance of OCP\Files\Node, or a comment entity might get an IComment.

public setEntitySubject(IEntity $entity, mixed $subject) : void

The implementing check must be aware of the incoming type.

If an unsupported subject is passed the implementation MAY throw an \UnexpectedValueException.

Parameters
$entity : IEntity
$subject : mixed
Tags
throws
UnexpectedValueException
since
18.0.0

setFileInfo()

public setFileInfo(IStorage $storage, string $path[, bool $isDir = false ]) : void
Parameters
$storage : IStorage
$path : string
$isDir : bool = false
Tags
since
18.0.0

        
On this page

Search results