ILIAS  trunk Revision v11.0_alpha-1753-gb21ca8c4367
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
WikiGUIRequest.php
Go to the documentation of this file.
1 <?php
2 
19 namespace ILIAS\Wiki;
20 
22 
24 {
26 
27  public function __construct(
30  ?array $passed_query_params = null,
31  ?array $passed_post_data = null
32  ) {
33  $this->initRequest(
34  $http,
35  $refinery,
36  $passed_query_params,
37  $passed_post_data
38  );
39  }
40 
41  public function getRefId(): int
42  {
43  return $this->int("ref_id");
44  }
45 
46  public function getOldNr(): int
47  {
48  return $this->int("old_nr");
49  }
50 
51  public function getUserId(): int
52  {
53  return $this->int("user");
54  }
55 
56  public function getWikiPageId(): int
57  {
58  return $this->int("wpg_id");
59  }
60 
62  public function getWikiPageIds(): array
63  {
64  return $this->intArray("obj_id");
65  }
66 
67  public function getNotification(): int
68  {
69  return $this->int("ntf");
70  }
71 
72  public function getAssignmentId(): int
73  {
74  return $this->int("ass");
75  }
76 
77  public function getWithComments(): bool
78  {
79  return $this->int("with_comments");
80  }
81 
82  public function getPage(): string
83  {
84  return (string) $this->raw("page");
85  }
86 
87  public function getFromPage(): string
88  {
89  return (string) $this->raw("from_page");
90  }
91 
92  public function getNewType(): string
93  {
94  return $this->str("new_type");
95  }
96 
97  public function getSearchString(): string
98  {
99  return $this->str("srcstring");
100  }
101 
102  public function getSearchTerm(): string
103  {
104  return trim($this->str("search_term"));
105  }
106 
107  public function getTerm(): string
108  {
109  return trim($this->str("term"));
110  }
111 
113  public function getUserIds(): array
114  {
115  return $this->intArray("user_id");
116  }
117 
119  public function getMarks(): array
120  {
121  return $this->strArray("mark");
122  }
123 
125  public function getComments(): array
126  {
127  return $this->strArray("lcomment");
128  }
129 
131  public function getStatus(): array
132  {
133  return $this->strArray("status");
134  }
135 
136  public function getImportantPageId(): int
137  {
138  return $this->int("imp_page_id");
139  }
140 
142  public function getImportantPageIds(): array
143  {
144  return $this->intArray("imp_page_id");
145  }
146 
148  public function getPrintOrdering(): array
149  {
150  return $this->intArray("wordr");
151  }
152 
153  public function getStyleId(): int
154  {
155  return $this->int("style_id");
156  }
157 
158  public function getImportantPageOrdering(): array
159  {
160  return $this->intArray("ord");
161  }
162 
163  public function getImportantPageIndentation(): array
164  {
165  return $this->intArray("indent");
166  }
167 
168  public function getFormat(): string
169  {
170  return trim($this->str("format"));
171  }
172 
173  public function getPageTemplateId(): int
174  {
175  $templ_id = $this->int("page_templ");
176  if ($templ_id === 0) {
177  $templ_id = $this->int("templ_page_id");
178  }
179  return $templ_id;
180  }
181 
182  public function getObjId(): int
183  {
184  return $this->int("obj_id");
185  }
186 
187  public function getSelectedPrintType(): string
188  {
189  return $this->str("sel_type");
190  }
191 
193  public function getIds(): array
194  {
195  return $this->intArray("id");
196  }
197 
199  public function getAllIds(): array
200  {
201  return $this->intArray("all_ids");
202  }
203 
205  public function getNewPages(): array
206  {
207  return $this->intArray("new_pages");
208  }
209 
211  public function getAddToPage(): array
212  {
213  return $this->intArray("add_to_page");
214  }
215 
216  public function getEmptyPageTemplate(): int
217  {
218  return $this->int("empty_page_templ");
219  }
220 
221  public function getStatFig(): int
222  {
223  return $this->int("fig");
224  }
225 
226  public function getStatTfr(): string
227  {
228  return $this->str("tfr");
229  }
230 
231  public function getStatScp(): int
232  {
233  return $this->int("scp");
234  }
235 
236  public function getTranslation(): string
237  {
238  return $this->str("transl");
239  }
240 
241 }
Interface Observer Contains several chained tasks and infos about them.
$http
Definition: deliver.php:30
trait BaseGUIRequest
Base gui request wrapper.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
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...
Builds data types.
Definition: Factory.php:35
__construct(\ILIAS\HTTP\Services $http, \ILIAS\Refinery\Factory $refinery, ?array $passed_query_params=null, ?array $passed_post_data=null)