lmbValidatorBuilderBuilds new or fills with the rules existing lmbValidator object, simplifying constructing rules
Located in /validation/src/lmbValidatorBuilder.class.php (line 20)
static array
$rules_shortcuts
= array(Main function for building rules.
- list (array) of rules' lists, $field => $list. List of rules can be a string: $rules_lists['field'] = 'rule1|rule2|rule3'; or an array: $rules_lists['field'] = array($rule1, $rule2, $rule3);
Rules can be in several formats: $rule['field'] = array( 'rule1[param1, param2]', // simple rule format - rule, followed by optional params in square brackets 'rule2[param1]' => 'error2', // extended rule format, simple rule format => error message. 'rule3' => 'error3' );
Parse text representation of a rule and return rule object
Documentation generated on Wed, 07 Jan 2009 03:52:52 +0300 by phpDocumentor 1.3.2