Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe CacheController
+ Graphe d'héritage de CacheController:

Fonctions membres publiques

 __construct ($options)
 
 __call ($name, $arguments)
 
 get ($id, $group=null)
 
 store ($data, $id, $group=null, $wrkarounds=true)
 

Fonctions membres publiques statiques

static getInstance ($type='output', $options=array())
 
static addIncludePath ($path='')
 

Champs de données

 $cache
 
 $options
 

Description détaillée

Public cache handler

Depuis
1.7.0
Note
As of 4.0 this class will be abstract

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $options)

Constructor

Paramètres
array$optionsArray of options
Depuis
1.7.0

Références $option, $options, et $value.

Documentation des fonctions membres

◆ __call()

__call (   $name,
  $arguments 
)

Magic method to proxy CacheController method calls to Cache

Paramètres
string$nameName of the function
array$argumentsArray of arguments for the function
Renvoie
mixed
Depuis
1.7.0

Références $name.

◆ addIncludePath()

static addIncludePath (   $path = '')
static

Add a directory where Cache should search for controllers. You may either pass a string or an array of directories.

Paramètres
array | string$pathA path to search.
Renvoie
array An array with directory elements
Depuis
1.7.0

Références $path, et JLoader\import().

◆ get()

get (   $id,
  $group = null 
)

Get stored cached data by ID and group

Paramètres
string$idThe cache data ID
string$groupThe cache data group
Renvoie
mixed Boolean false on no result, cached object otherwise
Depuis
1.7.0
Obsolète:
4.0 Implement own method in subclass

Références $data, et $id.

◆ getInstance()

static getInstance (   $type = 'output',
  $options = array() 
)
static

Returns a reference to a cache adapter object, always creating it

Paramètres
string$typeThe cache object type to instantiate; default is output.
array$optionsArray of options
Renvoie
CacheController
Depuis
1.7.0
Exceptions

Références $class, $options, $path, $type, JLoader\import(), et JLoader\register().

Référencé par Cache\getInstance().

◆ store()

store (   $data,
  $id,
  $group = null,
  $wrkarounds = true 
)

Store data to cache by ID and group

Paramètres
mixed$dataThe data to store
string$idThe cache data ID
string$groupThe cache data group
boolean$wrkaroundsTrue to use wrkarounds
Renvoie
boolean True if cache stored
Depuis
1.7.0
Obsolète:
4.0 Implement own method in subclass

Références $data, et $id.

Documentation des champs

◆ $cache

$cache

◆ $options

$options

La documentation de cette classe a été générée à partir du fichier suivant :