ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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/classes/class.ilRestFileStorage.php';
5
11class ilRestServer extends Slim\App
12{
17 public function __construct($container = [])
18 {
19 parent::__construct($container);
20 }
21
22
26 public function init()
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 }
36}
An exception for terminatinating execution or to throw for unit testing.
File storage handling.
Slim rest server.
init()
Init server / add handlers.
__construct($container=[])
ilRestServer constructor.
$container
Definition: wac.php:13