You are here

public function LdapAuthorizationConsumerOG::availableConsumerIDs in Lightweight Directory Access Protocol (LDAP) 7

* Return list of all available consumer ids/authorization ids *

Parameters

boolean $reset whether to rebuild array: * @return array of consumer ids of form: * array([og-group-id]-[rid], ...) * such as array('7-2', '3-3')

Overrides LdapAuthorizationConsumerAbstract::availableConsumerIDs

2 calls to LdapAuthorizationConsumerOG::availableConsumerIDs()
LdapAuthorizationConsumerOG::grantSingleAuthorization in ldap_authorization/ldap_authorization_og/LdapAuthorizationConsumerOG.class.php
add user to group and grant a role.
LdapAuthorizationConsumerOG::validateAuthorizationMappingTarget in ldap_authorization/ldap_authorization_og/LdapAuthorizationConsumerOG.class.php
* Validate authorization mappings on LDAP Authorization OG Admin form. * *

File

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

Class

LdapAuthorizationConsumerOG

Code

public function availableConsumerIDs($reset = FALSE) {
  if ($reset || !is_array($this->_availableConsumerIDs)) {
    $this
      ->refreshConsumerIDs();
  }
  return array_keys($this->_availableConsumerIDs);
}