category OSS
package OSS_Validate
copyright Copyright (c) 2007 - 2012, Open Source Solutions Limited, Dublin, Ireland
license New BSD License

 Methods

Sets validator options Accepts the following option keys: 'strength' => scalar, number of different character classes to test for

__construct(array | \Zend_Config $options) : void

Parameters

$options

array\Zend_Config

Get the password validator strength.

getStrength() : int

Returns

int

Returns true if $valid (the password) meets the minimum strength requirements.

isValid(string $value) : bool

Parameters

$value

string

Returns

bool

Set the password validator strength.

setStrength(int $s) : void

Parameters

$s

int

The strength to test for.

Exceptions

\OSS_Validate_Exception

 Properties

 

List of regular expressions (character classes) that the password is checked against

$REGEXPS : array
 

Error message templates

$_messageTemplates : array
 

The number of character classes to test for

$_strength : int

 Constants

 

DEFAULT_STRENGTH

DEFAULT_STRENGTH 
 

NOT_VALID

NOT_VALID