You are here

public function LdapAuthorizationConsumerOG::og2ConsumerIdParts in Lightweight Directory Access Protocol (LDAP) 8.2

Same name and namespace in other branches
  1. 7.2 ldap_authorization/ldap_authorization_og/LdapAuthorizationConsumerOG.class.php \LdapAuthorizationConsumerOG::og2ConsumerIdParts()
2 calls to LdapAuthorizationConsumerOG::og2ConsumerIdParts()
LdapAuthorizationConsumerOG::flushRelatedCaches in ldap_authorization/ldap_authorization_og/LdapAuthorizationConsumerOG.class.php
attempt to flush related caches. This will be something like og_invalidate_cache($gids)
LdapAuthorizationConsumerOG::grantsAndRevokes in ldap_authorization/ldap_authorization_og/LdapAuthorizationConsumerOG.class.php

File

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

Class

LdapAuthorizationConsumerOG

Code

public function og2ConsumerIdParts($consumer_id) {
  if (!is_scalar($consumer_id)) {
    return array(
      NULL,
      NULL,
      NULL,
    );
  }
  $parts = explode(':', $consumer_id);
  return count($parts) != 3 ? array(
    NULL,
    NULL,
    NULL,
  ) : $parts;
}