{
$this->url = $url;
}
+
+ /*!
+ Wrapper around filter_input() that stores the result in the ::$data field.
+ */
+ public function Filter($type, $name, $filter=FILTER_SANITIZE_STRING, $options=NULL)
+ {
+ $rv = filter_input($type, $name, $filter, $options);
+ $this->data[$name] = $rv;
+ return $rv;
+ }
+
+ /*!
+ Wrapper around filter_input() that merges the result in the ::$data field.
+ */
+ public function FilterArray($type, $definition, $add_empty=TRUE)
+ {
+ $rv = filter_input_array($type, $definition, $add_empty);
+ $this->data = array_merge($this->data, $rv);
+ return $rv;
+ }
}