Class Ice

Filter

Filter component provides a set of commonly needed data filters.
Methods
add(string $name, variable $body)
Adds a user-defined filter.
sanitize(variable $value, variable $filters)
Sanitizes a value with a specified single or set of filters.
doSanitize(string $value, string $filter)
Internal sanitize.
Methods Details
  • public function add(string $name, variable $body)

    Adds a user-defined filter.
  • public function sanitize(variable $value, variable $filters)

    Sanitizes a value with a specified single or set of filters.
  • protected function doSanitize(string $value, string $filter)

    Internal sanitize.