ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
◀ ilDoc Overview
class.ilDelegatingHandler.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 2015 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
23
require_once(
"./Services/Exceptions/lib/Whoops/Run.php"
);
24
require_once(
"./Services/Exceptions/lib/Whoops/Handler/HandlerInterface.php"
);
25
require_once(
"./Services/Exceptions/lib/Whoops/Handler/Handler.php"
);
26
27
use
Whoops\Handler\Handler
;
28
29
final
class
ilDelegatingHandler
extends
Handler
{
33
private
$error_handling
;
34
35
public
function
__construct
(
ilErrorHandling
$error_handling
) {
36
$this->error_handling =
$error_handling
;
37
}
38
47
public
function
handle
() {
48
if
(defined(
"IL_INITIAL_WD"
))
49
{
50
chdir(
IL_INITIAL_WD
);
51
}
52
$handler = $this->error_handling->getHandler();
53
$handler->setRun($this->
getRun
());
54
$handler->setException($this->
getException
());
55
$handler->setInspector($this->
getInspector
());
56
$handler->handle();
57
}
58
}
59
60
?>
Whoops\Handler\Handler
Abstract implementation of a Handler.
Definition:
Handler.php:17
Whoops\Handler\Handler\getInspector
getInspector()
Definition:
Handler.php:69
Whoops\Handler\Handler\getRun
getRun()
Definition:
Handler.php:53
Whoops\Handler\Handler\getException
getException()
Definition:
Handler.php:85
ilDelegatingHandler
Definition:
class.ilDelegatingHandler.php:29
ilDelegatingHandler\__construct
__construct(ilErrorHandling $error_handling)
Definition:
class.ilDelegatingHandler.php:35
ilDelegatingHandler\$error_handling
$error_handling
Definition:
class.ilDelegatingHandler.php:33
ilDelegatingHandler\handle
handle()
Last missing method from HandlerInterface.
Definition:
class.ilDelegatingHandler.php:47
ilErrorHandling
Definition:
class.ilErrorHandling.php:46
IL_INITIAL_WD
const IL_INITIAL_WD
Definition:
error.php:5
Services
Exceptions
classes
class.ilDelegatingHandler.php
Generated on Wed Sep 24 2025 19:00:55 for ILIAS by
1.9.4 (using
Doxyfile
)