ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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...
 
- Public Member Functions inherited from Whoops\Handler\Handler
 setRun (RunInterface $run)
 
 setInspector (Inspector $inspector)
 
 setException ($exception)
 

Private Attributes

 $error_handling
 

Additional Inherited Members

- 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 inherited from Whoops\Handler\Handler
 getRun ()
 
 getInspector ()
 
 getException ()
 

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.

References $error_handling.

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

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

Implements Whoops\Handler\HandlerInterface.

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

References $handler, Whoops\Handler\Handler\getException(), Whoops\Handler\Handler\getInspector(), Whoops\Handler\Handler\getRun(), and IL_INITIAL_WD.

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
$handler
+ Here is the call graph for this function:

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: