Go to the source code of this file.
Namespaces |
namespace | OpenID |
| This module contains code for dealing with associations between consumers and servers.
|
Function Documentation
Auth_OpenID_legacy_discover |
( |
|
$html_text, |
|
|
|
$server_rel, |
|
|
|
$delegate_rel |
|
) |
| |
Definition at line 359 of file Parse.php.
Referenced by Auth_OpenID_ServiceEndpoint\fromHTML().
{
$link_attrs = $p->parseLinkAttrs($html_text);
$server_url = $p->findFirstHref($link_attrs,
$server_rel);
if ($server_url === null) {
return false;
} else {
$delegate_url = $p->findFirstHref($link_attrs,
$delegate_rel);
return array($delegate_url, $server_url);
}
}