ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 {
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.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$container
Definition: wac.php:13