class PasswordPolicyCondition in Password Policy 7.2
Class PasswordPolicyCondition.
This class is used for conditionally executing policies.
Hierarchy
- class \PasswordPolicyItem
- class \PasswordPolicyCondition
Expanded class hierarchy of PasswordPolicyCondition
1 string reference to 'PasswordPolicyCondition'
- password_policy_ctools_plugin_type in ./
password_policy.module - Implements hook_ctools_plugin_type().
File
- includes/
PasswordPolicyCondition.inc, line 13 - Contains PasswordPolicyCondition.
View source
class PasswordPolicyCondition extends PasswordPolicyItem {
protected $ppType = array(
'item',
'condition',
);
/**
* Checks whether condition matches.
*
* That is, check whether the condition is met for the given account.
*
* @param object $account
* User object.
*
* @return bool
* TRUE if the condition matches, FALSE otherwise.
*/
public function match($account) {
$func = $this
->func('condition callback');
if ($func) {
return $func($account, $this);
}
return TRUE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PasswordPolicyCondition:: |
protected | property |
Overrides PasswordPolicyItem:: |
|
PasswordPolicyCondition:: |
public | function | Checks whether condition matches. | |
PasswordPolicyItem:: |
public | property | ||
PasswordPolicyItem:: |
public | property | ||
PasswordPolicyItem:: |
public | property | ||
PasswordPolicyItem:: |
public | function | Form constructor for adminForm(). | |
PasswordPolicyItem:: |
public | function | Form submission handler for adminForm(). | |
PasswordPolicyItem:: |
public static | function | Creates item. | |
PasswordPolicyItem:: |
protected | function | Gets function of item by name. | |
PasswordPolicyItem:: |
public | function | Determines whether item is active. | |
PasswordPolicyItem:: |
public | function | Checks whether item is of a given type. | |
PasswordPolicyItem:: |
public | function | Constructs a PasswordPolicyItem object. | 1 |