public function LdapAuthorizationConsumerConfAdmin::__construct in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.2 ldap_authorization/LdapAuthorizationConsumerConfAdmin.class.php \LdapAuthorizationConsumerConfAdmin::__construct()
- 7 ldap_authorization/LdapAuthorizationConsumerConfAdmin.class.php \LdapAuthorizationConsumerConfAdmin::__construct()
Constructor Method.
Overrides LdapAuthorizationConsumerConf::__construct
File
- ldap_authorization/
LdapAuthorizationConsumerConfAdmin.class.php, line 97
Class
- LdapAuthorizationConsumerConfAdmin
- LDAP Authorization Consumer Configration Admin Class.
Code
public function __construct(&$consumer = NULL, $new = FALSE) {
parent::__construct($consumer, $new);
$this->fields = $this
->fields();
$this->consumers = ldap_authorization_get_consumers(NULL, TRUE);
if ($new) {
foreach ($this->consumer->defaultConsumerConfProperties as $property => $value) {
$this->{$property} = $value;
}
}
}