ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Public Member Functions | |
__construct () | |
Constructor. More... | |
handle () | |
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... | |
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) | |
![]() | |
setRun (Run $run) | |
setInspector (Inspector $inspector) | |
setException (Exception $exception) | |
Protected Member Functions | |
getResource ($resource) | |
Finds a resource, by its relative path, in all available search paths. More... | |
![]() | |
getRun () | |
getInspector () | |
getException () | |
Protected Attributes | |
$editor | |
$editors | |
Private Attributes | |
$searchPaths = array() | |
$resourceCache = array() | |
$customCss = null | |
$extraTables = array() | |
$handleUnconditionally = false | |
$pageTitle = "Whoops! There was an error." | |
Additional Inherited Members | |
![]() | |
const | DONE = 0x10 |
Return constants that can be returned from Handler::handle to message the handler walker. More... | |
const | LAST_HANDLER = 0x20 |
const | QUIT = 0x30 |
Definition at line 15 of file PrettyPageHandler.php.
Whoops\Handler\PrettyPageHandler::__construct | ( | ) |
Constructor.
Definition at line 80 of file PrettyPageHandler.php.
References $file.
Whoops\Handler\PrettyPageHandler::addCustomCss | ( | $name | ) |
Adds a custom css file to be loaded.
string | $name |
Definition at line 393 of file PrettyPageHandler.php.
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 196 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 211 of file PrettyPageHandler.php.
References $result.
Whoops\Handler\PrettyPageHandler::addEditor | ( | $identifier, | |
$resolver | |||
) |
Definition at line 279 of file PrettyPageHandler.php.
Whoops\Handler\PrettyPageHandler::addResourcePath | ( | $path | ) |
Adds a path to the list of paths to be searched for resources.
InvalidArgumnetException | If $path is not a valid directory |
string | $path |
Definition at line 376 of file PrettyPageHandler.php.
References $path.
Referenced by Whoops\Handler\PrettyPageHandler\setResourcesPath().
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 237 of file PrettyPageHandler.php.
References Whoops\Handler\PrettyPageHandler\$extraTables.
Referenced by Whoops\Handler\PrettyPageHandler\handle().
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 321 of file PrettyPageHandler.php.
References Whoops\Handler\PrettyPageHandler\$editor.
Whoops\Handler\PrettyPageHandler::getPageTitle | ( | ) |
Definition at line 362 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 417 of file PrettyPageHandler.php.
References $path.
Referenced by Whoops\Handler\PrettyPageHandler\handle().
Whoops\Handler\PrettyPageHandler::getResourcePaths | ( | ) |
Definition at line 401 of file PrettyPageHandler.php.
References Whoops\Handler\PrettyPageHandler\$searchPaths.
Referenced by Whoops\Handler\PrettyPageHandler\getResourcesPath().
Whoops\Handler\PrettyPageHandler::getResourcesPath | ( | ) |
Definition at line 449 of file PrettyPageHandler.php.
References Whoops\Handler\PrettyPageHandler\getResourcePaths().
Whoops\Handler\PrettyPageHandler::handle | ( | ) |
Implements Whoops\Handler\HandlerInterface.
Definition at line 96 of file PrettyPageHandler.php.
References $_COOKIE, $_GET, $_POST, $_SERVER, $_SESSION, $code, Whoops\Handler\PrettyPageHandler\$extraTables, Whoops\Handler\Handler\$inspector, Whoops\Handler\Handler\DONE, Whoops\Exception\Formatter\formatExceptionPlain(), Whoops\Handler\PrettyPageHandler\getDataTables(), Whoops\Handler\Handler\getInspector(), Whoops\Handler\PrettyPageHandler\getPageTitle(), Whoops\Handler\PrettyPageHandler\getResource(), Whoops\Handler\Handler\getRun(), Whoops\Handler\PrettyPageHandler\handleUnconditionally(), Whoops\Handler\Handler\QUIT, and Whoops\Util\Misc\translateErrorCode().
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 254 of file PrettyPageHandler.php.
References Whoops\Handler\PrettyPageHandler\$handleUnconditionally.
Referenced by Whoops\Handler\PrettyPageHandler\handle().
Whoops\Handler\PrettyPageHandler::setEditor | ( | $editor | ) |
Definition at line 298 of file PrettyPageHandler.php.
References Whoops\Handler\PrettyPageHandler\$editor.
Whoops\Handler\PrettyPageHandler::setPageTitle | ( | $title | ) |
string | $title |
Definition at line 354 of file PrettyPageHandler.php.
Whoops\Handler\PrettyPageHandler::setResourcesPath | ( | $resourcesPath | ) |
string | $resourcesPath |
Definition at line 463 of file PrettyPageHandler.php.
References Whoops\Handler\PrettyPageHandler\addResourcePath().
|
private |
Definition at line 37 of file PrettyPageHandler.php.
|
protected |
Definition at line 64 of file PrettyPageHandler.php.
Referenced by Whoops\Handler\PrettyPageHandler\getEditorHref(), and Whoops\Handler\PrettyPageHandler\setEditor().
|
protected |
Definition at line 70 of file PrettyPageHandler.php.
|
private |
Definition at line 42 of file PrettyPageHandler.php.
Referenced by Whoops\Handler\PrettyPageHandler\getDataTables(), and Whoops\Handler\PrettyPageHandler\handle().
|
private |
Definition at line 47 of file PrettyPageHandler.php.
Referenced by Whoops\Handler\PrettyPageHandler\handleUnconditionally().
|
private |
Definition at line 52 of file PrettyPageHandler.php.
Referenced by Whoops\Handler\PrettyPageHandler\getPageTitle().
|
private |
Definition at line 30 of file PrettyPageHandler.php.
|
private |
Definition at line 23 of file PrettyPageHandler.php.
Referenced by Whoops\Handler\PrettyPageHandler\getResourcePaths().