ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilRestServer.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once './Services/WebServices/Rest/lib/Slim/Slim.php';
5 include_once './Services/WebServices/Rest/classes/class.ilRestFileStorage.php';
6 
13 class ilRestServer extends Slim
14 {
15 
19  public function __construct()
20  {
21  parent::__construct();
22  }
23 
27  public function init()
28  {
29  $callback_obj = new ilRestFileStorage();
30 
31  $this->get('/fileStorage/:name',array($callback_obj,'getFile'));
32  $this->post('/fileStorage',array($callback_obj,'createFile'));
33 
34 
35  $callback_obj->deleteDeprecated();
36  }
37 
38 }
39 ?>
init()
Init server / add handlers.
__construct()
Constructor.
Create styles array
The data for the language used.
Slim rest server.
post()
Add POST route.
Definition: Slim.php:414
File storage handling.
Slim - a micro PHP 5 framework.