ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilRestServer Class Reference

Slim rest server. More...

+ Inheritance diagram for ilRestServer:
+ Collaboration diagram for ilRestServer:

Public Member Functions

 __construct ($container=[])
 ilRestServer constructor. More...
 
 init ()
 Init server / add handlers. More...
 

Detailed Description

Slim rest server.

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e

Definition at line 11 of file class.ilRestServer.php.

Constructor & Destructor Documentation

◆ __construct()

ilRestServer::__construct (   $container = [])

ilRestServer constructor.

Parameters
array$container

Definition at line 17 of file class.ilRestServer.php.

References $container, and ILIAS\GlobalScreen\Provider\__construct().

18  {
20  }
$container
Definition: wac.php:13
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ init()

ilRestServer::init ( )

Init server / add handlers.

Definition at line 26 of file class.ilRestServer.php.

27  {
28  $callback_obj = new ilRestFileStorage();
29 
30  $this->get('/fileStorage', array($callback_obj,'getFile'));
31  $this->post('/fileStorage', array($callback_obj,'createFile'));
32 
33 
34  $callback_obj->deleteDeprecated();
35  }
File storage handling.

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