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