ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 31 of file class.ilDelegatingHandler.php.

References $error_handling.

31  {
32  $this->error_handling = $error_handling;
33  }

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 43 of file class.ilDelegatingHandler.php.

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

43  {
44  if (defined("IL_INITIAL_WD"))
45  {
46  chdir(IL_INITIAL_WD);
47  }
48  $handler = $this->error_handling->getHandler();
49  $handler->setRun($this->getRun());
50  $handler->setException($this->getException());
51  $handler->setInspector($this->getInspector());
52  $handler->handle();
53  }
const IL_INITIAL_WD
Definition: error.php:5
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27
+ Here is the call graph for this function:

Field Documentation

◆ $error_handling

ilDelegatingHandler::$error_handling
private

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

Referenced by __construct().


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