Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Rules: added reset method #180
Ability to reset already attached rules on control. It's not possible to attach different rules in modular systems. Or is it?
$form = new Form; $input = $form->addText('text'); $input->addCondition(Form::MAX_LENGTH, 5) ->addRule(Form::PATTERN, 'Musí obsahovat číslici', '.*[0-9].*'); $input->getRules()->reset();
Reset method is marked as internal.