[ class tree: OpenID ] [ index: OpenID ] [ all elements ]

Class: Auth_OpenID_Parse

Source Location: /zp-extensions/federated_logon/Auth/OpenID/Parse.php

Class Auth_OpenID_Parse

Property Summary
mixed   $_attr_find  
mixed   $_close_tag_expr  
mixed   $_open_tag_expr  
mixed   $_removed_re   Stuff to remove before we start looking for tags
mixed   $_re_flags   Specify some flags for use with regex matching.
mixed   $_tag_expr   Starts with the tag name at a word boundary, where the tag name

[ Top ]
Method Summary
Auth_OpenID_Parse   Auth_OpenID_Parse()  
void   closeTag()  
void   findFirstHref()  
void   findLinksRel()  
void   headFind()  
void   htmlBegin()  
void   htmlEnd()  
void   linkHasRel()  
void   match()  
void   openTag()  
array   parseLinkAttrs()   Find all link tags in a string representing a HTML document and return a list of their attributes.
void   relMatches()  
void   removeQuotes()  
void   replaceEntities()  
void   tagMatcher()   Returns a regular expression that will match a given tag in an SGML string.

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

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

[ Top ]
mixed   $_open_tag_expr = "<%s\b" [line 108]

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

Stuff to remove before we start looking for tags


[ Top ]
mixed   $_re_flags = "si" [line 92]

Specify some flags for use with regex matching.


[ Top ]
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


[ Top ]
Methods
Constructor Auth_OpenID_Parse  [line 111]

  Auth_OpenID_Parse Auth_OpenID_Parse( )



[ Top ]
closeTag  [line 161]

  void closeTag( $tag_name  )

Parameters:
   $tag_name: 


[ Top ]
findFirstHref  [line 341]

  void findFirstHref( $link_attrs_list, $target_rel  )

Parameters:
   $link_attrs_list: 
   $target_rel: 


[ Top ]
findLinksRel  [line 327]

  void findLinksRel( $link_attrs_list, $target_rel  )

Parameters:
   $link_attrs_list: 
   $target_rel: 


[ Top ]
headFind  [line 191]

  void headFind( )



[ Top ]
htmlBegin  [line 167]

  void htmlBegin( $s  )

Parameters:
   $s: 


[ Top ]
htmlEnd  [line 179]

  void htmlEnd( $s  )

Parameters:
   $s: 


[ Top ]
linkHasRel  [line 319]

  void linkHasRel( $link_attrs, $target_rel  )

Parameters:
   $link_attrs: 
   $target_rel: 


[ Top ]
match  [line 219]

  void match( $regexp, $text, &$match  )

Parameters:
   $regexp: 
   $text: 
   &$match: 


[ Top ]
openTag  [line 155]

  void openTag( $tag_name  )

Parameters:
   $tag_name: 


[ Top ]
parseLinkAttrs  [line 247]

  array parseLinkAttrs( string $html  )

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

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.

Parameters:
string   $html:  The text to parse

API Tags:
Return:  An array of arrays of attributes, one for each link tag


[ Top ]
relMatches  [line 305]

  void relMatches( $rel_attr, $target_rel  )

Parameters:
   $rel_attr: 
   $target_rel: 


[ Top ]
removeQuotes  [line 204]

  void removeQuotes( $str  )

Parameters:
   $str: 


[ Top ]
replaceEntities  [line 196]

  void replaceEntities( $str  )

Parameters:
   $str: 


[ Top ]
tagMatcher  [line 140]

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

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

Parameters:
   $tag_name: 
   $close_tags: 


[ Top ]

Documentation generated on Tue, 20 Dec 2011 16:07:56 +0100 by phpDocumentor 1.4.3