ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
Parse.php File Reference

Go to the source code of this file.

Data Structures

class  Auth_OpenID_Parse
 This module implements a VERY limited parser that finds <link> tags in the head of HTML or XHTML documents and parses out their attributes according to the OpenID spec. More...
 

Functions

 Auth_OpenID_legacy_discover ($html_text, $server_rel, $delegate_rel)
 

Function Documentation

◆ Auth_OpenID_legacy_discover()

Auth_OpenID_legacy_discover (   $html_text,
  $server_rel,
  $delegate_rel 
)

Definition at line 359 of file Parse.php.

361{
362 $p = new Auth_OpenID_Parse();
363
364 $link_attrs = $p->parseLinkAttrs($html_text);
365
366 $server_url = $p->findFirstHref($link_attrs,
367 $server_rel);
368
369 if ($server_url === null) {
370 return false;
371 } else {
372 $delegate_url = $p->findFirstHref($link_attrs,
373 $delegate_rel);
374 return array($delegate_url, $server_url);
375 }
376}
This module implements a VERY limited parser that finds <link> tags in the head of HTML or XHTML docu...
Definition: Parse.php:87

Referenced by Auth_OpenID_ServiceEndpoint\fromHTML().

+ Here is the caller graph for this function: