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 CallbackController
+ Graphe d'héritage de CallbackController:

Fonctions membres publiques

 call ()
 
 get ($callback, $args=array(), $id=false, $wrkarounds=false, $woptions=array())
 
- Fonctions membres publiques hérités de CacheController
 __construct ($options)
 
 __call ($name, $arguments)
 
 get ($id, $group=null)
 
 store ($data, $id, $group=null, $wrkarounds=true)
 

Fonctions membres protégées

 _makeId ($callback, $args)
 

Membres hérités additionnels

- Fonctions membres publiques statiques hérités de CacheController
static getInstance ($type='output', $options=array())
 
static addIncludePath ($path='')
 
- Champs de données hérités de CacheController
 $cache
 
 $options
 

Description détaillée

Joomla! Cache callback type object

Depuis
1.7.0

Documentation des fonctions membres

◆ _makeId()

_makeId (   $callback,
  $args 
)
protected

Generate a callback cache ID

Paramètres
callback$callbackCallback to cache
array$argsArguments to the callback method to cache
Renvoie
string MD5 Hash
Depuis
1.7.0

Références $hash.

◆ call()

call ( )

Executes a cacheable callback if not found in cache else returns cached output and result

Since arguments to this function are read with func_get_args you can pass any number of arguments to this method as long as the first argument passed is the callback definition.

The callback definition can be in several forms:

  • Standard PHP Callback array see https://www.php.net/callback [recommended]
  • Function name as a string eg. 'foo' for function foo()
  • Static method name as a string eg. 'MyClass::myMethod' for method myMethod() of class MyClass
Renvoie
mixed Result of the callback
Depuis
1.7.0
Obsolète:
4.0

◆ get()

get (   $callback,
  $args = array(),
  $id = false,
  $wrkarounds = false,
  $woptions = array() 
)

Executes a cacheable callback if not found in cache else returns cached output and result

Paramètres
mixed$callbackCallback or string shorthand for a callback
array$argsCallback arguments
mixed$idCache ID
boolean$wrkaroundsTrue to use workarounds
array$woptionsWorkaround options
Renvoie
mixed Result of the callback
Depuis
1.7.0

Références $class, $data, $document, $id, $output, elseif, getDocument, Cache\getWorkarounds(), null, et Cache\setWorkarounds().


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