ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\Wiki\WikiGUIRequest Class Reference
+ Collaboration diagram for ILIAS\Wiki\WikiGUIRequest:

Public Member Functions

 __construct (\ILIAS\HTTP\Services $http, \ILIAS\Refinery\Factory $refinery, ?array $passed_query_params=null, ?array $passed_post_data=null)
 
 getRefId ()
 
 getOldNr ()
 
 getUserId ()
 
 getWikiPageId ()
 
 getWikiPageIds ()
 
 getNotification ()
 
 getAssignmentId ()
 
 getWithComments ()
 
 getPage ()
 
 getFromPage ()
 
 getNewType ()
 
 getSearchString ()
 
 getSearchTerm ()
 
 getTerm ()
 
 getUserIds ()
 
 getMarks ()
 
 getComments ()
 
 getStatus ()
 
 getImportantPageId ()
 
 getImportantPageIds ()
 
 getPrintOrdering ()
 
 getStyleId ()
 
 getImportantPageOrdering ()
 
 getImportantPageIndentation ()
 
 getFormat ()
 
 getPageTemplateId ()
 
 getObjId ()
 
 getSelectedPrintType ()
 
 getIds ()
 
 getAllIds ()
 
 getNewPages ()
 
 getAddToPage ()
 
 getEmptyPageTemplate ()
 
 getStatFig ()
 
 getStatTfr ()
 
 getStatScp ()
 
 getTranslation ()
 
 getPrintPageSel ()
 

Data Fields

trait BaseGUIRequest
 Base gui request wrapper. More...
 

Detailed Description

Definition at line 23 of file WikiGUIRequest.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Wiki\WikiGUIRequest::__construct ( \ILIAS\HTTP\Services  $http,
\ILIAS\Refinery\Factory  $refinery,
?array  $passed_query_params = null,
?array  $passed_post_data = null 
)

Definition at line 27 of file WikiGUIRequest.php.

32 {
33 $this->initRequest(
34 $http,
36 $passed_query_params,
37 $passed_post_data
38 );
39 }
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.

References ILIAS\UI\examples\Layout\Page\Mail\$refinery, and ILIAS\Repository\initRequest().

+ Here is the call graph for this function:

Member Function Documentation

◆ getAddToPage()

ILIAS\Wiki\WikiGUIRequest::getAddToPage ( )
Returns
int[]

Definition at line 227 of file WikiGUIRequest.php.

227 : array
228 {
229 return $this->intArray("add_to_page");
230 }

References ILIAS\Repository\intArray().

+ Here is the call graph for this function:

◆ getAllIds()

ILIAS\Wiki\WikiGUIRequest::getAllIds ( )
Returns
int[]

Definition at line 215 of file WikiGUIRequest.php.

215 : array
216 {
217 return $this->intArray("all_ids");
218 }

References ILIAS\Repository\intArray().

+ Here is the call graph for this function:

◆ getAssignmentId()

ILIAS\Wiki\WikiGUIRequest::getAssignmentId ( )

Definition at line 72 of file WikiGUIRequest.php.

