Joomla! Debug plugin.
- Depuis
- 1.5
◆ __construct()
__construct |
( |
& |
$subject, |
|
|
|
$config |
|
) |
| |
◆ addDisplayCallback()
static addDisplayCallback |
( |
|
$name, |
|
|
|
$callable |
|
) |
| |
|
static |
Add a display callback to be rendered with the debug console.
- Paramètres
-
string | $name | The name of the callable, this is used to generate the section title. |
callable | $callable | The callback function to be added. |
- Renvoie
- boolean
- Depuis
- 3.7.0
- Exceptions
-
Références $name.
◆ display()
display |
( |
|
$item, |
|
|
array |
$errors = array() |
|
) |
| |
|
protected |
General display method.
- Paramètres
-
string | $item | The item to display. |
array | $errors | Errors 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 | $name | The name of the callable. |
callable | $callable | The callable function. |
- Renvoie
- string
- Depuis
- 3.7.0
Références $class, $html, $js, $name, $style, et $title.
◆ displayErrors()
◆ 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()
Display log messages.
- Renvoie
- string
- Depuis
- 3.1
Références $count.
◆ displayMemoryUsage()
Display memory usage.
- Renvoie
- string
- Depuis
- 2.5
◆ displayProfileInformation()
displayProfileInformation |
( |
| ) |
|
|
protected |
◆ displayQueries()
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 | $key | A session key. |
mixed | $session | The session array, initially null. |
integer | $id | Used 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 |
◆ 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 | $file | The full path to the file. |
string | $line | The line number. |
- Renvoie
- string
- Depuis
- 2.5
Références $file.
◆ highlightQuery()
◆ 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 | $entry | A log entry. |
- Renvoie
- void
- Depuis
- 3.1
◆ mysqlDisconnectHandler()
mysqlDisconnectHandler |
( |
& |
$db | ) |
|
Disconnect handler for database to collect profiling and explain information.
- Paramètres
-
- Renvoie
- void
- Depuis
- 3.1.2
Références $db, et $query.
◆ 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()
◆ prettyPrintJSON()
prettyPrintJSON |
( |
|
$json = '' | ) |
|
|
protected |
Pretty print JSON with colors.
- Paramètres
-
string | $json | The 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 | $name | The 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 | $error | The 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 | &$bars | Array of bar data |
string | $class | Optional class for items |
integer | $id | Id 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 | $callStack | The 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 | $table | An array of tabular data. |
boolean | &$hasWarnings | Changes 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()
◆ $app
◆ $db
◆ $debugLang
◆ $displayCallbacks
$displayCallbacks = array() |
|
staticprivate |
◆ $explains
◆ $linkFormat
◆ $logEntries
◆ $sqlShowProfileEach
$sqlShowProfileEach = array() |
|
private |
◆ $sqlShowProfiles
$sqlShowProfiles = array() |
|
private |
◆ $totalQueries
La documentation de cette classe a été générée à partir du fichier suivant :