This class contains functions for the file cache in CONTENIDO.
package | Core |
---|---|
subpackage | Cache |
__construct(array $options) : void
array
array with options for the cache (optional, default: empty array)
generateFileName(string $id, string $group) : string
string
cache ID
string
cache group
string
filenamegenerateID($variables) : string
string
generated IDget(string $id, string $group) : bool | string
If not cached, false is returned.
string
cache ID
string
cache group
bool
string
content or falsegetDestination(string $id, string $group) : string
string
cache ID
string
cache group
string
full filenameremove(string $id, string $group) : bool
string
cache ID
string
cache group
bool
success statesave(string $data, string $id, string $group) : bool
string
data to save
string
cache ID
string
cache group
bool
success statesetOptions(array $options) : void
Validates incoming options and sets the default of the missing options.
array
array with option
_validateDirectory() : void
\cInvalidArgumentException |
---|