Formatting output Plese Wait...

validationCore Class Reference

validationCore class contains the Common methods and attributes of all types of validation related classes such as form validation upload validation etc. More...

Inheritance diagram for validationCore:

Inheritance graph
[legend]
Collaboration diagram for validationCore:

Collaboration graph
[legend]

Public Member Functions

 addCriteria ($field_name, $rules=null, $msg=null)
 Sets the Rules for form validation.
 removeCriteria ($field_name, $criteria=null)
 if a Criteria is specified Removes that specific Criteria else Removes all criterias for that Field Name Supplied
 parseCriteria ($map_file)
 Parses the validation map from an existing config file.
 validationStatus ()
 gets a (optional) form field name and returns true if its valid else returns either (if mode is Z_VLD_NUMERICAL) the index of the unmatched rule, or (Z_VLD_TEXTUAL) textuale name e.g.
 overrideErrorMsg ($field_name, $err, $err_txt)
 This method lets you overrite teh error message set for a certain form field for a certain error.
 isValid ($key=null)
 If no arguments given Returns true if all form fields in the form is valid else returns flase If a form field name is given as an arguments returns true if that form field is valid else returns false.
 errtext ($field_name)
 Returns teh error text set for a crtain field for the unmatched criteria.
 revalidate ()
 Revalidate everything.

Data Fields

 $rules = array()
 $res = array()
 $err
 $validated = false

Detailed Description

validationCore class contains the Common methods and attributes of all types of validation related classes such as form validation upload validation etc.

Definition at line 30 of file abstract/validation/core.php.


Member Function Documentation

validationCore::addCriteria( string $field_name, mixed $rules = null, mixed $msg = null )

validationCore::removeCriteria( string $field_name, string $criteria = null )

validationCore::parseCriteria( string $map_file ) 

validationCore::validationStatus( ) 

validationCore::overrideErrorMsg( string $field_name, mixed $err, string $err_txt )

validationCore::isValid( string $key = null ) 

validationCore::errtext( string $field_name ) 

validationCore::revalidate( ) 


Field Documentation

validationCore::$rules = array()

validationCore::$res = array()

validationCore::$err

validationCore::$validated = false


The documentation for this class was generated from the following file:

Generated on Mon Oct 27 23:53:17 2008 for zigmoyd.kdevelop by doxygen 1.5.6
CompoundsX
Build Compounds List