Open Journal Systems  3.3.0
FormValidatorRegExp Class Reference
Inheritance diagram for FormValidatorRegExp:
FormValidator

Public Member Functions

 __construct (&$form, $field, $type, $message, $regExp)
 
- Public Member Functions inherited from FormValidator
 getField ()
 
 getFieldValue ()
 
getForm ()
 
 getMessage ()
 
 getType ()
 
getValidator ()
 
 isEmptyAndOptional ()
 
 isValid ()
 

Additional Inherited Members

- Data Fields inherited from FormValidator
 $_field
 
 $_form
 
 $_message
 
 $_type
 
 $_validator
 

Detailed Description

Form validation check using a regular expression.

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

Constructor & Destructor Documentation

◆ __construct()

FormValidatorRegExp::__construct ( $form,
  $field,
  $type,
  $message,
  $regExp 
)

Constructor.

Parameters
$formForm the associated form
$fieldstring the name of the associated field
$typestring the type of check, either "required" or "optional"
$messagestring the error message for validation failures (i18n key)
$regExpstring the regular expression (PCRE form)

Reimplemented from FormValidator.

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


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