ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct () | |
Constructor. More... | |
handle () | |
contentType () | |
addDataTable ($label, array $data) | |
Adds an entry to the list of tables displayed in the template. More... | |
addDataTableCallback ($label, $callback) | |
Lazily adds an entry to the list of tables displayed in the table. More... | |
getDataTables ($label=null) | |
Returns all the extra data tables registered with this handler. More... | |
handleUnconditionally ($value=null) | |
Allows to disable all attempts to dynamically decide whether to handle or return prematurely. More... | |
addEditor ($identifier, $resolver) | |
setEditor ($editor) | |
getEditorHref ($filePath, $line) | |
Given a string file path, and an integer file line, executes the editor resolver and returns, if available, a string that may be used as the href property for that file reference. More... | |
getEditorAjax ($filePath, $line) | |
Given a boolean if the editor link should act as an Ajax request. More... | |
setPageTitle ($title) | |
getPageTitle () | |
addResourcePath ($path) | |
Adds a path to the list of paths to be searched for resources. More... | |
addCustomCss ($name) | |
Adds a custom css file to be loaded. More... | |
getResourcePaths () | |
getResourcesPath () | |
setResourcesPath ($resourcesPath) | |
getApplicationPaths () | |
Return the application paths. More... | |
setApplicationPaths ($applicationPaths) | |
Set the application paths. More... | |
setApplicationRootPath ($applicationRootPath) | |
Set the application root path. More... | |
blacklist ($superGlobalName, $key) | |
blacklist a sensitive value within one of the superglobal arrays. More... | |
Public Member Functions inherited from Whoops\Handler\Handler | |
setRun (RunInterface $run) | |
setInspector (Inspector $inspector) | |
setException ($exception) | |
Data Fields | |
textmate | |
Data Fields inherited from Whoops\Handler\Handler | |
const | DONE = 0x10 |
const | LAST_HANDLER = 0x20 |
The Handler has handled the Throwable in some way, and wishes to skip any other Handler. More... | |
const | QUIT = 0x30 |
The Handler has handled the Throwable in some way, and wishes to quit/stop execution. More... | |
Protected Member Functions | |
getExceptionFrames () | |
Get the stack trace frames of the exception that is currently being handled. More... | |
getExceptionCode () | |
Get the code of the exception that is currently being handled. More... | |
getEditor ($filePath, $line) | |
Given a boolean if the editor link should act as an Ajax request. More... | |
getResource ($resource) | |
Finds a resource, by its relative path, in all available search paths. More... | |
Protected Member Functions inherited from Whoops\Handler\Handler | |
getRun () | |
getInspector () | |
getException () | |
Protected Attributes | |
$editor | |
$editors | |
Private Member Functions | |
masked (array $superGlobal, $superGlobalName) | |
Checks all values within the given superGlobal array. More... | |
Private Attributes | |
$searchPaths = [] | |
$resourceCache = [] | |
$customCss = null | |
$extraTables = [] | |
$handleUnconditionally = false | |
$pageTitle = "Whoops! There was an error." | |
$applicationPaths | |
$blacklist | |
$templateHelper | |
Definition at line 18 of file PrettyPageHandler.php.
Whoops\Handler\PrettyPageHandler::__construct | ( | ) |
Constructor.
Definition at line 109 of file PrettyPageHandler.php.
References Whoops\Handler\PrettyPageHandler\blacklist().
Whoops\Handler\PrettyPageHandler::addCustomCss | ( | $name | ) |
Adds a custom css file to be loaded.
string | $name |
Definition at line 568 of file PrettyPageHandler.php.
References $name.
Whoops\Handler\PrettyPageHandler::addDataTable | ( | $label, | |
array | $data | ||
) |
Adds an entry to the list of tables displayed in the template.
The expected data is a simple associative array. Any nested arrays will be flattened with print_r
string | $label | |
array | $data |
Definition at line 310 of file PrettyPageHandler.php.
References $data.
Whoops\Handler\PrettyPageHandler::addDataTableCallback | ( | $label, | |
$callback | |||
) |
Lazily adds an entry to the list of tables displayed in the table.
The supplied callback argument will be called when the error is rendered, it should produce a simple associative array. Any nested arrays will be flattened with print_r.
InvalidArgumentException | If $callback is not callable |
string | $label | |
callable | $callback | Callable returning an associative array |
Definition at line 325 of file PrettyPageHandler.php.
References Whoops\Handler\Handler\$inspector, and $result.
Whoops\Handler\PrettyPageHandler::addEditor | ( | $identifier, | |
$resolver | |||
) |
Definition at line 393 of file PrettyPageHandler.php.
Whoops\Handler\PrettyPageHandler::addResourcePath | ( | $path | ) |
Adds a path to the list of paths to be searched for resources.
InvalidArgumentException | If $path is not a valid directory |
string | $path |
Definition at line 551 of file PrettyPageHandler.php.
References $path.
Referenced by Whoops\Handler\PrettyPageHandler\setResourcesPath().
Whoops\Handler\PrettyPageHandler::blacklist | ( | $superGlobalName, | |
$key | |||
) |
blacklist a sensitive value within one of the superglobal arrays.
$superGlobalName | string the name of the superglobal array, e.g. '_GET' |
$key | string the key within the superglobal |
Definition at line 679 of file PrettyPageHandler.php.
References $key.
Referenced by Whoops\Handler\PrettyPageHandler\__construct(), and Whoops\Handler\PrettyPageHandler\masked().
Whoops\Handler\PrettyPageHandler::contentType | ( | ) |
Definition at line 298 of file PrettyPageHandler.php.
Whoops\Handler\PrettyPageHandler::getApplicationPaths | ( | ) |
Return the application paths.
Definition at line 648 of file PrettyPageHandler.php.
References Whoops\Handler\PrettyPageHandler\$applicationPaths.
Referenced by Whoops\Handler\PrettyPageHandler\getExceptionFrames(), and Whoops\Handler\PrettyPageHandler\handle().
Whoops\Handler\PrettyPageHandler::getDataTables | ( | $label = null | ) |
Returns all the extra data tables registered with this handler.
Optionally accepts a 'label' parameter, to only return the data table under that label.
string | null | $label |
Definition at line 351 of file PrettyPageHandler.php.
References Whoops\Handler\PrettyPageHandler\$extraTables.
Referenced by Whoops\Handler\PrettyPageHandler\handle().
|
protected |
Given a boolean if the editor link should act as an Ajax request.
The editor must be a valid callable function/closure
string | $filePath | |
int | $line |
Definition at line 489 of file PrettyPageHandler.php.
References Whoops\Handler\PrettyPageHandler\$editor.
Referenced by Whoops\Handler\PrettyPageHandler\getEditorAjax(), and Whoops\Handler\PrettyPageHandler\getEditorHref().
Whoops\Handler\PrettyPageHandler::getEditorAjax | ( | $filePath, | |
$line | |||
) |
Given a boolean if the editor link should act as an Ajax request.
The editor must be a valid callable function/closure
UnexpectedValueException | If editor resolver does not return a boolean |
string | $filePath | |
int | $line |
Definition at line 467 of file PrettyPageHandler.php.
References Whoops\Handler\PrettyPageHandler\$editor, and Whoops\Handler\PrettyPageHandler\getEditor().
Whoops\Handler\PrettyPageHandler::getEditorHref | ( | $filePath, | |
$line | |||
) |
Given a string file path, and an integer file line, executes the editor resolver and returns, if available, a string that may be used as the href property for that file reference.
InvalidArgumentException | If editor resolver does not return a string |
string | $filePath | |
int | $line |
Definition at line 435 of file PrettyPageHandler.php.
References Whoops\Handler\PrettyPageHandler\$editor, and Whoops\Handler\PrettyPageHandler\getEditor().
|
protected |
Get the code of the exception that is currently being handled.
Definition at line 282 of file PrettyPageHandler.php.
References $code, Whoops\Handler\Handler\$exception, Whoops\Handler\Handler\getException(), and Whoops\Util\Misc\translateErrorCode().
Referenced by Whoops\Handler\PrettyPageHandler\handle().
|
protected |
Get the stack trace frames of the exception that is currently being handled.
Definition at line 259 of file PrettyPageHandler.php.
References $path, Whoops\Handler\PrettyPageHandler\getApplicationPaths(), and Whoops\Handler\Handler\getInspector().
Referenced by Whoops\Handler\PrettyPageHandler\handle().
Whoops\Handler\PrettyPageHandler::getPageTitle | ( | ) |
Definition at line 537 of file PrettyPageHandler.php.
References Whoops\Handler\PrettyPageHandler\$pageTitle.
Referenced by Whoops\Handler\PrettyPageHandler\handle().
|
protected |
Finds a resource, by its relative path, in all available search paths.
The search is performed starting at the last search path, and all the way back to the first, enabling a cascading-type system of overrides for all resources.
RuntimeException | If resource cannot be found in any of the available paths |
string | $resource |
Definition at line 592 of file PrettyPageHandler.php.
References $path.
Referenced by Whoops\Handler\PrettyPageHandler\handle().
Whoops\Handler\PrettyPageHandler::getResourcePaths | ( | ) |
Definition at line 576 of file PrettyPageHandler.php.
References Whoops\Handler\PrettyPageHandler\$searchPaths.
Referenced by Whoops\Handler\PrettyPageHandler\getResourcesPath().
Whoops\Handler\PrettyPageHandler::getResourcesPath | ( | ) |
Definition at line 624 of file PrettyPageHandler.php.
References Whoops\Handler\PrettyPageHandler\getResourcePaths().
Whoops\Handler\PrettyPageHandler::handle | ( | ) |
Implements Whoops\Handler\HandlerInterface.
Definition at line 149 of file PrettyPageHandler.php.
References $_COOKIE, $_GET, $_POST, $_SERVER, $_SESSION, $code, Whoops\Handler\PrettyPageHandler\$extraTables, Whoops\Handler\Handler\$inspector, $table, Whoops\Handler\Handler\DONE, Whoops\Exception\Formatter\formatExceptionPlain(), Whoops\Handler\PrettyPageHandler\getApplicationPaths(), Whoops\Handler\PrettyPageHandler\getDataTables(), Whoops\Handler\Handler\getException(), Whoops\Handler\PrettyPageHandler\getExceptionCode(), Whoops\Handler\PrettyPageHandler\getExceptionFrames(), Whoops\Handler\Handler\getInspector(), Whoops\Handler\PrettyPageHandler\getPageTitle(), Whoops\Handler\PrettyPageHandler\getResource(), Whoops\Handler\Handler\getRun(), Whoops\Handler\PrettyPageHandler\handleUnconditionally(), Whoops\Handler\PrettyPageHandler\masked(), and Whoops\Handler\Handler\QUIT.
Whoops\Handler\PrettyPageHandler::handleUnconditionally | ( | $value = null | ) |
Allows to disable all attempts to dynamically decide whether to handle or return prematurely.
Set this to ensure that the handler will perform no matter what.
bool | null | $value |
Definition at line 368 of file PrettyPageHandler.php.
References Whoops\Handler\PrettyPageHandler\$handleUnconditionally.
Referenced by Whoops\Handler\PrettyPageHandler\handle().
|
private |
Checks all values within the given superGlobal array.
Blacklisted values will be replaced by a equal length string cointaining only '*' characters.
We intentionally dont rely on $GLOBALS as it depends on 'auto_globals_jit' php.ini setting.
$superGlobal | array One of the superglobal arrays |
$superGlobalName | string the name of the superglobal array, e.g. '_GET' |
Definition at line 694 of file PrettyPageHandler.php.
References $key, $values, and Whoops\Handler\PrettyPageHandler\blacklist().
Referenced by Whoops\Handler\PrettyPageHandler\handle().
Whoops\Handler\PrettyPageHandler::setApplicationPaths | ( | $applicationPaths | ) |
Set the application paths.
array | $applicationPaths |
Definition at line 658 of file PrettyPageHandler.php.
References Whoops\Handler\PrettyPageHandler\$applicationPaths.
Whoops\Handler\PrettyPageHandler::setApplicationRootPath | ( | $applicationRootPath | ) |
Set the application root path.
string | $applicationRootPath |
Definition at line 668 of file PrettyPageHandler.php.
Whoops\Handler\PrettyPageHandler::setEditor | ( | $editor | ) |
Definition at line 412 of file PrettyPageHandler.php.
References Whoops\Handler\PrettyPageHandler\$editor.
Whoops\Handler\PrettyPageHandler::setPageTitle | ( | $title | ) |
string | $title |
Definition at line 529 of file PrettyPageHandler.php.
References $title.
Whoops\Handler\PrettyPageHandler::setResourcesPath | ( | $resourcesPath | ) |
string | $resourcesPath |
Definition at line 638 of file PrettyPageHandler.php.
References Whoops\Handler\PrettyPageHandler\addResourcePath().
|
private |
Definition at line 60 of file PrettyPageHandler.php.
Referenced by Whoops\Handler\PrettyPageHandler\getApplicationPaths(), and Whoops\Handler\PrettyPageHandler\setApplicationPaths().
|
private |
Definition at line 65 of file PrettyPageHandler.php.
|
private |
Definition at line 40 of file PrettyPageHandler.php.
|
protected |
Definition at line 85 of file PrettyPageHandler.php.
Referenced by Whoops\Handler\PrettyPageHandler\getEditor(), Whoops\Handler\PrettyPageHandler\getEditorAjax(), Whoops\Handler\PrettyPageHandler\getEditorHref(), and Whoops\Handler\PrettyPageHandler\setEditor().
|
protected |
Definition at line 91 of file PrettyPageHandler.php.
|
private |
Definition at line 45 of file PrettyPageHandler.php.
Referenced by Whoops\Handler\PrettyPageHandler\getDataTables(), and Whoops\Handler\PrettyPageHandler\handle().
|
private |
Definition at line 50 of file PrettyPageHandler.php.
Referenced by Whoops\Handler\PrettyPageHandler\handleUnconditionally().
|
private |
Definition at line 55 of file PrettyPageHandler.php.
Referenced by Whoops\Handler\PrettyPageHandler\getPageTitle().
|
private |
Definition at line 33 of file PrettyPageHandler.php.
|
private |
Definition at line 26 of file PrettyPageHandler.php.
Referenced by Whoops\Handler\PrettyPageHandler\getResourcePaths().
|
private |
Definition at line 104 of file PrettyPageHandler.php.
Whoops\Handler\PrettyPageHandler::textmate |
Definition at line 93 of file PrettyPageHandler.php.