Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (LoggerInterface $logger=null, PropelPDO $conn=null) | |
setLogQueriesToLogger ($enable=true) | |
isLogQueriesToLogger () | |
emergency ($m) | |
alert ($m) | |
crit ($m) | |
err ($m) | |
warning ($m) | |
notice ($m) | |
info ($m) | |
debug ($m) | |
log ($message, $severity=null) | |
collect () | |
getName () | |
getWidgets () | |
getAssets () | |
Fonctions membres publiques hérités de DataCollector | |
setDataFormatter (DataFormatterInterface $formater) | |
getDataFormatter () | |
getXdebugLink ($file, $line=1) | |
setVarDumper (DebugBarVarDumper $varDumper) | |
getVarDumper () | |
formatVar ($var) | |
formatDuration ($seconds) | |
formatBytes ($size, $precision=2) | |
getXdebugLinkTemplate () | |
setXdebugLinkTemplate ($xdebugLinkTemplate, $shouldUseAjax=false) | |
getXdebugShouldUseAjax () | |
getXdebugReplacements () | |
setXdebugReplacements ($xdebugReplacements) | |
setXdebugReplacement ($serverPath, $replacement) | |
Fonctions membres publiques statiques | |
static | enablePropelProfiling (PropelConfiguration $config=null) |
Fonctions membres publiques statiques hérités de DataCollector | |
static | setDefaultDataFormatter (DataFormatterInterface $formater) |
static | getDefaultDataFormatter () |
static | setDefaultVarDumper (DebugBarVarDumper $varDumper) |
static | getDefaultVarDumper () |
Fonctions membres protégées | |
convertLogLevel ($level) | |
parseAndLogSqlQuery ($message) | |
Attributs protégés | |
$logger | |
$statements = array() | |
$accumulatedTime = 0 | |
$peakMemory = 0 | |
Attributs protégés hérités de DataCollector | |
$dataFormater | |
$varDumper | |
$xdebugLinkTemplate = '' | |
$xdebugShouldUseAjax = false | |
$xdebugReplacements = array() | |
A Propel logger which acts as a data collector
Will log queries and display them using the SQLQueries widget. You can provide a LoggerInterface object to forward non-query related message to.
Example: $debugbar->addCollector(new PropelCollector($debugbar['messages'])); PropelCollector::enablePropelProfiling();
__construct | ( | LoggerInterface | $logger = null , |
PropelPDO | $conn = null |
||
) |
LoggerInterface | $logger | A logger to forward non-query log lines to |
PropelPDO | $conn | Bound this collector to a connection only |
Références PropelCollector\$logger, $this, et Psr\Log\setLogger().
alert | ( | $m | ) |
Références PropelCollector\log().
collect | ( | ) |
Called by the DebugBar when data needs to be collected
Implémente DataCollectorInterface.
Références DataCollector\formatBytes(), et DataCollector\formatDuration().
|
protected |
Converts Propel log levels to PSR log levels
int | $level |
Références LogLevel\ALERT, LogLevel\CRITICAL, LogLevel\DEBUG, LogLevel\EMERGENCY, LogLevel\ERROR, LogLevel\NOTICE, et LogLevel\WARNING.
Référencé par PropelCollector\log().
crit | ( | $m | ) |
Références PropelCollector\log().
debug | ( | $m | ) |
Références PropelCollector\log().
emergency | ( | $m | ) |
Références PropelCollector\log().
|
static |
err | ( | $m | ) |
Références PropelCollector\log().
getAssets | ( | ) |
Returns an array with the following keys:
All keys are optional.
Ideally, you should store static assets in filenames that are returned via the normal css/js keys. However, the inline asset elements are useful when integrating with 3rd-party libraries that require static assets that are only available in an inline format.
The inline content arrays require special string array keys: the caller of this function will use them to deduplicate content. This is particularly useful if multiple instances of the same asset provider are used. Inline assets from all collectors are merged together into the same array, so these content IDs effectively deduplicate the inline assets.
Implémente AssetProvider.
getName | ( | ) |
getWidgets | ( | ) |
Returns a hash where keys are control names and their values an array of options as defined in {
Implémente Renderable.
info | ( | $m | ) |
Références PropelCollector\log().
isLogQueriesToLogger | ( | ) |
log | ( | $message, | |
$severity = null |
|||
) |
Références $message, $sql, PropelCollector\convertLogLevel(), null, et PropelCollector\parseAndLogSqlQuery().
Référencé par PropelCollector\alert(), PropelCollector\crit(), PropelCollector\debug(), PropelCollector\emergency(), PropelCollector\err(), PropelCollector\info(), PropelCollector\notice(), et PropelCollector\warning().
notice | ( | $m | ) |
Références PropelCollector\log().
|
protected |
Parse a log line to extract query information
string | $message |
Références $message, $parts, $sql, elseif, DataCollector\formatBytes(), et DataCollector\formatDuration().
Référencé par PropelCollector\log().
warning | ( | $m | ) |
Références PropelCollector\log().
|
protected |
|
protected |
Référencé par PropelCollector\__construct().
|
protected |
|
protected |