ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 (Run $run)
 
 setInspector (Inspector $inspector)
 
 setException (Exception $exception)
 

Private Attributes

 $error_handling
 

Additional Inherited Members

- Data Fields inherited from Whoops\Handler\Handler
const DONE = 0x10
 Return constants that can be returned from Handler::handle to message the handler walker. More...
 
const LAST_HANDLER = 0x20
 
const QUIT = 0x30
 
- Protected Member Functions inherited from Whoops\Handler\Handler
 getRun ()
 
 getInspector ()
 
 getException ()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilDelegatingHandler::__construct ( ilErrorHandling  $error_handling)

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

References $error_handling.

35  {
36  $this->error_handling = $error_handling;
37  }

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

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

47  {
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  }
const IL_INITIAL_WD
Definition: error.php:5
+ Here is the call graph for this function:

Field Documentation

◆ $error_handling

ilDelegatingHandler::$error_handling
private

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

Referenced by __construct().


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