ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
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  {
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 ?>