|
| | __construct ($cache_path, $max_age=0, $max_size=0) |
| | Set the Elgg cache. More...
|
| |
| | save ($key, $data) |
| | Save a key. More...
|
| |
| | load ($key, $offset=0, $limit=null) |
| | Load a key. More...
|
| |
| | delete ($key) |
| | Invalidate a given key. More...
|
| |
| | clear () |
| | Delete all files in the directory of this file cache. More...
|
| |
| | __destruct () |
| | Preform cleanup and invalidates cache upon object destruction. More...
|
| |
| | __construct () |
| | Set the constructor. More...
|
| |
| | set_variable ($variable, $value) |
| | Set a cache variable. More...
|
| |
| | setVariable ($variable, $value) |
| | Set a cache variable. More...
|
| |
| | get_variable ($variable) |
| | Get variables for this cache. More...
|
| |
| | getVariable ($variable) |
| | Get variables for this cache. More...
|
| |
| | __get ($key) |
| | Class member get overloading, returning key using $this->load defaults. More...
|
| |
| | __set ($key, $value) |
| | Class member set overloading, setting a key using $this->save defaults. More...
|
| |
| | __isset ($key) |
| | Supporting isset, using $this->load() with default values. More...
|
| |
| | __unset ($key) |
| | Supporting unsetting of magic attributes. More...
|
| |
| | add ($key, $data) |
| | Add a key only if it doesn't already exist. More...
|
| |
| | offsetSet ($key, $value) |
| | Assigns a value for the specified key. More...
|
| |
| | offsetGet ($key) |
| | Get the value for specified key. More...
|
| |
| | offsetUnset ($key) |
| | Unsets a key. More...
|
| |
| | offsetExists ($key) |
| | Does key exist. More...
|
| |
Definition at line 9 of file ElggFileCache.php.
◆ __construct()
| ElggFileCache::__construct |
( |
|
$cache_path, |
|
|
|
$max_age = 0, |
|
|
|
$max_size = 0 |
|
) |
| |
Set the Elgg cache.
- Parameters
-
| string | $cache_path | The cache path. |
| int | $max_age | Maximum age in seconds, 0 if no limit. |
| int | $max_size | Maximum size of cache in seconds, 0 if no limit. |
- Exceptions
-
Definition at line 19 of file ElggFileCache.php.
◆ __destruct()
| ElggFileCache::__destruct |
( |
| ) |
|
Preform cleanup and invalidates cache upon object destruction.
- Exceptions
-
Definition at line 196 of file ElggFileCache.php.
◆ clear()
Delete all files in the directory of this file cache.
- Returns
- void
Reimplemented from ElggCache.
Definition at line 174 of file ElggFileCache.php.
◆ create_file()
| ElggFileCache::create_file |
( |
|
$filename, |
|
|
|
$rw = "rb" |
|
) |
| |
|
protected |
Create and return a handle to a file.
- Parameters
-
| string | $filename | Filename to save as |
| string | $rw | Write mode |
- Returns
- mixed
Definition at line 40 of file ElggFileCache.php.
◆ createFile()
| ElggFileCache::createFile |
( |
|
$filename, |
|
|
|
$rw = "rb" |
|
) |
| |
|
protected |
Create and return a handle to a file.
- Parameters
-
| string | $filename | Filename to save as |
| string | $rw | Write mode |
- Returns
- mixed
Definition at line 55 of file ElggFileCache.php.
◆ delete()
| ElggFileCache::delete |
( |
|
$key | ) |
|
◆ load()
| ElggFileCache::load |
( |
|
$key, |
|
|
|
$offset = 0, |
|
|
|
$limit = null |
|
) |
| |
Load a key.
- Parameters
-
| string | $key | Name |
| int | $offset | Offset |
| int | $limit | Limit |
- Returns
- string
Reimplemented from ElggCache.
Definition at line 136 of file ElggFileCache.php.
◆ sanitise_filename()
| ElggFileCache::sanitise_filename |
( |
|
$filename | ) |
|
|
protected |
Create a sanitised filename for the file.
- Parameters
-
| string | $filename | The filename |
- Returns
- string
Definition at line 87 of file ElggFileCache.php.
◆ sanitizeFilename()
| ElggFileCache::sanitizeFilename |
( |
|
$filename | ) |
|
|
protected |
Create a sanitised filename for the file.
- Parameters
-
| string | $filename | The filename |
- Returns
- string
Definition at line 101 of file ElggFileCache.php.
◆ save()
| ElggFileCache::save |
( |
|
$key, |
|
|
|
$data |
|
) |
| |
Save a key.
- Parameters
-
| string | $key | Name |
| string | $data | Value |
- Returns
- boolean
Reimplemented from ElggCache.
Definition at line 115 of file ElggFileCache.php.
The documentation for this class was generated from the following file: