![]() |
Joomla CMS
3.9.25 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.9.25 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
| __construct ($options) | |
| setCaching ($enabled) | |
| getCaching () | |
| setLifeTime ($lt) | |
| contains ($id, $group=null) | |
| get ($id, $group=null) | |
| getAll () | |
| store ($data, $id, $group=null) | |
| remove ($id, $group=null) | |
| clean ($group=null, $mode='group') | |
| gc () | |
| lock ($id, $group=null, $locktime=null) | |
| unlock ($id, $group=null) | |
| & | _getStorage () |
Fonctions membres publiques statiques | |
| static | getInstance ($type='output', $options=array()) |
| static | getStores () |
| static | getWorkarounds ($data, $options=array()) |
| static | setWorkarounds ($data, $options=array()) |
| static | makeId () |
| static | getPlatformPrefix () |
| static | addIncludePath ($path='') |
Champs de données | |
| $_options | |
Attributs publics statiques | |
| static | $_handler = array() |
Joomla! Cache base object
| __construct | ( | $options | ) |
Constructor
| array | $options | Cache options |
Références $option, $options, $value, JPATH_CACHE, et Cache\setCaching().
| & _getStorage | ( | ) |
Get the cache storage handler
Références $hash.
Référencé par Cache\clean(), Cache\contains(), Cache\gc(), Cache\get(), Cache\getAll(), Cache\lock(), Cache\remove(), Cache\store(), et Cache\unlock().
|
static |
Add a directory where Cache should search for handlers. You may either pass a string or an array of directories.
| array | string | $path | A path to search. |
Références $path, et JLoader\import().
| clean | ( | $group = null, |
|
$mode = 'group' |
|||
| ) |
Clean cache for a group given a mode.
group mode : cleans all cache in the group notgroup mode : cleans all cache not in the group
| string | $group | The cache data group |
| string | $mode | The mode for cleaning cache [group|notgroup] |
Références $mode, Cache\_getStorage(), et Cache\getCaching().
| contains | ( | $id, | |
$group = null |
|||
| ) |
Check if the cache contains data stored by ID and group
| string | $id | The cache data ID |
| string | $group | The cache data group |
Références $id, Cache\_getStorage(), et Cache\getCaching().
| gc | ( | ) |
Garbage collect expired cache data
Références Cache\_getStorage(), et Cache\getCaching().
| get | ( | $id, | |
$group = null |
|||
| ) |
Get cached data by ID and group
| string | $id | The cache data ID |
| string | $group | The cache data group |
Références $id, Cache\_getStorage(), et Cache\getCaching().
| getAll | ( | ) |
Get a list of all cached data
Références Cache\_getStorage(), et Cache\getCaching().
| getCaching | ( | ) |
Get caching state
Référencé par Cache\clean(), Cache\contains(), Cache\gc(), Cache\get(), Cache\getAll(), Cache\lock(), Cache\remove(), Cache\store(), et Cache\unlock().
|
static |
Returns a reference to a cache adapter object, always creating it
| string | $type | The cache object type to instantiate |
| array | $options | The array of options |
Références $options, $type, et CacheController\getInstance().
Référencé par PlgSystemActionLogs\clearCacheGroups(), et Factory\getCache().
|
static |
Set a prefix cache key if device calls for separate caching
Référencé par MemcacheStorage\_getCacheId(), MemcachedStorage\_getCacheId(), et CacheStorage\_getCacheId().
|
static |
|
static |
Perform workarounds on retrieved cached data
| string | $data | Cached data |
| array | $options | Array of options |
Références $app, $data, $document, $name, $options, elseif, getDocument, et null.
Référencé par ViewController\get(), PageController\get(), CallbackController\get(), et HtmlDocument\getBuffer().
Set lock flag on cached item
| string | $id | The cache data ID |
| string | $group | The cache data group |
| string | $locktime | The default locktime for locking the cache. |
Références $id, Cache\_getStorage(), et Cache\getCaching().
|
static |
Create a safe ID for cached data from URL parameters
Références $app, $key, $param, $type, $value, et null.
Référencé par ViewController\_makeId(), et PageController\_makeId().
| remove | ( | $id, | |
$group = null |
|||
| ) |
Remove a cached data entry by ID and group
| string | $id | The cache data ID |
| string | $group | The cache data group |
Références $id, Cache\_getStorage(), et Cache\getCaching().
| setCaching | ( | $enabled | ) |
Set caching enabled state
| boolean | $enabled | True to enable caching |
Références $enabled.
Référencé par Cache\__construct().
| setLifeTime | ( | $lt | ) |
|
static |
Create workarounds for data to be cached
| string | $data | Cached data |
| array | $options | Array of options |
Références $app, $data, $document, $now, $options, $type, $value, et getDocument.
Référencé par ViewController\get(), CallbackController\get(), HtmlDocument\getBuffer(), et PageController\store().
| store | ( | $data, | |
| $id, | |||
$group = null |
|||
| ) |
Store the cached data by ID and group
| mixed | $data | The data to store |
| string | $id | The cache data ID |
| string | $group | The cache data group |
Références $data, $id, Cache\_getStorage(), et Cache\getCaching().
| unlock | ( | $id, | |
$group = null |
|||
| ) |
Unset lock flag on cached item
| string | $id | The cache data ID |
| string | $group | The cache data group |
Références $id, Cache\_getStorage(), et Cache\getCaching().
|
static |
| $_options |