Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
RegexValidator Class Reference

Validates a string with a regex Usage @validator("regex",pattern) More...

+ Inheritance diagram for RegexValidator:

Public Member Functions

 __construct ()
 
 validate ($value)
 
 getParameters ()
 {{}
See also
\Ubiquity\contents\validation\validators\ValidatorInterfacegetParameters()
}
 
 asUI ()
 {}
 
- Public Member Functions inherited from Validator
 validate_ ($value)
 
 setValidationParameters ($member, $params, $severity='warning', $message=null)
 
 getMember ()
 
 setMember ($member)
 

Protected Attributes

 $ref
 
 $match
 
- Protected Attributes inherited from ValidatorHasNotNull
 $notNull
 
- Protected Attributes inherited from Validator
 $modifiedMessage
 
 $message
 
 $member
 
 $value
 
 $severity
 

Additional Inherited Members

- Protected Member Functions inherited from Validator
 setParams (array $params)
 
 mergeMessages ()
 
 _getMessage ()
 

Detailed Description

Validates a string with a regex Usage @validator("regex",pattern)

Author
jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
Version
1.0.0

Definition at line 14 of file RegexValidator.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Reimplemented in EmailValidator, and UrlValidator.

Definition at line 18 of file RegexValidator.php.

Member Function Documentation

◆ asUI()

asUI ( )

{}

See also
\Ubiquity\contents\validation\validators\Validator::asUI()

Reimplemented from ValidatorHasNotNull.

Reimplemented in EmailValidator, and UrlValidator.

Definition at line 46 of file RegexValidator.php.

◆ getParameters()

getParameters ( )

{{}

See also
\Ubiquity\contents\validation\validators\ValidatorInterfacegetParameters()
}

See also
\Ubiquity\contents\validation\validators\Validator::getParameters()

Reimplemented from Validator.

Definition at line 37 of file RegexValidator.php.

◆ validate()

validate (   $value)
Parameters
mixed$value
Returns
boolean

Reimplemented from ValidatorHasNotNull.

Definition at line 23 of file RegexValidator.php.

Field Documentation

◆ $match

$match
protected

Definition at line 16 of file RegexValidator.php.

◆ $ref

$ref
protected

Definition at line 15 of file RegexValidator.php.


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