Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
addCollector (DataCollectorInterface $collector) | |
hasCollector ($name) | |
getCollector ($name) | |
getCollectors () | |
setRequestIdGenerator (RequestIdGeneratorInterface $generator) | |
getRequestIdGenerator () | |
getCurrentRequestId () | |
setStorage (StorageInterface $storage=null) | |
getStorage () | |
isDataPersisted () | |
setHttpDriver (HttpDriverInterface $driver) | |
getHttpDriver () | |
collect () | |
getData () | |
getDataAsHeaders ($headerName='phpdebugbar', $maxHeaderLength=4096, $maxTotalHeaderLength=250000) | |
sendDataInHeaders ($useOpenHandler=null, $headerName='phpdebugbar', $maxHeaderLength=4096) | |
stackData () | |
hasStackedData () | |
getStackedData ($delete=true) | |
setStackDataSessionNamespace ($ns) | |
getStackDataSessionNamespace () | |
setStackAlwaysUseSessionStorage ($enabled=true) | |
isStackAlwaysUseSessionStorage () | |
getJavascriptRenderer ($baseUrl=null, $basePath=null) | |
offsetSet ($key, $value) | |
offsetGet ($key) | |
offsetExists ($key) | |
offsetUnset ($key) | |
Attributs publics statiques | |
static | $useOpenHandlerWhenSendingDataHeaders = false |
Fonctions membres protégées | |
initStackSession () | |
Attributs protégés | |
$collectors = array() | |
$data | |
$jsRenderer | |
$requestIdGenerator | |
$requestId | |
$storage | |
$httpDriver | |
$stackSessionNamespace = 'PHPDEBUGBAR_STACK_DATA' | |
$stackAlwaysUseSessionStorage = false | |
Main DebugBar object
Manages data collectors. DebugBar provides an array-like access to collectors by name.
$debugbar = new DebugBar(); $debugbar->addCollector(new DataCollector()); $debugbar['messages']->addMessage("foobar");
addCollector | ( | DataCollectorInterface | $collector | ) |
Adds a data collector
DataCollectorInterface | $collector |
DebugBarException |
Références $this, et DataCollectorInterface\getName().
collect | ( | ) |
getCollector | ( | $name | ) |
Returns a data collector
string | $name |
DebugBarException |
Références $name.
getCollectors | ( | ) |
Returns an array of all data collectors
getCurrentRequestId | ( | ) |
getData | ( | ) |
getDataAsHeaders | ( | $headerName = 'phpdebugbar' , |
|
$maxHeaderLength = 4096 , |
|||
$maxTotalHeaderLength = 250000 |
|||
) |
getHttpDriver | ( | ) |
Returns the HTTP driver
If no http driver where defined, a PhpHttpDriver is automatically created
Références null.
Returns a JavascriptRenderer for this instance
string | $baseUrl | |
string | $basePath |
getRequestIdGenerator | ( | ) |
Références null.
getStackDataSessionNamespace | ( | ) |
Returns the key used in the $_SESSION array
getStackedData | ( | $delete = true | ) |
getStorage | ( | ) |
hasCollector | ( | $name | ) |
hasStackedData | ( | ) |
|
protected |
Initializes the session for stacked data
DebugBarException |
Références $this.
isDataPersisted | ( | ) |
Checks if the data will be persisted
Références null.
Référencé par OpenHandler\__construct().
isStackAlwaysUseSessionStorage | ( | ) |
Checks if the session is always used to store stacked data even if a storage is enabled
offsetExists | ( | $key | ) |
Références $key.
offsetGet | ( | $key | ) |
Références $key.
offsetSet | ( | $key, | |
$value | |||
) |
offsetUnset | ( | $key | ) |
sendDataInHeaders | ( | $useOpenHandler = null , |
|
$headerName = 'phpdebugbar' , |
|||
$maxHeaderLength = 4096 |
|||
) |
setHttpDriver | ( | HttpDriverInterface | $driver | ) |
setRequestIdGenerator | ( | RequestIdGeneratorInterface | $generator | ) |
Sets the request id generator
RequestIdGeneratorInterface | $generator |
Références $this.
setStackAlwaysUseSessionStorage | ( | $enabled = true | ) |
setStackDataSessionNamespace | ( | $ns | ) |
setStorage | ( | StorageInterface | $storage = null | ) |
Sets the storage backend to use to store the collected data
StorageInterface | $storage |
Références $this.
stackData | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |