ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.EvaluationGUIRequest.php
Go to the documentation of this file.
1<?php
2
20
22
27{
28 use BaseGUIRequest;
29
30 protected array $params;
31
32 public function __construct(
33 \ILIAS\HTTP\Services $http,
35 ?array $get = null,
36 ?array $post = null
37 ) {
38 $this->initRequest(
39 $http,
41 $get,
42 $post
43 );
44 }
45
46 public function getShowTable(): bool
47 {
48 $vw = $this->str("vw");
49 return $vw === "" || is_int(strpos($vw, "t"));
50 }
51
52 public function getShowChart(): bool
53 {
54 $vw = $this->str("vw");
55 return $vw === "" || is_int(strpos($vw, "c"));
56 }
57
58 public function getVW(): string
59 {
60 return $this->str("vw");
61 }
62
63 public function getShowAbsolute(): bool
64 {
65 $cp = $this->str("cp");
66 return $cp === "" || is_int(strpos($cp, "a"));
67 }
68
69 public function getShowPercentage(): bool
70 {
71 $cp = $this->str("cp");
72 return $cp === "" || is_int(strpos($cp, "p"));
73 }
74
75 public function getCP(): string
76 {
77 return $this->str("cp");
78 }
79
80 public function getAppraiseeId(): int
81 {
82 return $this->int("appr_id");
83 }
84
85 public function getRaterId(): string
86 {
87 return $this->str("rater_id");
88 }
89
90 public function getRefId(): int
91 {
92 return $this->int("ref_id");
93 }
94
95 public function getCompEvalMode(): string
96 {
97 return $this->str("comp_eval_mode");
98 }
99
100 public function getSurveyCode(): string
101 {
102 return $this->str("surveycode");
103 }
104
105 public function getExportLabel(): string
106 {
107 return $this->str("export_label");
108 }
109
110 public function getExportFormat(): string
111 {
112 return $this->str("export_format");
113 }
114
115 public function getExportCmd(): string
116 {
117 return $this->str("export_cmd");
118 }
119
120 public function getPrintSelection(): string
121 {
122 return $this->str("print_selection");
123 }
124
125 public function getQuestionIds(): array
126 {
127 return $this->intArray("qids");
128 }
129
130 public function getActiveIds(): array
131 {
132 return $this->intArray("active_ids");
133 }
134}
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
trait BaseGUIRequest
Base gui request wrapper.
__construct(\ILIAS\HTTP\Services $http, \ILIAS\Refinery\Factory $refinery, ?array $get=null, ?array $post=null)
$http
Definition: deliver.php:30
$post
Definition: ltitoken.php:46
initRequest(HTTP\Services $http, Refinery\Factory $refinery, ?array $passed_query_params=null, ?array $passed_post_data=null)
Query params and post data parameters are used for testing.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.