ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 
24 
25 final class ilDelegatingHandler extends Handler
26 {
30  private $error_handling;
31 
33  {
34  $this->error_handling = $error_handling;
35  }
36 
45  public function handle()
46  {
47  if (defined("IL_INITIAL_WD")) {
48  chdir(IL_INITIAL_WD);
49  }
50  $handler = $this->error_handling->getHandler();
51  $handler->setRun($this->getRun());
52  $handler->setException($this->getException());
53  $handler->setInspector($this->getInspector());
54  $handler->handle();
55  }
56 }
handle()
Last missing method from HandlerInterface.
__construct(ilErrorHandling $error_handling)
const IL_INITIAL_WD
Definition: error.php:4
Abstract implementation of a Handler.
Definition: Handler.php:15
$handler