FormValidatorRegExp Class Reference
[Form_validation]

Form validation check using a regular expression. More...

Inheritance diagram for FormValidatorRegExp:

FormValidator FormValidatorAlphaNum FormValidatorEmail FormValidatorUrl

List of all members.

Public Member Functions

 FormValidatorRegExp (&$form, $field, $type, $message, $regExp)
 isValid ()

Public Attributes

 $regExp


Detailed Description

Form validation check using a regular expression.

Definition at line 20 of file FormValidatorRegExp.inc.php.


Member Function Documentation

FormValidatorRegExp.FormValidatorRegExp ( &$  form,
field,
type,
message,
regExp 
)

Constructor.

See also:
FormValidator.FormValidator()
Parameters:
$regExp string the regular expression (PCRE form)

Definition at line 30 of file FormValidatorRegExp.inc.php.

References FormValidator.$field, FormValidator.$form, FormValidator.$message, $regExp, and FormValidator.$type.

FormValidatorRegExp.isValid (  ) 

Check if field value is valid. Value is valid if it is empty and optional or matches regular expression.

Returns:
boolean

Reimplemented from FormValidator.

Definition at line 40 of file FormValidatorRegExp.inc.php.

References FormValidator.isEmptyAndOptional(), and String.regexp_match().


Member Data Documentation

FormValidatorRegExp.$regExp

The regular expression to match against the field value

Definition at line 23 of file FormValidatorRegExp.inc.php.

Referenced by FormValidatorRegExp().


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

Generated on Mon Jul 14 10:55:42 2008 for Open Journal Systems by  doxygen 1.5.6