ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.StandardGUIRequest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Style\Content;
22
26
28{
30
31 public function __construct(
34 ?array $passed_query_params = null,
35 ?array $passed_post_data = null
36 ) {
37 $this->initRequest(
38 $http,
40 $passed_query_params,
41 $passed_post_data
42 );
43 }
44
45 public function getRefId(): int
46 {
47 return $this->int("ref_id");
48 }
49
50 public function getObjId(): int
51 {
52 return $this->int("obj_id");
53 }
54
55 public function getId(): int
56 {
57 return $this->int("id");
58 }
59
60 public function getIds(): array
61 {
62 return $this->intArray("id");
63 }
64
65 public function getToStyleId(): int
66 {
67 return $this->int("to_style");
68 }
69
70 public function getFromStyleId(): int
71 {
72 return $this->int("from_style");
73 }
74
75 public function getCatId(): int
76 {
77 return $this->int("cat");
78 }
79
80 public function getStyleType(): string
81 {
82 return $this->str("style_type");
83 }
84
85 public function getTempType(): string
86 {
87 return $this->str("temp_type");
88 }
89
90 public function getAdminMode(): string
91 {
92 return $this->str("admin_mode");
93 }
94
95 public function getColorName(): string
96 {
97 return $this->str("c_name");
98 }
99
100 public function getMediaQueryId(): int
101 {
102 return $this->int("mq_id");
103 }
104
105 public function getMediaQueryIds(): array
106 {
107 return $this->intArray("mq_id");
108 }
109
110 public function getTemplateId(): int
111 {
112 return $this->int("t_id");
113 }
114
115 public function getTemplateIds(): array
116 {
117 return $this->intArray("tid");
118 }
119
120 public function getFile(): string
121 {
122 return $this->str("file");
123 }
124
125 public function getFiles(): array
126 {
127 $files = $this->strArray("file");
128 if (count($files) == 0) {
129 if ($this->str("file") != "") {
130 $files[] = $this->str("file");
131 }
132 }
133 return $files;
134 }
135
136 public function getCharacteristics(): array
137 {
138 return $this->strArray("char");
139 }
140
141 public function getCharacteristic(): string
142 {
143 return $this->str("char");
144 }
145
146 public function getTag(): string
147 {
148 return $this->str("tag");
149 }
150
151 public function getAllCharacteristics(): array
152 {
153 return $this->strArray("all_chars");
154 }
155
156 public function getHidden(): array
157 {
158 return $this->strArray("hide");
159 }
160
161 public function getOrder(): array
162 {
163 return $this->strArray("order");
164 }
165
166 public function getTitles(): array
167 {
168 return $this->strArray("title");
169 }
170
171 public function getConflictAction(): array
172 {
173 return $this->strArray("conflict_action");
174 }
175
176 public function getSelectedStandard($style_id): int
177 {
178 return $this->int("std_" . $style_id);
179 }
180
181 public function getColors(): array
182 {
183 return $this->strArray("color");
184 }
185}
Builds data types.
Definition: Factory.php:36
Class Services.
Definition: Services.php:38
trait BaseGUIRequest
Base gui request wrapper.
__construct(Services $http, Factory $refinery, ?array $passed_query_params=null, ?array $passed_post_data=null)
$http
Definition: deliver.php:30
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.