Properties

$autosave

$autosave : bool

Type

bool

$cache

$cache : array

Type

array

$complete

$complete : array

Type

array

Methods

__destruct()

__destruct() : mixed

Destructor.

Returns

mixed —

getAutosave()

getAutosave() : bool

Get the autosave setting.

Returns

bool —

autosave

setAutosave()

setAutosave(bool  $autosave) : mixed

Get the autosave setting.

Parameters

bool $autosave

Returns

mixed —

storeContents()

storeContents(mixed  $directory, array  $contents, mixed  $recursive = false) : array

Store the contents listing.

Parameters

mixed $directory
array $contents
mixed $recursive

Returns

array —

contents listing

updateObject()

updateObject(mixed  $path, array  $object, mixed  $autosave = false) : mixed

Update the metadata for an object.

Parameters

mixed $path

object path

array $object

object metadata

mixed $autosave

whether to trigger the autosave routine

Returns

mixed —

storeMiss()

storeMiss(mixed  $path) : mixed

Store object hit miss.

Parameters

mixed $path

Returns

mixed —

listContents()

listContents(mixed  $directory = '', mixed  $recursive = false) : array

Get the contents listing.

Parameters

mixed $directory
mixed $recursive

Returns

array —

contents listing

has()

has(mixed  $path) : mixed

{@inheritdoc}

Parameters

mixed $path

Returns

mixed —

read()

read(mixed  $path) : mixed

{@inheritdoc}

Parameters

mixed $path

Returns

mixed —

readStream()

readStream(mixed  $path) : mixed

{@inheritdoc}

Parameters

mixed $path

Returns

mixed —

rename()

rename(mixed  $path, mixed  $newpath) : mixed

Rename a file.

Parameters

mixed $path
mixed $newpath

Returns

mixed —

copy()

copy(mixed  $path, mixed  $newpath) : mixed

Copy a file.

Parameters

mixed $path
mixed $newpath

Returns

mixed —

delete()

delete(mixed  $path) : mixed

Delete an object from cache.

Parameters

mixed $path

object path

Returns

mixed —

deleteDir()

deleteDir(mixed  $dirname) : mixed

Delete all objects from from a directory.

Parameters

mixed $dirname

directory path

Returns

mixed —

getMimetype()

getMimetype(mixed  $path) : mixed

{@inheritdoc}

Parameters

mixed $path

Returns

mixed —

getSize()

getSize(mixed  $path) : mixed

{@inheritdoc}

Parameters

mixed $path

Returns

mixed —

getTimestamp()

getTimestamp(mixed  $path) : mixed

{@inheritdoc}

Parameters

mixed $path

Returns

mixed —

getVisibility()

getVisibility(mixed  $path) : mixed

{@inheritdoc}

Parameters

mixed $path

Returns

mixed —

getMetadata()

getMetadata(mixed  $path) : mixed

{@inheritdoc}

Parameters

mixed $path

Returns

mixed —

isComplete()

isComplete(mixed  $dirname, mixed  $recursive) : bool

Check whether the directory listing of a given directory is complete.

Parameters

mixed $dirname
mixed $recursive

Returns

bool —

setComplete()

setComplete(mixed  $dirname, mixed  $recursive) : mixed

Set a directory to completely listed.

Parameters

mixed $dirname
mixed $recursive

Returns

mixed —

cleanContents()

cleanContents(array  $contents) : array

Filter the contents from a listing.

Parameters

array $contents

object listing

Returns

array —

filtered contents

flush()

flush() : mixed

Flush the cache.

Returns

mixed —

autosave()

autosave() : mixed

Autosave trigger.

Returns

mixed —

getForStorage()

getForStorage() : string

Retrieve serialized cache data.

Returns

string —

serialized data

setFromStorage()

setFromStorage(string  $json) : mixed

Load from serialized cache data.

Parameters

string $json

Returns

mixed —

ensureParentDirectories()

ensureParentDirectories(string  $path) : mixed

Ensure parent directories of an object.

Parameters

string $path

object path

Returns

mixed —

save()

save() : mixed

{@inheritdoc}

Returns

mixed —

load()

load() : mixed

{@inheritdoc}

Returns

mixed —

pathIsInDirectory()

pathIsInDirectory(string  $directory, string  $path) : bool

Determines if the path is inside the directory.

Parameters

string $directory
string $path

Returns

bool —