ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilDelegatingHandler Class Reference
+ Inheritance diagram for ilDelegatingHandler:
+ Collaboration diagram for ilDelegatingHandler:

Public Member Functions

 __construct (ilErrorHandling $error_handling)
 
 handle ()
 Last missing method from HandlerInterface. More...
 

Private Attributes

 $error_handling
 

Detailed Description

Definition at line 25 of file class.ilDelegatingHandler.php.

Constructor & Destructor Documentation

◆ __construct()

ilDelegatingHandler::__construct ( ilErrorHandling  $error_handling)

Definition at line 32 of file class.ilDelegatingHandler.php.

33 {
34 $this->error_handling = $error_handling;
35 }

References $error_handling.

Member Function Documentation

◆ handle()

ilDelegatingHandler::handle ( )

Last missing method from HandlerInterface.

Asks ilErrorHandling for the appropriate Handler and delegates it's tasks to that handler.

Returns
int|null A handler may return nothing, or a Handler::HANDLE_* constant

Definition at line 45 of file class.ilDelegatingHandler.php.

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 }
const IL_INITIAL_WD
Definition: error.php:4

References IL_INITIAL_WD.

Field Documentation

◆ $error_handling

ilDelegatingHandler::$error_handling
private

Definition at line 30 of file class.ilDelegatingHandler.php.

Referenced by __construct().


The documentation for this class was generated from the following file: