JanRain OpenID Library

Auth_OpenID_Parse
in package

Table of Contents

$_attr_find  : mixed
$_close_tag_expr  : mixed
$_open_tag_expr  : mixed
$_re_flags  : mixed
Specify some flags for use with regex matching.
$_removed_re  : mixed
Stuff to remove before we start looking for tags
$_tag_expr  : mixed
Starts with the tag name at a word boundary, where the tag name is not a namespace
__construct()  : mixed
closeTag()  : mixed
findFirstHref()  : mixed
findLinksRel()  : mixed
headFind()  : mixed
htmlBegin()  : mixed
htmlEnd()  : mixed
linkHasRel()  : mixed
match()  : mixed
openTag()  : mixed
parseLinkAttrs()  : array<string|int, mixed>
Find all link tags in a string representing a HTML document and return a list of their attributes.
relMatches()  : mixed
removeQuotes()  : mixed
replaceEntities()  : mixed
tagMatcher()  : string
Returns a regular expression that will match a given tag in an SGML string.

Properties

$_attr_find

public mixed $_attr_find = '\\b(\\w+)=("[^"]*"|\'[^\']*\'|[^\'"\\s\\/<>]+)'

$_close_tag_expr

public mixed $_close_tag_expr = "<((\\/%s\\b)|(%s[^>\\/]*\\/))>"

$_open_tag_expr

public mixed $_open_tag_expr = "<%s\\b"

$_re_flags

Specify some flags for use with regex matching.

public mixed $_re_flags = "si"

$_removed_re

Stuff to remove before we start looking for tags

public mixed $_removed_re = "<!--.*?-->|<!\\[CDATA\\[.*?\\]\\]>|<script\\b(?!:)[^>]*>.*?<\\/script>"

$_tag_expr

Starts with the tag name at a word boundary, where the tag name is not a namespace

public mixed $_tag_expr = "<%s\\b(?!:)([^>]*?)(?:\\/>|>(.*)(?:<\\/?%s\\s*>|\\Z))"

Methods

__construct()

public __construct() : mixed
Return values
mixed

closeTag()

public closeTag(mixed $tag_name) : mixed
Parameters
$tag_name : mixed
Return values
mixed

findFirstHref()

public findFirstHref(mixed $link_attrs_list, mixed $target_rel) : mixed
Parameters
$link_attrs_list : mixed
$target_rel : mixed
Return values
mixed

findLinksRel()

public findLinksRel(mixed $link_attrs_list, mixed $target_rel) : mixed
Parameters
$link_attrs_list : mixed
$target_rel : mixed
Return values
mixed

headFind()

public headFind() : mixed
Return values
mixed

htmlBegin()

public htmlBegin(mixed $s) : mixed
Parameters
$s : mixed
Return values
mixed

htmlEnd()

public htmlEnd(mixed $s) : mixed
Parameters
$s : mixed
Return values
mixed

linkHasRel()

public linkHasRel(mixed $link_attrs, mixed $target_rel) : mixed
Parameters
$link_attrs : mixed
$target_rel : mixed
Return values
mixed

match()

public match(mixed $regexp, mixed $text, mixed &$match) : mixed
Parameters
$regexp : mixed
$text : mixed
$match : mixed
Return values
mixed

openTag()

public openTag(mixed $tag_name) : mixed
Parameters
$tag_name : mixed
Return values
mixed

parseLinkAttrs()

Find all link tags in a string representing a HTML document and return a list of their attributes.

public parseLinkAttrs(string $html) : array<string|int, mixed>
Parameters
$html : string

The text to parse

Tags
todo

This is quite ineffective and may fail with the default pcre.backtrack_limit of 100000 in PHP 5.2, if $html is big. It should rather use stripos (in PHP5) or strpos()+strtoupper() in PHP4 to manage this.

Return values
array<string|int, mixed>

$list An array of arrays of attributes, one for each link tag

relMatches()

public relMatches(mixed $rel_attr, mixed $target_rel) : mixed
Parameters
$rel_attr : mixed
$target_rel : mixed
Return values
mixed

removeQuotes()

public removeQuotes(mixed $str) : mixed
Parameters
$str : mixed
Return values
mixed

replaceEntities()

public replaceEntities(mixed $str) : mixed
Parameters
$str : mixed
Return values
mixed

tagMatcher()

Returns a regular expression that will match a given tag in an SGML string.

public tagMatcher(string $tag_name[, array<string|int, mixed> $close_tags = null ]) : string
Parameters
$tag_name : string
$close_tags : array<string|int, mixed> = null
Return values
string

Search results