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

Fonctions membres publiques

 __construct (&$subject, $config)
 
 onAfterDispatch ()
 
 onAfterRespond ()
 
 mysqlDisconnectHandler (&$db)
 
 logger (JLogEntry $entry)
 

Fonctions membres publiques statiques

static addDisplayCallback ($name, $callable)
 
static removeDisplayCallback ($name)
 

Fonctions membres protégées

 display ($item, array $errors=array())
 
 displayCallback ($name, $callable)
 
 displaySession ($key='', $session=null, $id=0)
 
 displayErrors ()
 
 displayProfileInformation ()
 
 displayMemoryUsage ()
 
 displayQueries ()
 
 renderBars (&$bars, $class='', $id=null)
 
 tableToHtml ($table, &$hasWarnings)
 
 displayLanguageFilesInError ()
 
 displayLanguageFilesLoaded ()
 
 displayUntranslatedStrings ()
 
 highlightQuery ($query)
 
 renderBacktrace ($error)
 
 formatLink ($file, $line='')
 
 displayLogs ()
 
 renderCallStack (array $callStack=array())
 
 prettyPrintJSON ($json='')
 
 writeToFile ()
 

Attributs protégés

 $linkFormat = ''
 
 $app
 
 $db
 

Fonctions membres privées

 isAuthorisedDisplayDebug ()
 

Attributs privés

 $debugLang = false
 
 $logEntries = array()
 
 $sqlShowProfiles = array()
 
 $sqlShowProfileEach = array()
 
 $explains = array()
 
 $totalQueries = 0
 

Attributs privés statiques

static $displayCallbacks = array()
 

Description détaillée

Joomla! Debug plugin.

Depuis
1.5

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( $subject,
  $config 
)

Constructor.

Paramètres
object&$subjectThe object to observe.
array$configAn optional associative array of configuration settings.
Depuis
1.5

Références $config, $db, $mode, $subject, JLoader\getDeprecatedAliases(), et JDEBUG.

Documentation des fonctions membres

◆ addDisplayCallback()

static addDisplayCallback (   $name,
  $callable 
)
static

Add a display callback to be rendered with the debug console.

Paramètres
string$nameThe name of the callable, this is used to generate the section title.
callable$callableThe callback function to be added.
Renvoie
boolean
Depuis
3.7.0
Exceptions
InvalidArgumentException

Références $name.

◆ display()

display (   $item,
array  $errors = array() 
)
protected

General display method.

Paramètres
string$itemThe item to display.
array$errorsErrors occurred during execution.
Renvoie
string
Depuis
2.5

Références $class, $html, $item, $js, $style, et $title.

◆ displayCallback()

displayCallback (   $name,
  $callable 
)
protected

Display method for callback functions.

Paramètres
string$nameThe name of the callable.
callable$callableThe callable function.
Renvoie
string
Depuis
3.7.0

Références $class, $html, $js, $name, $style, et $title.

◆ displayErrors()

displayErrors ( )
protected

Display errors.

Renvoie
string
Depuis
2.5

Références $html, $info, et JError\getError().

◆ displayLanguageFilesInError()

displayLanguageFilesInError ( )
protected

Displays errors in language files.

Renvoie
string
Depuis
2.5

Références $file, et $html.

◆ displayLanguageFilesLoaded()

displayLanguageFilesLoaded ( )
protected

Display loaded language files.

Renvoie
string
Depuis
2.5

Références $file, $files, et $html.

◆ displayLogs()

displayLogs ( )
protected

Display log messages.

Renvoie
string
Depuis
3.1

Références $count.

◆ displayMemoryUsage()

displayMemoryUsage ( )
protected

Display memory usage.

Renvoie
string
Depuis
2.5

◆ displayProfileInformation()

displayProfileInformation ( )
protected

Display profile information.

Renvoie
string
Depuis
2.5

Références $db, $html, $labelClass, elseif, et null.

◆ displayQueries()

displayQueries ( )
protected

Display logged queries.

Renvoie
string
Depuis
2.5

Références $db, $html, $id, $info, $labelClass, $list, $query, $startTime, $text, $title, elseif, ENT_COMPAT, htmlspecialchars, null, et width.

◆ displaySession()

displaySession (   $key = '',
  $session = null,
  $id = 0 
)
protected

Display session information.

Called recursively.

Paramètres
string$keyA session key.
mixed$sessionThe session array, initially null.
integer$idUsed to identify the DIV for the JavaScript toggling code.
Renvoie
string
Depuis
2.5

Références $display, $html, $id, $js, $key, et $style.

