| @@ 697-706 (lines=10) @@ | ||
| 694 | * |
|
| 695 | * @return mixed |
|
| 696 | */ |
|
| 697 | public function getCookieParam($key, $default = null) |
|
| 698 | { |
|
| 699 | $cookies = $this->getCookieParams(); |
|
| 700 | $result = $default; |
|
| 701 | if (isset($cookies[$key])) { |
|
| 702 | $result = $cookies[$key]; |
|
| 703 | } |
|
| 704 | ||
| 705 | return $result; |
|
| 706 | } |
|
| 707 | ||
| 708 | /** |
|
| 709 | * Return an instance with the specified cookies. |
|
| @@ 1165-1174 (lines=10) @@ | ||
| 1162 | * |
|
| 1163 | * @return null |
|
| 1164 | */ |
|
| 1165 | public function getQueryParam($key, $default = null) |
|
| 1166 | { |
|
| 1167 | $getParams = $this->getQueryParams(); |
|
| 1168 | $result = $default; |
|
| 1169 | if (isset($getParams[$key])) { |
|
| 1170 | $result = $getParams[$key]; |
|
| 1171 | } |
|
| 1172 | ||
| 1173 | return $result; |
|
| 1174 | } |
|
| 1175 | ||
| 1176 | /** |
|
| 1177 | * Fetch assocative array of body and query string parameters. |
|