reportDemo Class Reference
[Reporters]

Inherits quailReporter.

Collaboration diagram for reportDemo:
[legend]

List of all members.

Public Member Functions

 getReport ()
 strnpos ($haystack, $needle, $occurance, $pos=0)
 parseURL ($url)
 completeURLs ($HTML, $url)


Detailed Description

Returns the entire document marked-up to highlight problems.

Definition at line 27 of file reporter.demo.php.


Member Function Documentation

reportDemo::completeURLs ( HTML,
url 
)

Turns all relative links to absolute links so that the page can be rendered correctly.

Parameters:
string $HTML A complete HTML document
string $url The absolute URL to the document
Returns:
string A HTML document with all the relative links converted to absolute links

Definition at line 106 of file reporter.demo.php.

References parseURL(), and strnpos().

Referenced by getReport().

reportDemo::getReport (  ) 

The getReport method - we iterate through every test item and add additional attributes to build the report UI.

Returns:
string A fully-formed HTML document.

Definition at line 42 of file reporter.demo.php.

References completeURLs().

reportDemo::parseURL ( url  ) 

A helper function for completeURLs. Parses a URL into an the scheme, host, and path

Parameters:
string $url The URL to parse
Returns:
array An array that includes the scheme, host, and path of the URL

Definition at line 88 of file reporter.demo.php.

Referenced by completeURLs().

reportDemo::strnpos ( haystack,
needle,
occurance,
pos = 0 
)

Finds the final postion of a needle in the haystack

Definition at line 76 of file reporter.demo.php.

Referenced by completeURLs().


The documentation for this class was generated from the following file:

Generated on Sat Aug 21 08:55:13 2010 for QUAIL Accessibility Information library by  doxygen 1.5.7.1