You are here

public function LdapAuthorizationConsumerAbstract::usersAuthorizations in Lightweight Directory Access Protocol (LDAP) 7.2

Same name and namespace in other branches
  1. 8.2 ldap_authorization/LdapAuthorizationConsumerAbstract.class.php \LdapAuthorizationConsumerAbstract::usersAuthorizations()

Return all user consumer ids regardless of it they were granted by this module.

Parameters

user object $user:

Return value

array of consumer ids such as array('3-2','7-2'), array('admin','user_admin')

2 calls to LdapAuthorizationConsumerAbstract::usersAuthorizations()
LdapAuthorizationConsumerAbstract::grantsAndRevokes in ldap_authorization/LdapAuthorizationConsumerAbstract.class.php
LdapAuthorizationConsumerAbstract::hasAuthorization in ldap_authorization/LdapAuthorizationConsumerAbstract.class.php
NOTE this is in mixed case, since we must rely on whatever module is storing the authorization id.
2 methods override LdapAuthorizationConsumerAbstract::usersAuthorizations()
LdapAuthorizationConsumerDrupalRole::usersAuthorizations in ldap_authorization/ldap_authorization_drupal_role/LdapAuthorizationConsumerRole.class.php
Return all user consumer ids regardless of it they were granted by this module.
LdapAuthorizationConsumerOG::usersAuthorizations in ldap_authorization/ldap_authorization_og/LdapAuthorizationConsumerOG.class.php

File

ldap_authorization/LdapAuthorizationConsumerAbstract.class.php, line 478
Abstract class to represent an ldap_authorization consumer behavior such as drupal_role, og_group, etc. each authorization comsumer will extend this class with its own class named LdapAuthorizationConsumer<consumer type> such as…

Class

LdapAuthorizationConsumerAbstract

Code

public function usersAuthorizations(&$user) {

  // Method must be overridden.
}