Class for compare two dates , one from a form and other from a database, and verify if them follows the condition passed
Located in /apps/frontend/lib/myDbDateCompareValidator.php (line 10)
sfValidator | --myDbDateCompareValidator
Function that execute the validation with the parameters passed in initialize, except the value, that is passed here by the validation helper, and it's value is the value filled in the field form to check
Validate function that compare that it is possible to include a new date in some conditions.
The parameters array is composed of:
The date passed by $value is searched in the table 'class_name'.
The table must have a colum called 'column_filter', and the validator only will compare with the fields that have in this column 'column_value'.
To get the true answer (and can execute without error) there must not be any field of the column * 'column' that can be find using the search_type.
Documentation generated on Sat, 21 Mar 2009 21:24:57 +0100 by phpDocumentor 1.4.2