Class Auth_OpenID_Parse

Description

Located in /Auth/OpenID/Parse.php (line 87)


	
			
Variable Summary
Method Summary
 Auth_OpenID_Parse Auth_OpenID_Parse ()
 void closeTag ( $tag_name)
 void findFirstHref ( $link_attrs_list,  $target_rel)
 void findLinksRel ( $link_attrs_list,  $target_rel)
 void headFind ()
 void htmlBegin ( $s)
 void htmlEnd ( $s)
 void linkHasRel ( $link_attrs,  $target_rel)
 void match ( $regexp,  $text,  &$match)
 void openTag ( $tag_name)
 array parseLinkAttrs (string $html)
 void relMatches ( $rel_attr,  $target_rel)
 void removeQuotes ( $str)
 void replaceEntities ( $str)
 void tagMatcher ( $tag_name, [ $close_tags = null])
Variables
mixed $_attr_find = '\b(\w+)=("[^"]*"|\'[^\']*\'|[^\'"\s\/<>]+)' (line 106)
mixed $_close_tag_expr = "<((\/%s\b)|(%s[^>\/]*\/))>" (line 109)
mixed $_open_tag_expr = "<%s\b" (line 108)
mixed $_removed_re =
"<!--.*?-->|<!\[CDATA\[.*?\]\]>|<script\b(?!:)[^>]*>.*?<\/script>"
(line 97)

Stuff to remove before we start looking for tags

mixed $_re_flags = "si" (line 92)

Specify some flags for use with regex matching.

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

Starts with the tag name at a word boundary, where the tag name

is not a namespace

Methods
Constructor Auth_OpenID_Parse (line 111)
Auth_OpenID_Parse Auth_OpenID_Parse ()
closeTag (line 161)
void closeTag ( $tag_name)
  • $tag_name
findFirstHref (line 344)
void findFirstHref ( $link_attrs_list,  $target_rel)
  • $link_attrs_list
  • $target_rel
findLinksRel (line 329)
void findLinksRel ( $link_attrs_list,  $target_rel)
  • $link_attrs_list
  • $target_rel
headFind (line 191)
void headFind ()
htmlBegin (line 167)
void htmlBegin ( $s)
  • $s
htmlEnd (line 179)
void htmlEnd ( $s)
  • $s
linkHasRel (line 320)
void linkHasRel ( $link_attrs,  $target_rel)
  • $link_attrs
  • $target_rel
match (line 219)
void match ( $regexp,  $text,  &$match)
  • $regexp
  • $text
  • &$match
openTag (line 155)
void openTag ( $tag_name)
  • $tag_name
parseLinkAttrs (line 247)

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

  • return: An array of arrays of attributes, one for each link tag
  • 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.
array parseLinkAttrs (string $html)
  • string $html: The text to parse
relMatches (line 305)
void relMatches ( $rel_attr,  $target_rel)
  • $rel_attr
  • $target_rel
removeQuotes (line 204)
void removeQuotes ( $str)
  • $str
replaceEntities (line 196)
void replaceEntities ( $str)
  • $str
tagMatcher (line 140)

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

void tagMatcher ( $tag_name, [ $close_tags = null])
  • $tag_name
  • $close_tags

Documentation generated on Thu, 29 Jul 2010 13:59:10 -0700 by phpDocumentor 1.4.3