You are here

public function LdapAuthorizationConsumerOG::convertToFriendlyAuthorizationIds 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::convertToFriendlyAuthorizationIds()
  2. 7 ldap_authorization/ldap_authorization_og/LdapAuthorizationConsumerOG.class.php \LdapAuthorizationConsumerOG::convertToFriendlyAuthorizationIds()

Overrides LdapAuthorizationConsumerAbstract::convertToFriendlyAuthorizationIds

See also

ldapAuthorizationConsumerAbstract::convertToFriendlyAuthorizationIds

File

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

Class

LdapAuthorizationConsumerOG

Code

public function convertToFriendlyAuthorizationIds($authorizations) {
  $authorization_ids_friendly = [];
  foreach ($authorizations as $authorization_id => $authorization) {
    $authorization_ids_friendly[] = $authorization['name'] . '  (' . $authorization_id . ')';
  }
  return $authorization_ids_friendly;
}