You are here

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

Same name and namespace in other branches
  1. 8.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 49

Class

LdapAuthorizationConsumerOG

Code

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