Public Member Functions | |
| __construct ($value, $guideline= 'wcag', $type= 'string', $reporter= 'static', $domain= 'en') | |
| prepareDOM () | |
| prepareValue () | |
| setOption ($variable, $value=null) | |
| getAbsolutePath ($absolute, $relative) | |
| setUri ($uri) | |
| prepareBaseUrl ($value, $type) | |
| getBaseFromFile ($file) | |
| addCSS ($css) | |
| getError ($error) | |
| loadReporter ($options=array()) | |
| isValid () | |
| runCheck ($options=null) | |
| getCSSObject () | |
| getReport ($options=array()) | |
| getTest ($test) | |
| getTestSeverity ($test) | |
| cleanup () | |
Definition at line 43 of file quail.php.
| quail::__construct | ( | $ | value, | |
| $ | guideline = 'wcag', |
|||
| $ | type = 'string', |
|||
| $ | reporter = 'static', |
|||
| $ | domain = 'en' | |||
| ) |
The class constructor
| string | $value Either the HTML string to check or the file/uri of the request | |
| string | $guideline The name of the guideline | |
| string | $type The type of the request (either file, uri, or string) | |
| string | $reporter The name of the reporter to use | |
| string | $domain The domain of the translation language to use |
| quail::addCSS | ( | $ | css | ) |
| quail::cleanup | ( | ) |
| quail::getAbsolutePath | ( | $ | absolute, | |
| $ | relative | |||
| ) |
| quail::getBaseFromFile | ( | $ | file | ) |
Retrieves the absolute path to a file
| string | $file The path to a file |
Definition at line 296 of file quail.php.
Referenced by prepareBaseUrl().
| quail::getCSSObject | ( | ) |
| quail::getError | ( | $ | error | ) |
| quail::getReport | ( | $ | options = array() |
) |
Returns a formatted report from the current reporter.
| array | $options An array of all the options |
Definition at line 380 of file quail.php.
References loadReporter().
| quail::getTest | ( | $ | test | ) |
| quail::getTestSeverity | ( | $ | test | ) |
| quail::isValid | ( | ) |
Checks that the DOM object is valid or not
Definition at line 347 of file quail.php.
Referenced by runCheck().
| quail::loadReporter | ( | $ | options = array() |
) |
A local method to load the required file for a reporter and set it for the current QUAIL object
| array | $options An array of options for the reporter |
Definition at line 332 of file quail.php.
Referenced by getReport().
| quail::prepareBaseUrl | ( | $ | value, | |
| $ | type | |||
| ) |
Formats the base URL for either a file or uri request. We are essentially formatting a base url for future reporters to use to find CSS files or for tests that use external resources (images, objects, etc) to run tests on them.
| string | $value The path value | |
| string | $type The type of request |
Definition at line 270 of file quail.php.
References getBaseFromFile().
Referenced by prepareDOM().
| quail::prepareDOM | ( | ) |
Preapres the DOMDocument object for quail. It loads based on the file type declaration and first scrubs the value using prepareValue()
Definition at line 149 of file quail.php.
References prepareBaseUrl(), and prepareValue().
Referenced by runCheck().
| quail::prepareValue | ( | ) |
If the CMS mode options are set, then we remove some items fromt the HTML value before sending it back.
Definition at line 160 of file quail.php.
Referenced by prepareDOM().
| quail::runCheck | ( | $ | options = null |
) |
Starts running automated checks. Loads the CSS file parser and the guideline object.
Definition at line 356 of file quail.php.
References getCSSObject(), isValid(), and prepareDOM().
| quail::setOption | ( | $ | variable, | |
| $ | value = null | |||
| ) |
| quail::setUri | ( | $ | uri | ) |
1.5.7.1