Debug: ezcDebugXdebugStacktraceIterator
[ ]
[ Example stylesheet ]
[ ]
[ ]
[ ]
[ ]
Class: ezcDebugXdebugStacktraceIterator
|
Iterator class to wrap around debug_backtrace() stack traces. [
source]
This iterator class receives a stack trace generated by debug_backtrace() and unifies it as described in the
ezcDebugStacktraceIterator interface.
Parents
ezcDebugStacktraceIterator
|
--ezcDebugXdebugStacktraceIterator
Inherited Member Variables
From
ezcDebugStacktraceIterator:
Method Summary
|
protected array |
prepare(
$stackTrace, $removeElements )
Prepares the stack trace for being stored in the iterator instance. |
|
protected array |
unifyStackElement(
$stackElement )
Unifies a stack element for being returned to the formatter. |
Inherited Methods
From
ezcDebugStacktraceIterator :
Methods
prepare
array prepare(
array
$stackTrace, int
$removeElements )
Prepares the stack trace for being stored in the iterator instance.
This method reverses the received $stackTrace, which was created by the Xdebug (
http://xdebug.org) debugging extension for PHP, to unify the stacktrace with the one created by
ezcDebugPhpStacktraceIterator. Number $removeElements are removed from the top of the $stackTrace.
Parameters
| Name |
Type |
Description |
$stackTrace |
array |
|
$removeElements |
int |
|
Redefinition of
unifyStackElement
array unifyStackElement(
mixed
$stackElement )
Unifies a stack element for being returned to the formatter.
This method ensures that an element of the stack trace conforms to the format expected by a
ezcDebugOutputFormatter. The format is defined as follows:
1. array(
2. 'file' => '<fullpathtofile>',
3. 'line' => <lineno>,
4. 'function' => '<functionname>',
5. 'class' => '<classname>',
6. 'params' => array(
7. <param_no> => '<paramvalueinfo>',
8. <param_no> => '<paramvalueinfo>',
9. <param_no> => '<paramvalueinfo>',
10. ...
11. )
12. )
Parameters
| Name |
Type |
Description |
$stackElement |
mixed |
|
Redefinition of
Last updated: Mon, 29 Jun 2009