ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
Parse.php File Reference

Go to the source code of this file.

Data Structures

class  Auth_OpenID_Parse
 Require Auth_OpenID::arrayGet(). More...

Namespaces

namespace  OpenID
 This module contains code for dealing with associations between consumers and servers.

Functions

 Auth_OpenID_legacy_discover ($html_text, $server_rel, $delegate_rel)

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().

{
$p = new Auth_OpenID_Parse();
$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);
}
}

+ Here is the caller graph for this function: