| @@ 697-705 (lines=9) @@ | ||
| 694 | * |
|
| 695 | * @return null |
|
| 696 | */ |
|
| 697 | public function getCookieParam($key, $default = null) |
|
| 698 | { |
|
| 699 | $getCookies = $this->getCookieParams(); |
|
| 700 | $result = $default; |
|
| 701 | if (isset($getCookies[$key])) { |
|
| 702 | $result = $getCookies[$key]; |
|
| 703 | } |
|
| 704 | ||
| 705 | return $result; |
|
| 706 | } |
|
| 707 | ||
| 708 | /** |
|
| @@ 1149-1158 (lines=10) @@ | ||
| 1146 | * |
|
| 1147 | * @return null |
|
| 1148 | */ |
|
| 1149 | public function getQueryParam($key, $default = null) |
|
| 1150 | { |
|
| 1151 | $getParams = $this->getQueryParams(); |
|
| 1152 | $result = $default; |
|
| 1153 | if (isset($getParams[$key])) { |
|
| 1154 | $result = $getParams[$key]; |
|
| 1155 | } |
|
| 1156 | ||
| 1157 | return $result; |
|
| 1158 | } |
|
| 1159 | ||
| 1160 | /** |
|
| 1161 | * Fetch assocative array of body and query string parameters. |
|