Nextcloud PHP API (stable19)

IUpdater

Update the cache and propagate changes

Tags
since
9.0.0

Table of Contents

getPropagator()  : IPropagator
Get the propagator for etags and mtime for the view the updater works on
propagate()  : mixed
Propagate etag and mtime changes for the parent folders of $path up to the root of the filesystem
remove()  : mixed
Remove $path from the cache and update the size, etag and mtime of the parent folders
renameFromStorage()  : mixed
Rename a file or folder in the cache and update the size, etag and mtime of the parent folders
update()  : mixed
Update the cache for $path and update the size, etag and mtime of the parent folders

Methods

getPropagator()

Get the propagator for etags and mtime for the view the updater works on

public getPropagator() : IPropagator
Tags
since
9.0.0
Return values
IPropagator

propagate()

Propagate etag and mtime changes for the parent folders of $path up to the root of the filesystem

public propagate(string $path[, int|null $time = null ]) : mixed
Parameters
$path : string

the path of the file to propagate the changes for

$time : int|null = null

the timestamp to set as mtime for the parent folders, if left out the current time is used

Tags
since
9.0.0
Return values
mixed

remove()

Remove $path from the cache and update the size, etag and mtime of the parent folders

public remove(string $path) : mixed
Parameters
$path : string
Tags
since
9.0.0
Return values
mixed

renameFromStorage()

Rename a file or folder in the cache and update the size, etag and mtime of the parent folders

public renameFromStorage(IStorage $sourceStorage, string $source, string $target) : mixed
Parameters
$sourceStorage : IStorage
$source : string
$target : string
Tags
since
9.0.0
Return values
mixed

update()

Update the cache for $path and update the size, etag and mtime of the parent folders

public update(string $path[, int $time = null ]) : mixed
Parameters
$path : string
$time : int = null
Tags
since
9.0.0
Return values
mixed

Search results