/** * Constructor Method * */ 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']); }
function __construct($consumer_type) { $this->ogVersion = ldap_authorization_og_og_version(); if ($this->ogVersion == 1) { $this->defaultMembershipRid = ldap_authorization_og1_role_name_to_role_id(OG_AUTHENTICATED_ROLE); $this->anonymousRid = ldap_authorization_og1_role_name_to_role_id(OG_ANONYMOUS_ROLE); } else { //@todo these properties are not used in ldap og 2, but when they are their derivation needs to be examined and tested // as they may be per entity rids, not global. $this->defaultMembershipRid = NULL; // ldap_authorization_og_rid_from_role_name(OG_AUTHENTICATED_ROLE); $this->anonymousRid = NULL; //ldap_authorization_og_rid_from_role_name(OG_ANONYMOUS_ROLE); } $params = ldap_authorization_og_ldap_authorization_consumer(); parent::__construct('og_group', $params['og_group']); }
/** * Constructor Method * */ function __construct($consumer_type = NULL) { $params = ldap_authorization_drupal_role_ldap_authorization_consumer(); $this->refreshConsumerIDs(); parent::__construct('drupal_role', $params['drupal_role']); }
function __construct($consumer_type) { $this->ogVersion = ldap_authorization_og_og_version(); $params = ldap_authorization_og_ldap_authorization_consumer(); parent::__construct('og_group', $params['og_group']); }