Matthimatiker / MolComponents

Library with use-at-will architecture that extends the functionality of Zend Framework 1. Main features: Improved bootstrapping with lazy loading of resources, declaration of request parameters as argument in controller actions, advanced form creation and validation, mail templates, lightweight controller testing.
Other
2 stars 0 forks source link

Create form element relation validator #5

Closed Matthimatiker closed 12 years ago

Matthimatiker commented 12 years ago

Add a validator that checks the relation between two form elements.

For example if both contain equal values (e.g. passwords), different values (e.g. alternative mail address) or if one is greater than the other (e.g. from/to dates).

Matthimatiker commented 12 years ago

Added basic functionality: Mol_Validate_Form_ElementRelation allows the comparison of two form values, the comparison itself is handled by a Mol_Validate_Form_Relation_* class.

Further documentation is required.

Matthimatiker commented 12 years ago

Added documentation to Mol_Validate_Form_ElementRelation.