You are here

public function LdapAuthorizationConsumerOG::__construct in Lightweight Directory Access Protocol (LDAP) 7.2

Same name and namespace in other branches
  1. 8.2 ldap_authorization/ldap_authorization_og/LdapAuthorizationConsumerOG.class.php \LdapAuthorizationConsumerOG::__construct()
  2. 7 ldap_authorization/ldap_authorization_og/LdapAuthorizationConsumerOG.class.php \LdapAuthorizationConsumerOG::__construct()

Constructor Method.

Parameters

string $consumer_type: e.g. drupal_role, og_group.

array $params: as associative array of default properties.

Overrides LdapAuthorizationConsumerAbstract::__construct

File

ldap_authorization/ldap_authorization_og/LdapAuthorizationConsumerOG.class.php, line 37

Class

LdapAuthorizationConsumerOG

Code

public function __construct($consumer_type) {
  $this->defaultMembershipRid = NULL;
  $this->anonymousRid = NULL;
  $params = ldap_authorization_og_ldap_authorization_consumer();
  parent::__construct('og_group', $params['og_group']);
}