gehe zum Quellcode dieser Datei
Datenstrukturen | |
class | Auth_OpenID_AX |
class | Auth_OpenID_AX_Error |
class | Auth_OpenID_AX_Message |
class | Auth_OpenID_AX_AttrInfo |
class | Auth_OpenID_AX_FetchRequest |
class | Auth_OpenID_AX_KeyValueMessage |
class | Auth_OpenID_AX_FetchResponse |
class | Auth_OpenID_AX_StoreRequest |
class | Auth_OpenID_AX_StoreResponse |
Namensbereiche | |
namespace | OpenID |
Aufzählungen | |
enum | Auth_OpenID_AX_NS_URI |
enum | Auth_OpenID_AX_UNLIMITED_VALUES |
enum | Auth_OpenID_AX_MINIMUM_SUPPORTED_ALIAS_LENGTH |
Funktionen | |
Auth_OpenID_AX_checkAlias ($alias) | |
Auth_OpenID_AX_toTypeURIs (&$namespace_map, $alias_list_s) |
Auth_OpenID_AX_checkAlias | ( | $ | alias | ) |
Check an alias for invalid characters; raise AXError if any are found. Return None if the alias is valid.
Definiert in Zeile 50 der Datei AX.php.
00052 { 00053 if (strpos($alias, ',') !== false) { 00054 return new Auth_OpenID_AX_Error(sprintf( 00055 "Alias %s must not contain comma", $alias)); 00056 } 00057 if (strpos($alias, '.') !== false) { 00058 return new Auth_OpenID_AX_Error(sprintf( 00059 "Alias %s must not contain period", $alias)); 00060 } 00061 00062 return true;
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.
$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. |
Definiert in Zeile 237 der Datei AX.php.
00239 { 00240 $uris = array(); 00241 00242 if ($alias_list_s) { 00243 foreach (explode(',', $alias_list_s) as $alias) { 00244 $type_uri = $namespace_map->getNamespaceURI($alias); 00245 if ($type_uri === null) { 00246 // raise KeyError( 00247 // 'No type is defined for attribute name %r' % (alias,)) 00248 return new Auth_OpenID_AX_Error( 00249 sprintf('No type is defined for attribute name %s', 00250 $alias) 00251 ); 00252 } else { 00253 $uris[] = $type_uri; 00254 } 00255 } 00256 } 00257 00258 return $uris;
Copyright © 2003 - 2009 MyOOS [Shopsystem]. All rights reserved. MyOOS [Shopsystem] is Free Software released under the GNU/GPL License. Webmaster: info@r23.de (Impressum) |
|