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

Validate Strings length using min, max, charset,notNull parameters. More...

+ Inheritance diagram for LengthValidator:

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 Member Functions

 validateValue ($stringValue)
 
- Protected Member Functions inherited from ValidatorMultiple
 mergeMessages ()
 
 _getMessage ()
 
 _getMessageViolation ($messages)
 
- Protected Member Functions inherited from Validator
 setParams (array $params)
 

Protected Attributes

 $min
 
 $max
 
 $charset = 'UTF-8'
 
- Protected Attributes inherited from ValidatorMultiple
 $violation
 
 $notNull
 
- Protected Attributes inherited from Validator
 $modifiedMessage
 
 $message
 
 $member
 
 $value
 
 $severity
 

Detailed Description

Validate Strings length using min, max, charset,notNull parameters.

For front and back-end validation

Ubiquity\contents\validation\validators\multiples$LengthValidator This class is part of Ubiquity

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

Definition at line 19 of file LengthValidator.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Reimplemented from ValidatorMultiple.

Reimplemented in PasswordValidator.

Definition at line 24 of file LengthValidator.php.

Member Function Documentation

◆ asUI()

asUI ( )

{}

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

Reimplemented from ValidatorMultiple.

Definition at line 74 of file LengthValidator.php.

◆ getParameters()

getParameters ( )

{{}

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

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

Reimplemented from Validator.

Reimplemented in PasswordValidator.

Definition at line 65 of file LengthValidator.php.

◆ validate()

validate (   $value)
Parameters
mixed$value
Returns
boolean

Reimplemented from ValidatorMultiple.

Definition at line 29 of file LengthValidator.php.

◆ validateValue()

validateValue (   $stringValue)
protected

Reimplemented in PasswordValidator.

Definition at line 40 of file LengthValidator.php.

Field Documentation

◆ $charset

$charset = 'UTF-8'
protected

Definition at line 22 of file LengthValidator.php.

◆ $max

$max
protected

Definition at line 21 of file LengthValidator.php.

◆ $min

$min
protected

Definition at line 20 of file LengthValidator.php.


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