| @@ 682-690 (lines=9) @@ | ||
| 679 | * |
|
| 680 | * @return null |
|
| 681 | */ |
|
| 682 | public function getCookieParam($key, $default = null) |
|
| 683 | { |
|
| 684 | $getCookies = $this->getCookieParams(); |
|
| 685 | $result = $default; |
|
| 686 | if (isset($getCookies[$key])) { |
|
| 687 | $result = $getCookies[$key]; |
|
| 688 | } |
|
| 689 | return $result; |
|
| 690 | } |
|
| 691 | ||
| 692 | /** |
|
| 693 | * Retrieve cookies. |
|
| @@ 1148-1157 (lines=10) @@ | ||
| 1145 | * |
|
| 1146 | * @return null |
|
| 1147 | */ |
|
| 1148 | public function getQueryParam($key, $default = null) |
|
| 1149 | { |
|
| 1150 | $getParams = $this->getQueryParams(); |
|
| 1151 | $result = $default; |
|
| 1152 | if (isset($getParams[$key])) { |
|
| 1153 | $result = $getParams[$key]; |
|
| 1154 | } |
|
| 1155 | ||
| 1156 | return $result; |
|
| 1157 | } |
|
| 1158 | ||
| 1159 | /** |
|
| 1160 | * Fetch assocative array of body and query string parameters. |
|