Class plgSystemDebug

Description

Joomla! Debug plugin

  • since: 1.5

Located in /plugins/system/debug/debug.php (line 19)

JObject
   |
   --JEvent
      |
      --JPlugin
         |
         --plgSystemDebug
Variable Summary
mixed $linkFormat
Method Summary
plgSystemDebug __construct (object &$subject, array $config)
void __destruct ()
string display (string $item, [array $errors = array()])
string displayErrors ()
string displayMemoryUsage ()
string displayQueries ()
string displaySession ([string $key = ''], [mixed $session = null], [integer $id = 0])
string formatLink (string $file, [string $line = ''])
string highlightQuery (string $sql)
void onAfterDispatch ()
string renderBacktrace (integer $error)
Variables
mixed $linkFormat = '' (line 21)
  • access: protected

Inherited Variables

Inherited from JPlugin

JPlugin::$params
JPlugin::$_name
JPlugin::$_type

Inherited from JEvent

JEvent::$_subject

Inherited from JObject

JObject::$_errors
Methods
Constructor __construct (line 31)

Constructor.

  • since: 1.5
  • access: public
plgSystemDebug __construct (object &$subject, array $config)
  • object &$subject: The object to observe
  • array $config: An array that holds the plugin configuration

Redefinition of:
JPlugin::__construct()
Constructor
Destructor __destruct (line 74)

Show the debug info

  • since: 1.6
  • access: public
void __destruct ()
display (line 192)

General display method.

  • since: 2.5
  • access: protected
string display (string $item, [array $errors = array()])
  • string $item: The item to display
  • array $errors: Errors occured during execution
displayErrors (line 318)

Display errors.

  • since: 2.5
  • access: protected
string displayErrors ()
displayLanguageFilesInError (line 522)

Displays errors in language files.

  • since: 2.5
  • access: protected
string displayLanguageFilesInError ()
displayLanguageFilesLoaded (line 554)

Display loaded language files.

  • since: 2.5
  • access: protected
string displayLanguageFilesLoaded ()
displayMemoryUsage (line 373)

Display memory usage

  • since: 2.5
  • access: protected
string displayMemoryUsage ()
displayProfileInformation (line 354)

Display profile information.

  • since: 2.5
  • access: protected
string displayProfileInformation ()
displayQueries (line 394)

Display logged queries.

  • since: 2.5
  • access: protected
string displayQueries ()
displaySession (line 241)

Display session information.

Called recursive.

  • since: 2.5
  • access: protected
string displaySession ([string $key = ''], [mixed $session = null], [integer $id = 0])
  • string $key: A session key
  • mixed $session: The session array, initially null
  • integer $id: The id is used for JS toggling the div
displayUntranslatedStrings (line 588)

Display untranslated language strings.

  • since: 2.5
  • access: protected
string displayUntranslatedStrings ()
formatLink (line 792)

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.

  • since: 2.5
  • access: protected
string formatLink (string $file, [string $line = ''])
  • string $file: The full path to the file.
  • string $line: The line number.
highlightQuery (line 683)

Simple highlight for SQL queries.

  • since: 2.5
  • access: protected
string highlightQuery (string $sql)
  • string $sql: The query to highlight
onAfterDispatch (line 60)

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

  • since: 2.5
  • access: public
void onAfterDispatch ()
renderBacktrace (line 725)

Render the backtrace.

Stolen from JError to prevent it's removal.

  • return: Contents of the backtrace
  • since: 2.5
  • access: protected
string renderBacktrace (integer $error)
  • integer $error: The error

Inherited Methods

Inherited From JPlugin

JPlugin::__construct()
JPlugin::loadLanguage()

Inherited From JEvent

JEvent::__construct()
JEvent::update()

Inherited From JObject

JObject::__construct()
JObject::def()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::toString()
JObject::__toString()

Documentation generated on Mon, 25 Jun 2012 13:54:04 -0500 by phpDocumentor 1.4.4