Feature #70
Implement a Validator Resolver
| Status: | Resolved | Start date: | ||
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Andreas Förthner | % Done: | 100% |
|
| Category: | Validation | |||
| Target version: | - | |||
| PHP Version: | Complexity: | |||
| Has patch: | ||||
| Votes: | 0 |
Description
As a convenience function (eg. in the Property Mapper) we need a resolver which is able to find a validator for the given object. The interface of T3_Framework_Validation_ValidatorResolver could be as simple as:
public function resolveValidatorName($targetObject); public function resolveValidator($targetObject);
the first method returns the component name (or NULL if no validator could be found) and the second method returns an actual validator object.
Associated revisions
History
Updated by Robert Lemke over 5 years ago
- Target version changed from 1 to 18
Updated by Robert Lemke almost 5 years ago
- Target version deleted (
18)