Controller_Validator_Abstract::applyRulesets PHP Method

applyRulesets() public method

Go through the list of defined rules and call the corresponding filters and convertors.
public applyRulesets ( )
    public function applyRulesets()
    {
        // List of fields which actually need validation at this time.
        $fields = $this->getActualFields();
        foreach ($fields as $field) {
            $rulesets = $this->getRules($field);
            $this->active_field = $field;
            $this->prefix = '';
            $this->caption = '';
            foreach ($rulesets as $rules) {
                $this->applyRules($field, $rules);
            }
        }
        return $this;
    }