public function LdapAuthorizationConsumerAbstract::revokeSingleAuthorization in Lightweight Directory Access Protocol (LDAP) 7
Same name and namespace in other branches
- 8.2 ldap_authorization/LdapAuthorizationConsumerAbstract.class.php \LdapAuthorizationConsumerAbstract::revokeSingleAuthorization()
- 7.2 ldap_authorization/LdapAuthorizationConsumerAbstract.class.php \LdapAuthorizationConsumerAbstract::revokeSingleAuthorization()
Parameters
drupal user object $user to have $consumer_id revoked:
string $consumer_id $consumer_id such as drupal role name, og group name, etc.:
array $user_auth_data array of $user data specific to this consumer type.: stored in $user->data['ldap_authorization'][<consumer_type>] array
return boolen TRUE on success, FALSE on fail. If user save is FALSE, the user object will not be saved and reloaded, so a returned TRUE may be misleading.
1 call to LdapAuthorizationConsumerAbstract::revokeSingleAuthorization()
2 methods override LdapAuthorizationConsumerAbstract::revokeSingleAuthorization()
- LdapAuthorizationConsumerDrupalRole::revokeSingleAuthorization in ldap_authorization/
ldap_authorization_drupal_role/ LdapAuthorizationConsumerRole.class.php - LdapAuthorizationConsumerOG::revokeSingleAuthorization in ldap_authorization/
ldap_authorization_og/ LdapAuthorizationConsumerOG.class.php - * revoke an authorization * * extends revokeSingleAuthorization() * *
File
- ldap_authorization/
LdapAuthorizationConsumerAbstract.class.php, line 322 - abstract class to represent an ldap_authorization consumer 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
- @file abstract class to represent an ldap_authorization consumer such as drupal_role, og_group, etc. each authorization comsumer will extend this class with its own class named LdapAuthorizationConsumer<consumer type> such as…
Code
public function revokeSingleAuthorization(&$user, $role_name, &$user_auth_data) {
// method must be overridden
}