Метод | Описание | |
---|---|---|
__construct ( string $cache_path, integer $max_age, integer $max_size ) | Set the Elgg cache. | |
__destruct ( ) | Preform cleanup and invalidates cache upon object destruction | |
clear ( ) : void | Delete all files in the directory of this file cache | |
delete ( string $key ) : boolean | Invalidate a given key. | |
load ( string $key, integer $offset, integer $limit = null ) : string | Load a key | |
save ( string $key, string $data ) : boolean | Save a key |
Метод | Описание | |
---|---|---|
createFile ( string $filename, string $rw = "rb" ) : mixed | Create and return a handle to a file. | |
sanitizeFilename ( string $key ) : string | Create a sanitised filename for the file. |
public __destruct ( ) |
protected sanitizeFilename ( string $key ) : string | ||
$key | string | The filename |
Результат | string |