\rex_password_policy

Summary

Methods
Properties
Constants
__construct()
check()
getDescription()
No public properties found
No constants found
getRule()
isValid()
matchesCount()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(array  $options) : mixed

Parameters

array $options

Returns

mixed —

check()

check(string  $password, null|int  $id = null) : true|string

Parameters

string $password
null|int $id

Throws

\rex_exception

Returns

true|string —

true on success, otherwise an error message

getDescription()

getDescription() : ?string

Returns

?string —

getRule()

getRule() : string

Returns

string —

isValid()

isValid(mixed  $password) : bool

Parameters

mixed $password

Returns

bool —

matchesCount()

matchesCount(int  $count, array  $options) : bool

Parameters

int $count
array $options

Returns

bool —