| @@ 742-751 (lines=10) @@ | ||
| 739 | * |
|
| 740 | * @return mixed |
|
| 741 | */ |
|
| 742 | public function getCookieParam($key, $default = null) |
|
| 743 | { |
|
| 744 | $cookies = $this->getCookieParams(); |
|
| 745 | $result = $default; |
|
| 746 | if (isset($cookies[$key])) { |
|
| 747 | $result = $cookies[$key]; |
|
| 748 | } |
|
| 749 | ||
| 750 | return $result; |
|
| 751 | } |
|
| 752 | ||
| 753 | /** |
|
| 754 | * Return an instance with the specified cookies. |
|
| @@ 1210-1219 (lines=10) @@ | ||
| 1207 | * |
|
| 1208 | * @return mixed |
|
| 1209 | */ |
|
| 1210 | public function getQueryParam($key, $default = null) |
|
| 1211 | { |
|
| 1212 | $getParams = $this->getQueryParams(); |
|
| 1213 | $result = $default; |
|
| 1214 | if (isset($getParams[$key])) { |
|
| 1215 | $result = $getParams[$key]; |
|
| 1216 | } |
|
| 1217 | ||
| 1218 | return $result; |
|
| 1219 | } |
|
| 1220 | ||
| 1221 | /** |
|
| 1222 | * Fetch associative array of body and query string parameters. |
|