ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
RequestDecorator.php
Go to the documentation of this file.
1<?php
2
3namespace Sabre\HTTP;
4
16
18
24 function __construct(RequestInterface $inner) {
25
26 $this->inner = $inner;
27
28 }
29
35 function getMethod() {
36
37 return $this->inner->getMethod();
38
39 }
40
47 function setMethod($method) {
48
49 $this->inner->setMethod($method);
50
51 }
52
58 function getUrl() {
59
60 return $this->inner->getUrl();
61
62 }
63
70 function setUrl($url) {
71
72 $this->inner->setUrl($url);
73
74 }
75
81 function getAbsoluteUrl() {
82
83 return $this->inner->getAbsoluteUrl();
84
85 }
86
93 function setAbsoluteUrl($url) {
94
95 $this->inner->setAbsoluteUrl($url);
96
97 }
98
104 function getBaseUrl() {
105
106 return $this->inner->getBaseUrl();
107
108 }
109
120 function setBaseUrl($url) {
121
122 $this->inner->setBaseUrl($url);
123
124 }
125
143 function getPath() {
144
145 return $this->inner->getPath();
146
147 }
148
157
158 return $this->inner->getQueryParameters();
159
160 }
161
169 function getPostData() {
170
171 return $this->inner->getPostData();
172
173 }
174
186 function setPostData(array $postData) {
187
188 $this->inner->setPostData($postData);
189
190 }
191
192
201 function getRawServerValue($valueName) {
202
203 return $this->inner->getRawServerValue($valueName);
204
205 }
206
213 function setRawServerData(array $data) {
214
215 $this->inner->setRawServerData($data);
216
217 }
218
226 function __toString() {
227
228 return $this->inner->__toString();
229
230 }
231}
An exception for terminatinating execution or to throw for unit testing.
getPath()
Returns the relative path.
getQueryParameters()
Returns the list of query parameters.
getAbsoluteUrl()
Returns the absolute url.
setMethod($method)
Sets the HTTP method.
getMethod()
Returns the current HTTP method.
setUrl($url)
Sets the request url.
getUrl()
Returns the request url.
__toString()
Serializes the request object as a string.
getRawServerValue($valueName)
Returns an item from the _SERVER array.
getPostData()
Returns the POST data.
setPostData(array $postData)
Sets the post data.
__construct(RequestInterface $inner)
Constructor.
setRawServerData(array $data)
Sets the _SERVER array.
setAbsoluteUrl($url)
Sets the absolute url.
setBaseUrl($url)
Sets a base url.
getBaseUrl()
Returns the current base url.
The RequestInterface represents a HTTP request.
trait MessageDecoratorTrait
This trait contains a bunch of methods, shared by both the RequestDecorator and the ResponseDecorator...
if($session===NULL) $postData
$url
$data
Definition: bench.php:6