class Uppercase_Constraint in Password Policy 5
Hierarchy
- class \Constraint
- class \Character_Constraint
- class \Letter_Constraint
- class \Uppercase_Constraint
- class \Letter_Constraint
- class \Character_Constraint
Expanded class hierarchy of Uppercase_Constraint
1 string reference to 'Uppercase_Constraint'
File
- constraints/
constraint_uppercase.php, line 5
View source
class Uppercase_Constraint extends Letter_Constraint {
function _charIsValid($character) {
return parent::_charIsValid($character) && ctype_upper($character);
}
function getDescription() {
return t('Password must contain the specified minimum number of uppercase letters.');
}
function getValidationErrorMessage() {
return t('Password must contain a minimum of %numChars uppercase %characters.', array(
'%numChars' => $this->minimumConstraintValue,
'%characters' => format_plural($this->minimumConstraintValue, t('character'), t('characters')),
));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Character_Constraint:: |
function |
Overrides Constraint:: |
2 | |
Constraint:: |
property | |||
Constraint:: |
property | |||
Constraint:: |
property | |||
Constraint:: |
function | |||
Constraint:: |
function | |||
Constraint:: |
function | |||
Constraint:: |
function | |||
Constraint:: |
function | |||
Uppercase_Constraint:: |
function |
Overrides Letter_Constraint:: |
||
Uppercase_Constraint:: |
function |
Overrides Letter_Constraint:: |
||
Uppercase_Constraint:: |
function |
Overrides Letter_Constraint:: |