Debug: ezcDebugHtmlFormatter
[ ]
[ Example stylesheet ]
[ ]
[ ]
[ ]
[ ]
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
Returns an HTML formatted representation of the given $stackTrace.
Iterates through the given $stackTrace and returns an HTML formatted string representation.
Parameters
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: Tue, 27 May 2008