1 | <?php |
||
11 | class Request extends BaseRequest |
||
12 | { |
||
13 | /** |
||
14 | * @var Session |
||
15 | */ |
||
16 | protected $session; |
||
17 | |||
18 | /** |
||
19 | * Get the current path info for the request. |
||
20 | * |
||
21 | * @return string |
||
22 | */ |
||
23 | public function path() |
||
28 | |||
29 | /** |
||
30 | * Get the request method. |
||
31 | * |
||
32 | * @return string |
||
33 | */ |
||
34 | public function method() |
||
38 | |||
39 | /** |
||
40 | * Get the root URL |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | public function rootURL() |
||
48 | |||
49 | /** |
||
50 | * Return true if server HTTP_REFERER isset |
||
51 | * |
||
52 | * @return bool |
||
53 | */ |
||
54 | public function hasRefererURL() |
||
58 | |||
59 | /** |
||
60 | * Return server HTTP_REFERER |
||
61 | * |
||
62 | * @return string |
||
63 | */ |
||
64 | public function refererURL() |
||
68 | |||
69 | /** |
||
70 | * Creates a new request with values from PHP's super globals. |
||
71 | * |
||
72 | * @param Session $session |
||
73 | * @return Request A new request |
||
74 | */ |
||
75 | public static function createFromSymfonyGlobal(Session $session) |
||
92 | |||
93 | /** |
||
94 | * Gets the Session. |
||
95 | * |
||
96 | * @return Session|null The session |
||
97 | */ |
||
98 | public function getSession() |
||
102 | |||
103 | /** |
||
104 | * @param $name |
||
105 | * @return bool |
||
106 | */ |
||
107 | public function hasPost($name) |
||
111 | |||
112 | /** |
||
113 | * @param null $name |
||
114 | * @param null $default |
||
115 | * @return array|mixed|null |
||
116 | */ |
||
117 | public function post($name = null, $default = null) |
||
121 | |||
122 | /** |
||
123 | * @param $name |
||
124 | * @return bool |
||
125 | */ |
||
126 | public function hasOldPost($name) |
||
130 | |||
131 | /** |
||
132 | * @param null $name |
||
133 | * @param null $default |
||
134 | * @return array |
||
135 | */ |
||
136 | public function oldPost($name = null, $default = null) |
||
140 | |||
141 | /** |
||
142 | * @param $name |
||
143 | * @return bool |
||
144 | */ |
||
145 | public function hasQuery($name) |
||
149 | |||
150 | /** |
||
151 | * @param null $name |
||
152 | * @param null $default |
||
153 | * @return array|mixed|null |
||
154 | */ |
||
155 | public function query($name = null, $default = null) |
||
159 | |||
160 | /** |
||
161 | * @param $name |
||
162 | * @return bool |
||
163 | */ |
||
164 | public function hasOldQuery($name) |
||
168 | |||
169 | /** |
||
170 | * @param null $name |
||
171 | * @param null $default |
||
172 | * @return array |
||
173 | */ |
||
174 | public function oldQuery($name, $default = null) |
||
178 | |||
179 | private function getOldByFullName($name, $default = null) |
||
187 | |||
188 | /** |
||
189 | * @param $name |
||
190 | * @param null $default |
||
191 | * @return array|mixed|null |
||
192 | */ |
||
193 | public function input($name, $default = null) |
||
205 | |||
206 | /** |
||
207 | * @param $name |
||
208 | * @return bool |
||
209 | */ |
||
210 | public function hasFiles($name) |
||
214 | |||
215 | /** |
||
216 | * @param null $name |
||
217 | * @return array|mixed |
||
218 | */ |
||
219 | public function files($name = null) |
||
226 | } |
||
227 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.