Methods |
public
|
export(string $id): bool|string
Export a checkpoint
Parameters
$id |
checkpoint ID to export @link checkpoint
|
|
#
|
public
|
fetch(string $id): array
Retrieve stored checkpoint from cache
Retrieve stored checkpoint from cache
|
#
|
public
|
import(string $data): bool
Import a saved checkpoint
Import a saved checkpoint
Parameters
$data |
checkpoint data (@see export)
|
|
#
|
public
|
batch($path, $id1, string $mode = 'unlock'): bool
Unattended file change calcuation
Unattended file change calcuation
Parameters
$mode |
whether to lock or unlock changed files
|
|
#
|
public
|
checkpoint(string $path): string
Make a filesystem checkpoint
Make a filesystem checkpoint
Note: this only works on publicly readable locations
Parameters
Returns
|
#
|
public
|
compare(string $id1, string $id2): array|bool
Compare checkpoints for changes
Compare checkpoints for changes
Parameters
$id1 |
initial checkpoint
|
$id2 |
comparison checkpoint
|
Returns
differences or false on failure
|
#
|
public
|
lockdown(string $path, array $diff, string $mode = 'unlock'): bool
Change ownership to active user + open up only to $diff files
Change ownership to active user + open up only to $diff files
Parameters
$diff |
calculated diff @see compare()
|
$mode |
lock or unlock, how to handle changed files
|
|
#
|