ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Public Member Functions | |
__construct (array $frame) | |
getFile ($shortened=false) | |
getLine () | |
getClass () | |
getFunction () | |
getArgs () | |
getFileContents () | |
Returns the full contents of the file for this frame, if it's known. More... | |
addComment ($comment, $context='global') | |
Adds a comment to this frame, that can be received and used by other handlers. More... | |
getComments ($filter=null) | |
Returns all comments for this frame. More... | |
getRawFrame () | |
Returns the array containing the raw frame data from which this Frame object was built. More... | |
getFileLines ($start=0, $length=null) | |
serialize () | |
Implements the Serializable interface, with special steps to also save the existing comments. More... | |
unserialize ($serializedFrame) | |
Unserializes the frame data, while also preserving any existing comment data. More... | |
equals (Frame $frame) | |
Compares Frame against one another. More... | |
Protected Attributes | |
$frame | |
$fileContentsCache | |
$comments = array() | |
Whoops\Exception\Frame::__construct | ( | array | $frame | ) |
array[] |
Definition at line 32 of file Frame.php.
References Whoops\Exception\Frame\$frame.
Whoops\Exception\Frame::addComment | ( | $comment, | |
$context = 'global' |
|||
) |
Adds a comment to this frame, that can be received and used by other handlers.
For example, the PrettyPage handler can attach these comments under the code for each frame.
An interesting use for this would be, for example, code analysis & annotations.
string | $comment | |
string | $context | Optional string identifying the origin of the comment |
Definition at line 137 of file Frame.php.
References $comment.
Whoops\Exception\Frame::equals | ( | Frame | $frame | ) |
Compares Frame against one another.
Frame | $frame |
Definition at line 262 of file Frame.php.
References Whoops\Exception\Frame\getFile(), and Whoops\Exception\Frame\getLine().
Whoops\Exception\Frame::getArgs | ( | ) |
Definition at line 95 of file Frame.php.
Referenced by Whoops\Handler\PlainTextHandler\getFrameArgsOutput().
Whoops\Exception\Frame::getClass | ( | ) |
Whoops\Exception\Frame::getComments | ( | $filter = null | ) |
Returns all comments for this frame.
Optionally allows a filter to only retrieve comments from a specific context.
string | $filter |
Definition at line 153 of file Frame.php.
References Whoops\Exception\Frame\$comments.
Whoops\Exception\Frame::getFile | ( | $shortened = false | ) |
bool | $shortened |
Definition at line 41 of file Frame.php.
References $file.
Referenced by Whoops\Exception\Frame\equals(), and Whoops\Exception\Frame\getFileContents().
Whoops\Exception\Frame::getFileContents | ( | ) |
Returns the full contents of the file for this frame, if it's known.
Definition at line 105 of file Frame.php.
References Whoops\Exception\Frame\$fileContentsCache, and Whoops\Exception\Frame\getFile().
Referenced by Whoops\Exception\Frame\getFileLines().
Whoops\Exception\Frame::getFileLines | ( | $start = 0 , |
|
$length = null |
|||
) |
Definition at line 195 of file Frame.php.
References Whoops\Exception\Frame\getFileContents().
Whoops\Exception\Frame::getFunction | ( | ) |
Whoops\Exception\Frame::getLine | ( | ) |
Definition at line 71 of file Frame.php.
Referenced by Whoops\Exception\Frame\equals().
Whoops\Exception\Frame::getRawFrame | ( | ) |
Returns the array containing the raw frame data from which this Frame object was built.
Definition at line 172 of file Frame.php.
References Whoops\Exception\Frame\$frame.
Whoops\Exception\Frame::serialize | ( | ) |
Implements the Serializable interface, with special steps to also save the existing comments.
Definition at line 228 of file Frame.php.
References Whoops\Exception\Frame\$comments, and Whoops\Exception\Frame\$frame.
Whoops\Exception\Frame::unserialize | ( | $serializedFrame | ) |
Unserializes the frame data, while also preserving any existing comment data.
string | $serializedFrame |
Definition at line 245 of file Frame.php.
References Whoops\Exception\Frame\$frame.
|
protected |
Definition at line 27 of file Frame.php.
Referenced by Whoops\Exception\Frame\getComments(), and Whoops\Exception\Frame\serialize().
|
protected |
Definition at line 22 of file Frame.php.
Referenced by Whoops\Exception\Frame\getFileContents().
|
protected |
Definition at line 17 of file Frame.php.
Referenced by Whoops\Exception\Frame\__construct(), Whoops\Exception\Frame\getRawFrame(), Whoops\Exception\Frame\serialize(), and Whoops\Exception\Frame\unserialize().