@@ 124-132 (lines=9) @@ | ||
121 | */ |
|
122 | public function getValue() |
|
123 | { |
|
124 | if ($this->type == self::TYPE_GET) { |
|
125 | if (!filter_has_var(INPUT_GET, $this->key) && isset($_GET[$this->key])) { |
|
126 | return $_GET[$this->key]; |
|
127 | } |
|
128 | if ($this->isMulti()) { |
|
129 | return filter_input(INPUT_GET, $this->key, FILTER_DEFAULT, FILTER_REQUIRE_ARRAY); |
|
130 | } |
|
131 | return filter_input(INPUT_GET, $this->key); |
|
132 | } |
|
133 | if ($this->type == self::TYPE_POST) { |
|
134 | if (!filter_has_var(INPUT_POST, $this->key) && isset($_POST[$this->key])) { |
|
135 | return $_POST[$this->key]; |
|
@@ 133-141 (lines=9) @@ | ||
130 | } |
|
131 | return filter_input(INPUT_GET, $this->key); |
|
132 | } |
|
133 | if ($this->type == self::TYPE_POST) { |
|
134 | if (!filter_has_var(INPUT_POST, $this->key) && isset($_POST[$this->key])) { |
|
135 | return $_POST[$this->key]; |
|
136 | } |
|
137 | if ($this->isMulti()) { |
|
138 | return filter_input(INPUT_POST, $this->key, FILTER_DEFAULT, FILTER_REQUIRE_ARRAY); |
|
139 | } |
|
140 | return filter_input(INPUT_POST, $this->key); |
|
141 | } |
|
142 | if ($this->type == self::TYPE_FILE) { |
|
143 | if (isset($_FILES[$this->key])) { |
|
144 | if ($this->isMulti()) { |