__construct (\HTML_QuickForm $form, \midcom_services_i18n_l10n $l10n)
add_type_rules (\midcom_helper_datamanager2_type $type, array $config)
This helper function adds all rules which are deducible from the schema
to the form.
It recognizes the following schema options:
- required: Adds a required rule to the form, bound to the given element.
add_validation_rules (array $rules)
Add form-wide validation rules
arrayThe schema to use
The form we're working on
Tracks which rules have already been registered