72 : int
73 {
74 return $this->int("ass");
75 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getComments()

ILIAS\Wiki\WikiGUIRequest::getComments ( )
Returns
string[]

Definition at line 125 of file WikiGUIRequest.php.

125 : array
126 {
127 return $this->strArray("lcomment");
128 }

References ILIAS\Repository\strArray().

+ Here is the call graph for this function:

◆ getEmptyPageTemplate()

ILIAS\Wiki\WikiGUIRequest::getEmptyPageTemplate ( )

Definition at line 232 of file WikiGUIRequest.php.

232 : int
233 {
234 return $this->int("empty_page_templ");
235 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getFormat()

ILIAS\Wiki\WikiGUIRequest::getFormat ( )

Definition at line 184 of file WikiGUIRequest.php.

184 : string
185 {
186 return trim($this->str("format"));
187 }

References ILIAS\Repository\str().

+ Here is the call graph for this function:

◆ getFromPage()

ILIAS\Wiki\WikiGUIRequest::getFromPage ( )

Definition at line 87 of file WikiGUIRequest.php.

87 : string
88 {
89 return (string) $this->raw("from_page");
90 }

References ILIAS\Repository\raw().

+ Here is the call graph for this function:

◆ getIds()

ILIAS\Wiki\WikiGUIRequest::getIds ( )
Returns
int[]

Definition at line 209 of file WikiGUIRequest.php.

209 : array
210 {
211 return $this->intArray("id");
212 }

References ILIAS\Repository\intArray().

+ Here is the call graph for this function:

◆ getImportantPageId()

ILIAS\Wiki\WikiGUIRequest::getImportantPageId ( )

Definition at line 136 of file WikiGUIRequest.php.

136 : int
137 {
138 return $this->int("imp_page_id");
139 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getImportantPageIds()

ILIAS\Wiki\WikiGUIRequest::getImportantPageIds ( )
Returns
int[]

Definition at line 142 of file WikiGUIRequest.php.

142 : array
143 {
144 return $this->intArray("imp_page_id");
145 }

References ILIAS\Repository\intArray().

+ Here is the call graph for this function:

◆ getImportantPageIndentation()

ILIAS\Wiki\WikiGUIRequest::getImportantPageIndentation ( )

Definition at line 179 of file WikiGUIRequest.php.

179 : array
180 {
181 return $this->intArray("indent");
182 }

References ILIAS\Repository\intArray().

+ Here is the call graph for this function:

◆ getImportantPageOrdering()

ILIAS\Wiki\WikiGUIRequest::getImportantPageOrdering ( )

Definition at line 174 of file WikiGUIRequest.php.

174 : array
175 {
176 return $this->intArray("ord");
177 }

References ILIAS\Repository\intArray().

+ Here is the call graph for this function:

◆ getMarks()

ILIAS\Wiki\WikiGUIRequest::getMarks ( )
Returns
string[]

Definition at line 119 of file WikiGUIRequest.php.

119 : array
120 {
121 return $this->strArray("mark");
122 }

References ILIAS\Repository\strArray().

+ Here is the call graph for this function:

◆ getNewPages()

ILIAS\Wiki\WikiGUIRequest::getNewPages ( )
Returns
int[]

Definition at line 221 of file WikiGUIRequest.php.

221 : array
222 {
223 return $this->intArray("new_pages");
224 }

References ILIAS\Repository\intArray().

+ Here is the call graph for this function:

◆ getNewType()

ILIAS\Wiki\WikiGUIRequest::getNewType ( )

Definition at line 92 of file WikiGUIRequest.php.

92 : string
93 {
94 return $this->str("new_type");
95 }

References ILIAS\Repository\str().

+ Here is the call graph for this function:

◆ getNotification()

ILIAS\Wiki\WikiGUIRequest::getNotification ( )

Definition at line 67 of file WikiGUIRequest.php.

67 : int
68 {
69 return $this->int("ntf");
70 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getObjId()

ILIAS\Wiki\WikiGUIRequest::getObjId ( )

Definition at line 198 of file WikiGUIRequest.php.

198 : int
199 {
200 return $this->int("obj_id");
201 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getOldNr()

ILIAS\Wiki\WikiGUIRequest::getOldNr ( )

Definition at line 46 of file WikiGUIRequest.php.

46 : int
47 {
48 return $this->int("old_nr");
49 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getPage()

ILIAS\Wiki\WikiGUIRequest::getPage ( )

Definition at line 82 of file WikiGUIRequest.php.

82 : string
83 {
84 return (string) $this->raw("page");
85 }

References ILIAS\Repository\raw().

+ Here is the call graph for this function:

◆ getPageTemplateId()

ILIAS\Wiki\WikiGUIRequest::getPageTemplateId ( )

Definition at line 189 of file WikiGUIRequest.php.

189 : int
190 {
191 $templ_id = $this->int("page_templ");
192 if ($templ_id === 0) {
193 $templ_id = $this->int("templ_page_id");
194 }
195 return $templ_id;
196 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getPrintOrdering()

ILIAS\Wiki\WikiGUIRequest::getPrintOrdering ( )
Returns
int[]

Definition at line 148 of file WikiGUIRequest.php.

148 : array
149 {
150 if ($this->isArray("wordr")) {
151 return $this->intArray("wordr");
152 }
153
154 $wordr = $this->str("wordr");
155 if ($wordr !== "") {
156 $page_ids = array_values(array_unique(array_filter(
157 array_map("intval", explode(",", $wordr)),
158 static fn(int $page_id): bool => $page_id > 0
159 )));
160 $ordering = [];
161 foreach ($page_ids as $order => $page_id) {
162 $ordering[$page_id] = ($order + 1) * 10;
163 }
164 return $ordering;
165 }
166 return [];
167 }
isArray(string $key)
Check if parameter is an array.

References ILIAS\Repository\intArray(), ILIAS\Repository\isArray(), and ILIAS\Repository\str().

+ Here is the call graph for this function:

◆ getPrintPageSel()

ILIAS\Wiki\WikiGUIRequest::getPrintPageSel ( )

Definition at line 257 of file WikiGUIRequest.php.

257 : int
258 {
259 return $this->int("print_page_sel");
260 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getRefId()

ILIAS\Wiki\WikiGUIRequest::getRefId ( )

Definition at line 41 of file WikiGUIRequest.php.

41 : int
42 {
43 return $this->int("ref_id");
44 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getSearchString()

ILIAS\Wiki\WikiGUIRequest::getSearchString ( )

Definition at line 97 of file WikiGUIRequest.php.

97 : string
98 {
99 return $this->str("srcstring");
100 }

References ILIAS\Repository\str().

+ Here is the call graph for this function:

◆ getSearchTerm()

ILIAS\Wiki\WikiGUIRequest::getSearchTerm ( )

Definition at line 102 of file WikiGUIRequest.php.

102 : string
103 {
104 return trim($this->str("search_term"));
105 }

References ILIAS\Repository\str().

+ Here is the call graph for this function:

◆ getSelectedPrintType()

ILIAS\Wiki\WikiGUIRequest::getSelectedPrintType ( )

Definition at line 203 of file WikiGUIRequest.php.

203 : string
204 {
205 return $this->str("sel_type");
206 }

References ILIAS\Repository\str().

+ Here is the call graph for this function:

◆ getStatFig()

ILIAS\Wiki\WikiGUIRequest::getStatFig ( )

Definition at line 237 of file WikiGUIRequest.php.

237 : int
238 {
239 return $this->int("fig");
240 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getStatScp()

ILIAS\Wiki\WikiGUIRequest::getStatScp ( )

Definition at line 247 of file WikiGUIRequest.php.

247 : int
248 {
249 return $this->int("scp");
250 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getStatTfr()

ILIAS\Wiki\WikiGUIRequest::getStatTfr ( )

Definition at line 242 of file WikiGUIRequest.php.

242 : string
243 {
244 return $this->str("tfr");
245 }

References ILIAS\Repository\str().

+ Here is the call graph for this function:

◆ getStatus()

ILIAS\Wiki\WikiGUIRequest::getStatus ( )
Returns
string[]

Definition at line 131 of file WikiGUIRequest.php.

131 : array
132 {
133 return $this->strArray("status");
134 }

References ILIAS\Repository\strArray().

+ Here is the call graph for this function:

◆ getStyleId()

ILIAS\Wiki\WikiGUIRequest::getStyleId ( )

Definition at line 169 of file WikiGUIRequest.php.

169 : int
170 {
171 return $this->int("style_id");
172 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getTerm()

ILIAS\Wiki\WikiGUIRequest::getTerm ( )

Definition at line 107 of file WikiGUIRequest.php.

107 : string
108 {
109 return trim($this->str("term"));
110 }

References ILIAS\Repository\str().

+ Here is the call graph for this function:

◆ getTranslation()

ILIAS\Wiki\WikiGUIRequest::getTranslation ( )

Definition at line 252 of file WikiGUIRequest.php.

252 : string
253 {
254 return $this->str("transl");
255 }

References ILIAS\Repository\str().

+ Here is the call graph for this function:

◆ getUserId()

ILIAS\Wiki\WikiGUIRequest::getUserId ( )

Definition at line 51 of file WikiGUIRequest.php.

51 : int
52 {
53 return $this->int("user");
54 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getUserIds()

ILIAS\Wiki\WikiGUIRequest::getUserIds ( )
Returns
int[]

Definition at line 113 of file WikiGUIRequest.php.

113 : array
114 {
115 return $this->intArray("user_id");
116 }

References ILIAS\Repository\intArray().

+ Here is the call graph for this function:

◆ getWikiPageId()

ILIAS\Wiki\WikiGUIRequest::getWikiPageId ( )

Definition at line 56 of file WikiGUIRequest.php.

56 : int
57 {
58 return $this->int("wpg_id");
59 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getWikiPageIds()

ILIAS\Wiki\WikiGUIRequest::getWikiPageIds ( )
Returns
int[]

Definition at line 62 of file WikiGUIRequest.php.

62 : array
63 {
64 return $this->intArray("obj_id");
65 }

References ILIAS\Repository\intArray().

+ Here is the call graph for this function:

◆ getWithComments()

ILIAS\Wiki\WikiGUIRequest::getWithComments ( )

Definition at line 77 of file WikiGUIRequest.php.

77 : bool
78 {
79 return $this->int("with_comments");
80 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

Field Documentation

◆ BaseGUIRequest

trait ILIAS\Repository::BaseGUIRequest

Base gui request wrapper.

This class processes all request parameters which are not handled by form classes already. POST overwrites GET with the same name. POST/GET parameters may be passed to the class for testing purposes.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 33 of file trait.BaseGUIRequest.php.


The documentation for this class was generated from the following file: