Go to the source code of this file.
|
| Auth_OpenID_AX_checkAlias ($alias) |
| Check an alias for invalid characters; raise AXError if any are found. More...
|
|
| Auth_OpenID_AX_toTypeURIs ($namespace_map, $alias_list_s) |
| Given a namespace mapping and a string containing a comma-separated list of namespace aliases, return a list of type URIs that correspond to those aliases. More...
|
|
◆ Auth_OpenID_AX_checkAlias()
Auth_OpenID_AX_checkAlias |
( |
|
$alias | ) |
|
Check an alias for invalid characters; raise AXError if any are found.
Return None if the alias is valid.
Definition at line 50 of file AX.php.
52{
53 if (strpos($alias, ',') !== false) {
55 "Alias %s must not contain comma", $alias));
56 }
57 if (strpos($alias, '.') !== false) {
59 "Alias %s must not contain period", $alias));
60 }
61
62 return true;
◆ Auth_OpenID_AX_toTypeURIs()
Auth_OpenID_AX_toTypeURIs |
( |
|
$namespace_map, |
|
|
|
$alias_list_s |
|
) |
| |
Given a namespace mapping and a string containing a comma-separated list of namespace aliases, return a list of type URIs that correspond to those aliases.
- Parameters
-
$namespace_map | The mapping from namespace URI to alias |
$alias_list_s | The string containing the comma-separated list of aliases. May also be None for convenience. |
- Returns
- $seq The list of namespace URIs that corresponds to the supplied list of aliases. If the string was zero-length or None, an empty list will be returned.
return null If an alias is present in the list of aliases but is not present in the namespace map.
Definition at line 237 of file AX.php.
239{
240 $uris = array();
241
242 if ($alias_list_s) {
243 foreach (explode(',', $alias_list_s) as $alias) {
244 $type_uri = $namespace_map->getNamespaceURI($alias);
245 if ($type_uri === null) {
246
247
249 sprintf('No type is defined for attribute name %s',
250 $alias)
251 );
252 } else {
253 $uris[] = $type_uri;
254 }
255 }
256 }
257
258 return $uris;
◆ Auth_OpenID_AX_MINIMUM_SUPPORTED_ALIAS_LENGTH
const Auth_OpenID_AX_MINIMUM_SUPPORTED_ALIAS_LENGTH 32 |
◆ Auth_OpenID_AX_NS_URI
const Auth_OpenID_AX_NS_URI 'http://openid.net/srv/ax/1.0' |
Require utility classes and functions for the consumer.
Definition at line 17 of file AX.php.
◆ Auth_OpenID_AX_UNLIMITED_VALUES
const Auth_OpenID_AX_UNLIMITED_VALUES 'unlimited' |