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

Validates a password Usage @validator("password","constraints"=>["min"=>v,"max"=>v,"upperCase"=>v,"numeric"=>v,"specialChar"=>v,"charset"=>v]) Ubiquity\security\auth\user$PasswordValidator This class is part of Ubiquity. More...

+ Inheritance diagram for PasswordValidator:

Public Member Functions

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

Protected Member Functions

 getCallbacks ()
 
 getLengths ($string)
 
 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
 
 $upperCase
 
 $numeric
 
 $specialChar
 
 $charset = 'UTF-8'
 
const PASSWORD_CONSTRAINTS
 
- Protected Attributes inherited from LengthValidator
 $min
 
 $max
 
 $charset = 'UTF-8'
 
- Protected Attributes inherited from ValidatorMultiple
 $violation
 
 $notNull
 
- Protected Attributes inherited from Validator
 $modifiedMessage
 
 $message
 
 $member
 
 $value
 
 $severity
 

Detailed Description

Validates a password Usage @validator("password","constraints"=>["min"=>v,"max"=>v,"upperCase"=>v,"numeric"=>v,"specialChar"=>v,"charset"=>v]) Ubiquity\security\auth\user$PasswordValidator This class is part of Ubiquity.

Author
jc
Version
1.0.0

Definition at line 16 of file PasswordValidator.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Reimplemented from LengthValidator.

Definition at line 36 of file PasswordValidator.php.

Member Function Documentation

◆ getCallbacks()

getCallbacks ( )
protected

Definition at line 48 of file PasswordValidator.php.

◆ getLengths()

getLengths (   $string)
protected

Definition at line 62 of file PasswordValidator.php.

◆ getParameters()

getParameters ( )

{{{}

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

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

Reimplemented from LengthValidator.

Definition at line 97 of file PasswordValidator.php.

◆ validateValue()

validateValue (   $stringValue)
protected

Reimplemented from LengthValidator.

Definition at line 77 of file PasswordValidator.php.

Field Documentation

◆ $charset

$charset = 'UTF-8'
protected

Definition at line 28 of file PasswordValidator.php.

◆ $max

$max
protected

Definition at line 20 of file PasswordValidator.php.

◆ $min

$min
protected

Definition at line 18 of file PasswordValidator.php.

◆ $numeric

$numeric
protected

Definition at line 24 of file PasswordValidator.php.

◆ $specialChar

$specialChar
protected

Definition at line 26 of file PasswordValidator.php.

◆ $upperCase

$upperCase
protected

Definition at line 22 of file PasswordValidator.php.

◆ PASSWORD_CONSTRAINTS

const PASSWORD_CONSTRAINTS
protected
Initial value:
= [
'upperCase',
'numeric',
'specialChar'
]

Definition at line 30 of file PasswordValidator.php.


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