\PlgSystemDebug
Joomla! Debug plugin
Synopsis
class PlgSystemDebug
extends JPlugin
{
- // members
- protected $linkFormat;
- private $debugLang;
- private $logEntries;
- private $sqlShowProfiles;
- private $sqlShowProfileEach;
- private $explains;
- private $totalQueries;
- // Inherited members from JPlugin
- public JRegistry $params;
- protected $_name;
- protected $_type;
- protected $autoloadLanguage;
- // Inherited members from JEvent
- protected $_subject;
- // Inherited members from JObject
- protected $_errors;
- // methods
- public void __construct()
- public void onAfterDispatch()
- public void __destruct()
- private boolean isAuthorisedDisplayDebug()
- protected string display()
- protected string displaySession()
- protected string displayErrors()
- protected string displayProfileInformation()
- protected string displayMemoryUsage()
- protected string displayQueries()
- protected string renderBars()
- protected string tableToHtml()
- public void mysqlDisconnectHandler()
- protected string displayLanguageFilesInError()
- protected string displayLanguageFilesLoaded()
- protected string displayUntranslatedStrings()
- protected string highlightQuery()
- protected string renderBacktrace()
- protected string formatLink()
- public void logger()
- protected string displayLogs()
- // Inherited methods from JPlugin
- public void __construct()
- public boolean loadLanguage()
- // Inherited methods from JEvent
- public void __construct()
- public mixed update()
- // Inherited methods from JObject
- public void __construct()
- public string __toString()
- public mixed def()
- public mixed get()
- public array getProperties()
- public string getError()
- public array getErrors()
- public mixed set()
- public boolean setProperties()
- public void setError()
Hierarchy
Extends
Tasks
Tasks
Line | Task |
---|---|
337 | set with js.. ? |
Members
private
- $debugLang
—
boolean
True if debug lang is on. - $explains
—
array
Holds all EXPLAIN EXTENDED for all queries - $logEntries
—
array
Holds log entries handled by the plugin. - $sqlShowProfileEach
—
array
Holds all SHOW PROFILE FOR QUERY n, indexed by n-1 - $sqlShowProfiles
—
array
Holds SHOW PROFILES of queries - $totalQueries
—
int
Holds total amount of executed queries
protected
- $_errors
—
array
An array of error messages or Exception objects. - $_name
—
string
The name of the plugin - $_subject
—
Event object to observe. - $_type
—
string
The plugin type - $autoloadLanguage
—
boolean
Affects constructor behavior. If true, language files will be loaded automatically. - $linkFormat
public
- $params
—
JRegistry
A JRegistry object holding the parameters for the plugin
Methods
private
- isAuthorisedDisplayDebug() — Method to check if the current user is allowed to see the debug information or not.
protected
- display() — General display method.
- displayErrors() — Display errors.
- displayLanguageFilesInError() — Displays errors in language files.
- displayLanguageFilesLoaded() — Display loaded language files.
- displayLogs() — Display log messages
- displayMemoryUsage() — Display memory usage
- displayProfileInformation() — Display profile information.
- displayQueries() — Display logged queries.
- displaySession() — Display session information.
- displayUntranslatedStrings() — Display untranslated language strings.
- formatLink() — Replaces the Joomla! root with "JROOT" to improve readability.
- highlightQuery() — Simple highlight for SQL queries.
- renderBacktrace() — Render the backtrace.
- renderBars()
- tableToHtml()
public
- __construct() — Constructor.
- __destruct() — Show the debug info
- logger() — Store log messages so they can be displayed later.
- mysqlDisconnectHandler() — Disconnect-handler for database to collect profiling and explain information
- onAfterDispatch() — Add the CSS for debug. We can't do this in the constructor because stuff breaks.
Inherited from JPlugin
public
- loadLanguage() — Loads the plugin language file
Inherited from JEvent
public
- update() — Method to trigger events.
Inherited from JObject
public
- __toString() — Magic method to convert the object to a string gracefully.
- def() — Sets a default value if not alreay assigned
- get() — Returns a property of the object or the default value if the property is not set.
- getError() — Get the most recent error message.
- getErrors() — Return all errors, if any.
- getProperties() — Returns an associative array of object properties.
- set() — Modifies a property of the object, creating it if it does not already exist.
- setError() — Add an error message.
- setProperties() — Set the object properties based on a named array/hash.