Conditions | 4 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
41 | public function getParam($param, $default = false) |
||
42 | { |
||
43 | $headers = $this->getHttpRequestHeaders(); |
||
44 | |||
45 | $return = $default; |
||
46 | |||
47 | if (isset($headers[$param])) { |
||
48 | $return = $headers[$param]; |
||
49 | } elseif (isset($_POST[$param])) { |
||
50 | $return = $_POST[$param]; |
||
51 | } elseif (isset($_GET[$param])) { |
||
52 | $return = $_GET[$param]; |
||
53 | } |
||
54 | |||
55 | return $return; |
||
56 | } |
||
58 |