src/Titon/Db/Behavior/FilterBehavior.php
public function filter($field, $filter, array $options = []) {
        if (!in_array($filter, [self::HTML, self::NEWLINES, self::WHITESPACE, self::XSS])) {
            throw new InvalidArgumentException(sprintf('Filter %s does not exist', $filter));
        }

        $this->_filters[$field][$filter] = $options;

        return $this;
    }
public function filter($field, $filter, array $options = []) {
        if (!in_array($filter, [self::HTML, self::NEWLINES, self::WHITESPACE, self::XSS])) {
            throw new InvalidArgumentException(sprintf('Filter %s does not exist', $filter));
        }

        $this->_filters[$field][$filter] = $options;

        return $this;
    }
public function filter ( $ field , $ filter , array $ options = [ ] ) { if ( ! in_array ( $ filter , [ self :: HTML , self :: NEWLINES , self :: WHITESPACE , self :: XSS ] ) ) { throw new InvalidArgumentException ( sprintf ( 'Filter %s does not exist' , $ filter ) ) ; } $ this -> _filters [ $ field ] [ $ filter ] = $ options ; return $ this ; }
Define a filter for a specific field.

@param string $field
@param string $filter
@param array $options
@return $this
@throws \Titon\Db\Exception\InvalidArgumentException
Define a filter for a specific field .