Examines the posted fields, defines $this->_ValidationFields, and enforces the $this->Rules collection on them.
public validate ( array $PostedFields, boolean $Insert = false ) : boolean | ||
$PostedFields | array | An associative array of posted fields to be validated. |
$Insert | boolean | A boolean value indicating if the posted fields are to be inserted or updated. If being inserted, the schema's required field rules will be enforced. |
return | boolean | Whether or not the validation was successful. |