public function LdapAuthorizationConsumerOG::convertToFriendlyAuthorizationIds in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.2 ldap_authorization/ldap_authorization_og/LdapAuthorizationConsumerOG.class.php \LdapAuthorizationConsumerOG::convertToFriendlyAuthorizationIds()
- 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
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;
}