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

Class: Parser

Source Location: /Parser.php

Class Overview


Parser main class.

Author(s):

Variables

Methods


Child classes:

Parser_Uwa
UWA XHTML Widget Parser.

Class Details

[line 31] Parser main class.

Tags:

abstract:  
[ Top ]

Class Variables

$_content =

[line 52]

Widget file content.

Tags:

access:  protected
Type:   string
[ Top ]

$_fetcher =

[line 45]

Widget file fetcher.

Tags:

access:  protected
Type:   Fetcher
[ Top ]

$_widget =

[line 38]

The widget to build.

Tags:

access:  protected
Type:   Widget
[ Top ]

$_xml =

[line 59]

Widget as XML.

Tags:

access:  protected
Type:   SimpleXMLElement
[ Top ]

Class Methods


constructor __construct [line 67]

Parser __construct( string $url, [boolean $cache = true])
Widget Parser constructor.

Tags:

access:  public

Parameters:

string   $url   The URL to parse
boolean   $cache   Whether to use the cache
[ Top ]

method buildWidget [line 78]

Widget buildWidget( )
Widget builder.

Tags:

return:  The widget instance built from the skeleton parsing
access:  public
[ Top ]

method handleContent [line 151]

void handleContent( )
Content handler that does nothing but can be redefined in subclasses.

Tags:

access:  protected

Overridden in child classes as:

Parser_Uwa::handleContent()
Normalizes a HTML document to try to make its markup XML valid.

[ Top ]

method parseBody [line 173]

void parseBody( )

Tags:

abstract:  
access:  public

Overridden in child classes as:

Parser_Uwa::parseBody()
Retrieves the widget body.

[ Top ]

method parseContentAsXml [line 102]

SimpleXMLElement parseContentAsXml( )
Retrieves the file content as XML.

Tags:

return:  The file as XML
access:  public
[ Top ]

method parseExternalScripts [line 171]

void parseExternalScripts( )

Tags:

abstract:  
access:  public

Overridden in child classes as:

Parser_Uwa::parseExternalScripts()
Retrieves the list of external JavaScript libraries URI, excluding the UWA environment emulation files.

[ Top ]

method parseExternalStylesheets [line 167]

void parseExternalStylesheets( )

Tags:

abstract:  
access:  public

Overridden in child classes as:

Parser_Uwa::parseExternalStylesheets()
Retrieves the list of external CSS stylesheets URI, excluding the UWA and Mini-API ones.

[ Top ]

method parseIcon [line 159]

void parseIcon( )

Tags:

abstract:  
access:  public

Overridden in child classes as:

Parser_Uwa::parseIcon()
Retrieves the widget icon URL.

[ Top ]

method parseMetadata [line 157]

void parseMetadata( )

Tags:

abstract:  
access:  public

Overridden in child classes as:

Parser_Uwa::parseMetadata()
Retrieves the metadata.

[ Top ]

method parsePreferences [line 163]

void parsePreferences( )

Tags:

abstract:  
access:  public

Overridden in child classes as:

Parser_Uwa::parsePreferences()
Retrieves the widget preferences.

[ Top ]

method parseRichIcon [line 161]

void parseRichIcon( )

Tags:

abstract:  
access:  public

Overridden in child classes as:

Parser_Uwa::parseRichIcon()
Retrieves the widget rich icon URL.

[ Top ]

method parseScript [line 169]

void parseScript( )

Tags:

abstract:  
access:  public

Overridden in child classes as:

Parser_Uwa::parseScript()
Retrieves the internal JavaScript code.

[ Top ]

method parseStyle [line 165]

void parseStyle( )

Tags:

abstract:  
access:  public

Overridden in child classes as:

Parser_Uwa::parseStyle()
Retrieves the widget style information.

[ Top ]

method parseTitle [line 155]

void parseTitle( )
* ABSTRACT FUNCTIONS **

Tags:

abstract:  
access:  public

Overridden in child classes as:

Parser_Uwa::parseTitle()
Parses the widget title.

[ Top ]

Documentation generated on Fri, 30 May 2008 16:46:43 +0200 by phpDocumentor 1.4.1