public function LdapAuthorizationConsumerConfAdmin::__construct in Lightweight Directory Access Protocol (LDAP) 7
Same name and namespace in other branches
- 8.2 ldap_authorization/LdapAuthorizationConsumerConfAdmin.class.php \LdapAuthorizationConsumerConfAdmin::__construct()
- 7.2 ldap_authorization/LdapAuthorizationConsumerConfAdmin.class.php \LdapAuthorizationConsumerConfAdmin::__construct()
Constructor Method
Overrides LdapAuthorizationConsumerConf::__construct
File
- ldap_authorization/
LdapAuthorizationConsumerConfAdmin.class.php, line 133
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->defaultableConsumerConfProperties as $property) {
$default_prop_name = $property . 'Default';
$this->{$property} = $this->consumer->{$default_prop_name};
}
}
}