IFileCheck
extends
IEntityCheck
in
Interface IFileCheck
Tags
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
setFileInfo()
public
setFileInfo(IStorage $storage, string $path[, bool $isDir = false ]) : void
Parameters
- $storage : IStorage
- $path : string
- $isDir : bool = false