Path

ez components / documentation / api reference / 2008.2.1 / debug


eZ Components 2008.2.1

Debug: ezcDebugHtmlFormatter

[ Tutorial ] [ Example stylesheet ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcDebugHtmlFormatter

ezcDebugHtmlFormatter class implements a HTML debug formatter that outputs debug information nicely formated for inclusion on your web page. [source]

Implemented Interfaces

Method Summary

public ezcDebugHtmlFormatter __construct( )
Constructs a new HTML reporter.
public string formatStackTrace( $stackTrace )
Returns an HTML formatted representation of the given $stackTrace.
public string generateOutput( $writerData, $timerData )
Returns a string containing the HTML formatted output.
public string getLog( $writerData )
Returns a string containing the HTML formatted output based on $writerData.
public string getTimingsAccumulator( $timerData )
Returns a string containing the HTML formatted output based on $timerData.
public void setVerbosityColor( $verbosity, $color, $color )
Sets the output $color of debug messages of the verbosity $verbosity.

Methods

__construct

ezcDebugHtmlFormatter __construct( )
Constructs a new HTML reporter.

formatStackTrace

string formatStackTrace( ezcDebugStacktraceIterator $stackTrace )
Returns an HTML formatted representation of the given $stackTrace.
Iterates through the given $stackTrace and returns an HTML formatted string representation.

Parameters

Name Type Description
$stackTrace ezcDebugStacktraceIterator  

generateOutput

string generateOutput( $writerData, $timerData )
Returns a string containing the HTML formatted output.
Returns the data submitted in $timerData and $writerData as an HTML formatted string to be displayed in a web browser.

Parameters

Name Type Description
$writerData array  
$timerData array(ezcDebugStructure)  

getLog

string getLog( $writerData )
Returns a string containing the HTML formatted output based on $writerData.

Parameters

Name Type Description
$writerData array  

getTimingsAccumulator

string getTimingsAccumulator( $timerData )
Returns a string containing the HTML formatted output based on $timerData.

Parameters

Name Type Description
$timerData array(ezcDebugStructure)  

setVerbosityColor

void setVerbosityColor( int $verbosity, $color, string $color )
Sets the output $color of debug messages of the verbosity $verbosity.
$color must be specified in a CSS color value.

Parameters

Name Type Description
$verbosity int  
$color string  
$color  

Last updated: Mon, 09 Feb 2009