ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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... | |
isApplication () | |
Returns whether this frame belongs to the application or not. More... | |
setApplication ($application) | |
Mark as an frame belonging to the application. More... | |
Protected Attributes | |
$frame | |
$fileContentsCache | |
$comments = [] | |
$application | |
Whoops\Exception\Frame::__construct | ( | array | $frame | ) |
array[] |
Definition at line 37 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 144 of file Frame.php.
References $comment, and comments.
Whoops\Exception\Frame::equals | ( | Frame | $frame | ) |
Compares Frame against one another.
Frame | $frame |
Definition at line 269 of file Frame.php.
References Whoops\Exception\Frame\getFile(), and Whoops\Exception\Frame\getLine().
Whoops\Exception\Frame::getArgs | ( | ) |
Definition at line 102 of file Frame.php.
References array.
Referenced by Whoops\Util\TemplateHelper\dumpArgs(), and 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 160 of file Frame.php.
References Whoops\Exception\Frame\$comments.
Whoops\Exception\Frame::getFile | ( | $shortened = false | ) |
bool | $shortened |
Definition at line 46 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 112 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 202 of file Frame.php.
References $contents, and Whoops\Exception\Frame\getFileContents().
Whoops\Exception\Frame::getFunction | ( | ) |
Whoops\Exception\Frame::getLine | ( | ) |
Definition at line 78 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 179 of file Frame.php.
References Whoops\Exception\Frame\$frame.
Whoops\Exception\Frame::isApplication | ( | ) |
Returns whether this frame belongs to the application or not.
Definition at line 282 of file Frame.php.
References Whoops\Exception\Frame\$application.
Referenced by Whoops\Exception\FrameCollection\countIsApplication().
Whoops\Exception\Frame::serialize | ( | ) |
Implements the Serializable interface, with special steps to also save the existing comments.
Definition at line 235 of file Frame.php.
References Whoops\Exception\Frame\$comments, Whoops\Exception\Frame\$frame, and comments.
Whoops\Exception\Frame::setApplication | ( | $application | ) |
Mark as an frame belonging to the application.
boolean | $application |
Definition at line 292 of file Frame.php.
References Whoops\Exception\Frame\$application.
Whoops\Exception\Frame::unserialize | ( | $serializedFrame | ) |
Unserializes the frame data, while also preserving any existing comment data.
string | $serializedFrame |
Definition at line 252 of file Frame.php.
References Whoops\Exception\Frame\$frame, and comments.
|
protected |
Definition at line 32 of file Frame.php.
Referenced by Whoops\Exception\Frame\isApplication(), and Whoops\Exception\Frame\setApplication().
|
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().