ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilExerciseInternalFactory.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
11{
15 protected $request;
16
20 protected $ui;
21
25 public function __construct()
26 {
27 }
28
33 public function service()
34 {
35 return new ilExerciseInternalService();
36 }
37
43 public function request($query_params = null, $post_data = null)
44 {
45 if ($query_params === null) {
46 $query_params = $_GET;
47 }
48 if ($post_data === null) {
49 $post_data = $_POST;
50 }
51 return new ilExerciseUIRequest($query_params, $post_data);
52 }
53
59 public function ui($query_params = null, $post_data = null)
60 {
61 return new ilExerciseUI($this->service(), $this->request($query_params, $post_data));
62 }
63}
$_GET["client_id"]
$_POST["username"]
An exception for terminatinating execution or to throw for unit testing.
service()
Internal business logic stuff.
request($query_params=null, $post_data=null)
Get request.
ui($query_params=null, $post_data=null)
Get ui.
Exercise UI frontend presentation service class.