You are here

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

get list of all authorization consumer ids available to a this authorization consumer. For example for drupal_roles, this would be an array of drupal roles such as array('admin', 'author', 'reviewer',... ). For organic groups in might be all the names of organic groups.

return array in form array(id1, id2, id3,...)

Overrides LdapAuthorizationConsumerAbstract::availableConsumerIDs

2 calls to LdapAuthorizationConsumerDrupalRole::availableConsumerIDs()
LdapAuthorizationConsumerDrupalRole::createConsumers in ldap_authorization/ldap_authorization_drupal_role/LdapAuthorizationConsumerRole.class.php
extends createConsumer method of base class
LdapAuthorizationConsumerDrupalRole::validateAuthorizationMappingTarget in ldap_authorization/ldap_authorization_drupal_role/LdapAuthorizationConsumerRole.class.php

File

ldap_authorization/ldap_authorization_drupal_role/LdapAuthorizationConsumerRole.class.php, line 51

Class

LdapAuthorizationConsumerDrupalRole

Code

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