public function filterInput() { foreach ($this->input as $key => $val) { // Call all local methods on filter $method = $this->getFilterMethod($key); if (method_exists($this, $method)) { $this->{$method}($val); } } }