public function validate($value, &$filtered = null)
    {
        if (!$this->validator->validate($value, $filtered))
            throw new ValidationException($this->validator->getErrorMessage($value));

        return true;
    }
public function validate($value, &$filtered = null)
    {
        if (!$this->validator->validate($value, $filtered))
            throw new ValidationException($this->validator->getErrorMessage($value));

        return true;
    }
public function validate ( $ value , & $ filtered = null ) { if ( ! $ this -> validator -> validate ( $ value , $ filtered ) ) throw new ValidationException ( $ this -> validator -> getErrorMessage ( $ value ) ) ; return true ; }
Validate the value for this column.

@param mixed $value The value to set
@param mixed &$filtered The corrected, filtered value
@return bool True when validates. False is never returned.
@throws ValidationException when validation fails.
Validate the value for this column .