◆ displayUntranslatedStrings()

displayUntranslatedStrings ( )
protected

Display untranslated language strings.

Renvoie
string
Depuis
2.5

Références $file, $html, $info, $key, et $parts.

◆ formatLink()

formatLink (   $file,
  $line = '' 
)
protected

Replaces the Joomla! root with "JROOT" to improve readability. Formats a link with a special value xdebug.file_link_format from the php.ini file.

Paramètres
string$fileThe full path to the file.
string$lineThe line number.
Renvoie
string
Depuis
2.5

Références $file.

◆ highlightQuery()

highlightQuery (   $query)
protected

Simple highlight for SQL queries.

Paramètres
string$queryThe query to highlight.
Renvoie
string
Depuis
2.5

Références $query, ENT_QUOTES, et htmlspecialchars.

◆ isAuthorisedDisplayDebug()

isAuthorisedDisplayDebug ( )
private

Method to check if the current user is allowed to see the debug information or not.

Renvoie
boolean True if access is allowed.
Depuis
3.0

Références null.

◆ logger()

logger ( JLogEntry  $entry)

Store log messages so they can be displayed later. This function is passed log entries by JLogLoggerCallback.

Paramètres
JLogEntry$entryA log entry.
Renvoie
void
Depuis
3.1

◆ mysqlDisconnectHandler()

mysqlDisconnectHandler ( $db)

Disconnect handler for database to collect profiling and explain information.

Paramètres
JDatabaseDriver&$dbDatabase object.
Renvoie
void
Depuis
3.1.2

Références $db, et $query.

◆ onAfterDispatch()

onAfterDispatch ( )

Add the CSS for debug. We can't do this in the constructor because stuff breaks.

Renvoie
void
Depuis
2.5

Références JDEBUG, et null.

◆ onAfterRespond()

onAfterRespond ( )

Show the debug info.

Renvoie
void
Depuis
1.6

Références $html, $name, getDocument, JError\getErrors(), et JDEBUG.

◆ prettyPrintJSON()

prettyPrintJSON (   $json = '')
protected

Pretty print JSON with colors.

Paramètres
string$jsonThe json raw string.
Renvoie
string The json string pretty printed.
Depuis
3.5

Références json_encode.

◆ removeDisplayCallback()

static removeDisplayCallback (   $name)
static

Remove a registered display callback

Paramètres
string$nameThe name of the callable.
Renvoie
boolean
Depuis
3.7.0

Références $name.

◆ renderBacktrace()

renderBacktrace (   $error)
protected

Render the backtrace.

Stolen from JError to prevent it's removal.

Paramètres
Exception$errorThe Exception object to be rendered.
Renvoie
string Rendered backtrace.
Depuis
2.5

◆ renderBars()

renderBars ( $bars,
  $class = '',
  $id = null 
)
protected

Render the bars.

Paramètres
array&$barsArray of bar data
string$classOptional class for items
integer$idId if the bar to highlight
Renvoie
string
Depuis
3.1.2

Références $class, $html, $i, $id, ENT_COMPAT, htmlspecialchars, et null.

◆ renderCallStack()

renderCallStack ( array  $callStack = array())
protected

Renders call stack and back trace in HTML.

Paramètres
array$callStackThe call stack and back trace array.
Renvoie
string The call stack and back trace in HMTL format.
Depuis
3.5

Références $count, htmlspecialchars, et null.

◆ tableToHtml()

tableToHtml (   $table,
$hasWarnings 
)
protected

Render an HTML table based on a multi-dimensional array.

Paramètres
array$tableAn array of tabular data.
boolean&$hasWarningsChanges value to true if warnings are displayed, otherwise untouched
Renvoie
string
Depuis
3.1.2

Références $html, elseif, ENT_COMPAT, htmlspecialchars, et null.

◆ writeToFile()

writeToFile ( )
protected

Write query to the log file

Renvoie
void
Depuis
3.5

Références $app, $current, $db, $file, $id, $input, $query, et JPlatform\getLongVersion().

Documentation des champs

◆ $app

$app
protected

◆ $db

$db
protected

◆ $debugLang

$debugLang = false
private

◆ $displayCallbacks

$displayCallbacks = array()
staticprivate

◆ $explains

$explains = array()
private

◆ $linkFormat

$linkFormat = ''
protected

◆ $logEntries

$logEntries = array()
private

◆ $sqlShowProfileEach

$sqlShowProfileEach = array()
private

◆ $sqlShowProfiles

$sqlShowProfiles = array()
private

◆ $totalQueries

$totalQueries = 0
private

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