1 | <?php |
||
15 | class Param |
||
16 | { |
||
17 | /** |
||
18 | * @var \ArrayObject|null |
||
19 | */ |
||
20 | protected $data = null; |
||
21 | |||
22 | /** |
||
23 | * @param array $data |
||
24 | */ |
||
25 | public function __construct(array $data = array()) |
||
29 | |||
30 | /** |
||
31 | * @return array |
||
32 | */ |
||
33 | public function getAll() |
||
37 | |||
38 | /** |
||
39 | * @param string $index |
||
40 | * @param null|string $defaultValue |
||
41 | * @param bool $filtered If you trust foreign input introduced to your PHP code - set to FALSE! |
||
42 | * |
||
43 | * @return mixed |
||
44 | */ |
||
45 | public function get($index, $defaultValue = null, $filtered = true) |
||
59 | |||
60 | /** |
||
61 | * Never ever (ever) trust foreign input introduced to your PHP code! |
||
62 | * |
||
63 | * @param mixed $rawData |
||
64 | * |
||
65 | * @return mixed |
||
66 | */ |
||
67 | public static function filter($rawData) |
||
79 | } |
||
80 |