ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
4include_once './Services/WebServices/Rest/lib/Slim/Slim.php';
5include_once './Services/WebServices/Rest/classes/class.ilRestFileStorage.php';
6
13class 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?>
post()
Add POST route.
Definition: Slim.php:414
File storage handling.
Slim rest server.
init()
Init server / add handlers.
__construct()
Constructor.
Slim - a micro PHP 5 framework.