Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: OpenID

License

Content on this site is copyright © 2005 - 2008 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5. Some parts of this website may be subject to other licenses.

 Class Auth_OpenID_Parse

Description

Located in /openid/Auth/OpenID/Parse.php (line 89)

Class Auth_OpenID_Parse
Variable Summary
Variable mixed $_attr_find
Variable mixed $_removed_re
Variable mixed $_re_flags
Variable mixed $_tag_expr
Method Summary
Constructor Auth_OpenID_Parse Auth_OpenID_Parse ()
Method void findFirstHref ( $link_attrs_list,  $target_rel)
Method void findLinksRel ( $link_attrs_list,  $target_rel)
Method void headFind ()
Method void htmlFind ()
Method void linkHasRel ( $link_attrs,  $target_rel)
Method array parseLinkAttrs (string $html)
Method void relMatches ( $rel_attr,  $target_rel)
Method void removeQuotes ( $str)
Method void replaceEntities ( $str)
Method void tagMatcher ( $tag_name, [ $close_tags = null])
Variables
mixed $_attr_find = '\b(\w+)=("[^"]*"|\'[^\']*\'|[^\'"\s\/<>]+)' (line 108)
mixed $_removed_re =
"<!--.*?-->|<!\[CDATA\[.*?\]\]>|<script\b(?!:)[^>]*>.*?<\/script>"
(line 99)

Stuff to remove before we start looking for tags

mixed $_re_flags = "si" (line 94)

Specify some flags for use with regex matching.

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

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

is not a namespace

Methods
Constructor Auth_OpenID_Parse (line 110)
Auth_OpenID_Parse Auth_OpenID_Parse ()
findFirstHref (line 277)
void findFirstHref ( $link_attrs_list,  $target_rel)
  • $link_attrs_list
  • $target_rel
findLinksRel (line 262)
void findLinksRel ( $link_attrs_list,  $target_rel)
  • $link_attrs_list
  • $target_rel
headFind (line 157)
void headFind ()
htmlFind (line 152)
void htmlFind ()
linkHasRel (line 253)
void linkHasRel ( $link_attrs,  $target_rel)
  • $link_attrs
  • $target_rel
parseLinkAttrs (line 193)

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
array parseLinkAttrs (string $html)
  • string $html: The text to parse
relMatches (line 238)
void relMatches ( $rel_attr,  $target_rel)
  • $rel_attr
  • $target_rel
removeQuotes (line 170)
void removeQuotes ( $str)
  • $str
replaceEntities (line 162)
void replaceEntities ( $str)
  • $str
tagMatcher (line 139)

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 Tue, 29 Jan 2008 18:48:55 +0000 by phpDocumentor 1.3.1