| [ Index ] |
PHP Cross Reference of Limb3 |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 130 lines (3 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
lmbValidator:: (10 methods):
__construct()
getErrorList()
setErrorList()
addRule()
addRequiredRule()
addAtLeastOneRequiredRule()
addRequiredObjectRule()
addSizeRangeRule()
isValid()
validate()
Class: lmbValidator - X-Ref
Holds the list of validation rules along with errors happened during validation.| __construct($error_list = null) X-Ref |
| Constructor param: lmbErrorList |
| getErrorList() X-Ref |
| Returns list of errors. Creates an empty lmbErrorList if error list is NULL return: lmbErrorList |
| setErrorList($error_list) X-Ref |
| Sets new list of errors return: void |
| addRule($rule) X-Ref |
| Adds a new rule return: void |
| addRequiredRule($field, $custom_error = '') X-Ref |
| Alias for adding lmbRequiredRule to validator return: void |
| addAtLeastOneRequiredRule($fields, $custom_error = '') X-Ref |
| No description |
| addRequiredObjectRule($field, $class = null, $custom_error = '') X-Ref |
| Alias for adding lmbRequiredObjectRule to validator return: void |
| addSizeRangeRule($field, $min_or_max_length, $max_length = NULL, $custom_error = '') X-Ref |
| Alias for adding lmbSizeRangeRule to validator return: void |
| isValid() X-Ref |
return: boolean TRUE if list of errors is empty |
| validate($datasource) X-Ref |
| Performs validation Passes datasource and list of errors to every validation rule param: lmbSetInterface Datasource to validate return: boolean True if valid |
| Generated: Tue Dec 2 03:54:09 2008 | Cross-referenced by PHPXref 0.7 |