Mock
in package
implements
BackendInterface
Interfaces, Classes and Traits
- BackendInterface
- Propertystorage backend interface.
Table of Contents
- $data : mixed
- delete() : mixed
- This method is called after a node is deleted.
- move() : mixed
- This method is called after a successful MOVE.
- propFind() : mixed
- Fetches properties for a path.
- propPatch() : mixed
- Updates properties for a path.
Properties
$data
public
mixed
$data
= []
Methods
delete()
This method is called after a node is deleted.
public
delete(string $path) : mixed
This allows a backend to clean up all associated properties.
Parameters
- $path : string
Return values
mixed —move()
This method is called after a successful MOVE.
public
move(string $source, string $destination) : mixed
This should be used to migrate all properties from one path to another. Note that entire collections may be moved, so ensure that all properties for children are also moved along.
Parameters
- $source : string
- $destination : string
Return values
mixed —propFind()
Fetches properties for a path.
public
propFind(string $path, PropFind $propFind) : mixed
This method received a PropFind object, which contains all the information about the properties that need to be fetched.
Usually you would just want to call 'get404Properties' on this object, as this will give you the exact list of properties that need to be fetched, and haven't yet.
Parameters
- $path : string
- $propFind : PropFind
Return values
mixed —propPatch()
Updates properties for a path.
public
propPatch(string $path, PropPatch $propPatch) : mixed
This method received a PropPatch object, which contains all the information about the update.
Usually you would want to call 'handleRemaining' on this object, to get; a list of all properties that need to be stored.
Parameters
- $path : string
- $propPatch : PropPatch