function LdapAuthorizationConsumerOG::__construct in Lightweight Directory Access Protocol (LDAP) 7
Same name and namespace in other branches
- 8.2 ldap_authorization/ldap_authorization_og/LdapAuthorizationConsumerOG.class.php \LdapAuthorizationConsumerOG::__construct()
- 7.2 ldap_authorization/ldap_authorization_og/LdapAuthorizationConsumerOG.class.php \LdapAuthorizationConsumerOG::__construct()
Constructor Method
Overrides LdapAuthorizationConsumerAbstract::__construct
File
- ldap_authorization/
ldap_authorization_og/ LdapAuthorizationConsumerOG.class.php, line 35
Class
Code
function __construct($consumer_type = NULL) {
$this->ogVersion = ldap_authorization_og_og_version();
$params = ldap_authorization_og_ldap_authorization_consumer();
if ($this->ogVersion == 1) {
$this->ogRoles = og_roles(0);
$this->ogRolesByName = array_flip($this->ogRoles);
}
else {
$this
->_setConsumerIDs();
}
parent::__construct('og_group', $params['og_group']);
}