quailTableTest Class Reference

Inherits quailTest.

Inherited by tableComplexHasSummary, tableDataShouldHaveTh, tableHeaderLabelMustBeTerse, tableLayoutDataShouldNotHaveTh, tableLayoutHasNoCaption, tableLayoutHasNoSummary, tableLayoutMakesSenseLinearized, tableSummaryIsEmpty, tableSummaryIsSufficient, tableUseColGroup, tableUsesAbbreviationForHeader, tableUsesCaption, and tableWithMoreHeadersUseID.

Collaboration diagram for quailTableTest:
[legend]

List of all members.

Public Member Functions

 getTable ($table)
 isData ($table)


Detailed Description

Special base class which provides helper methods for tables.

Definition at line 474 of file test.php.


Member Function Documentation

quailTableTest::getTable ( table  ) 

Takes the element object of a main table and returns the number of rows and columns in it.

Parameters:
object The DOMElement of the main table tag
Returns:
array An array with the 'rows' value showing the number of rows, and columsn showing the number of columns

Definition at line 483 of file test.php.

quailTableTest::isData ( table  ) 

Finds whether or not the table is a data table. Checks that the table has a logical order and uses 'th' or 'thead' tags to illustrate the page author thought it was a data table.

Parameters:
object $table The DOMElement object of the table tag
Returns:
bool TRUE if the element is a data table, otherwise false

Definition at line 512 of file test.php.

Referenced by tableWithMoreHeadersUseID::check(), tableUseColGroup::check(), tableLayoutMakesSenseLinearized::check(), tableLayoutDataShouldNotHaveTh::check(), and tableDataShouldHaveTh::check().


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

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