|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| setup ($config) | |
| getFixesForLevel ($level) | |
| makeFixesForLevel ($fixes) | |
| populate ($fixes) | |
| getFixType ($name) | |
| makeFixes () | |
Data Fields | |
| $levels = array(0 => 'none', 'light', 'medium', 'heavy') | |
| $defaultLevel = null | |
| $fixesForLevel | |
Abstract class for a set of proprietary modules that clean up (tidy) poorly written HTML.
| getFixesForLevel | ( | $ | level | ) |
| getFixType | ( | $ | name | ) |
Parses a fix name and determines what kind of fix it is, as well as other information defined by the fix
| $name | String name of fix |
Definition at line 172 of file Tidy.php.

| makeFixes | ( | ) |
Defines all fixes the module will perform in a compact associative array of fix name to fix implementation.
Reimplemented in HTMLPurifier_HTMLModule_Tidy_Name, HTMLPurifier_HTMLModule_Tidy_Proprietary, HTMLPurifier_HTMLModule_Tidy_XHTML, HTMLPurifier_HTMLModule_Tidy_Strict, and HTMLPurifier_HTMLModule_Tidy_XHTMLAndHTML4.
Definition at line 203 of file Tidy.php.

| makeFixesForLevel | ( | $ | fixes | ) |
| populate | ( | $ | fixes | ) |
| setup | ( | $ | config | ) |
Lazy load constructs the module by determining the necessary fixes to create and then delegating to the populate() function.
Reimplemented from HTMLPurifier_HTMLModule.
Definition at line 38 of file Tidy.php.

| $defaultLevel = null |
Default level to place all fixes in. Disabled by default
Reimplemented in HTMLPurifier_HTMLModule_Tidy_Name, HTMLPurifier_HTMLModule_Tidy_Proprietary, HTMLPurifier_HTMLModule_Tidy_XHTML, HTMLPurifier_HTMLModule_Tidy_Strict, and HTMLPurifier_HTMLModule_Tidy_Transitional.
| $fixesForLevel |
| $levels = array(0 => 'none', 'light', 'medium', 'heavy') |