public function PasswordPolicyItem::__construct in Password Policy 7.2
Constructs a PasswordPolicyItem object.
Parameters
object $info: Ctools plugin object.
object $policy: Policy database object as returned by ctools_export_crud_load().
1 call to PasswordPolicyItem::__construct()
- PasswordPolicyConstraint::__construct in includes/
PasswordPolicyConstraint.inc - Constructs PasswordPolicyConstraint object.
1 method overrides PasswordPolicyItem::__construct()
- PasswordPolicyConstraint::__construct in includes/
PasswordPolicyConstraint.inc - Constructs PasswordPolicyConstraint object.
File
- includes/
PasswordPolicyItem.inc, line 27 - Contains PasswordPolicyItem.
Class
- PasswordPolicyItem
- Class PasswordPolicyItem.
Code
public function __construct($info, &$policy) {
$this->info = $info;
// We want to have a local config but have it be a ref to the policy one
// that way we only have to make updates once.
$this->config =& $policy->config[$info['name']];
$this->config = array_merge($info['config'], $this->config);
$this->policy = $policy;
}