|
Cheetah
|
Public Member Functions | |
| setup ($config) | |
| getFixesForLevel ($level) | |
| makeFixesForLevel ($fixes) | |
| populate ($fixes) | |
| getFixType ($name) | |
| makeFixes () | |
Public Member Functions inherited from HTMLPurifier_HTMLModule | |
| getChildDef ($def) | |
| addElement ($element, $type, $contents, $attr_includes=array(), $attr=array()) | |
| addBlankElement ($element) | |
| addElementToContentSet ($element, $type) | |
| parseContents ($contents) | |
| mergeInAttrIncludes (&$attr, $attr_includes) | |
| makeLookup ($list) | |
Public Attributes | |
| $levels = array(0 => 'none', 'light', 'medium', 'heavy') | |
| $defaultLevel = null | |
| $fixesForLevel | |
Public Attributes inherited from HTMLPurifier_HTMLModule | |
| $name | |
| $elements = array() | |
| $info = array() | |
| $content_sets = array() | |
| $attr_collections = array() | |
| $info_tag_transform = array() | |
| $info_attr_transform_pre = array() | |
| $info_attr_transform_post = array() | |
| $info_injector = array() | |
| $defines_child_def = false | |
| $safe = true | |
Abstract class for a set of proprietary modules that clean up (tidy) poorly written HTML.
Definition at line 17476 of file HTMLPurifier.standalone.php.
| HTMLPurifier_HTMLModule_Tidy::getFixesForLevel | ( | $level | ) |
Retrieves all fixes per a level, returning fixes for that specific level as well as all levels below it.
| string | $level | level identifier, see $levels for valid values |
Definition at line 17543 of file HTMLPurifier.standalone.php.
| HTMLPurifier_HTMLModule_Tidy::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 17650 of file HTMLPurifier.standalone.php.
| HTMLPurifier_HTMLModule_Tidy::makeFixes | ( | ) |
Defines all fixes the module will perform in a compact associative array of fix name to fix implementation.
Reimplemented in HTMLPurifier_HTMLModule_Tidy_XHTML, HTMLPurifier_HTMLModule_Tidy_Strict, HTMLPurifier_HTMLModule_Tidy_XHTMLAndHTML4, HTMLPurifier_HTMLModule_Tidy_Proprietary, and HTMLPurifier_HTMLModule_Tidy_Name.
Definition at line 17693 of file HTMLPurifier.standalone.php.
| HTMLPurifier_HTMLModule_Tidy::makeFixesForLevel | ( | $fixes | ) |
Dynamically populates the $fixesForLevel member variable using the fixes array. It may be custom overloaded, used in conjunction with $defaultLevel, or not used at all.
| array | $fixes |
Definition at line 17577 of file HTMLPurifier.standalone.php.
| HTMLPurifier_HTMLModule_Tidy::populate | ( | $fixes | ) |
Populates the module with transforms and other special-case code based on a list of fixes passed to it
| array | $fixes | Lookup table of fixes to activate |
Definition at line 17597 of file HTMLPurifier.standalone.php.
| HTMLPurifier_HTMLModule_Tidy::setup | ( | $config | ) |
Lazy load constructs the module by determining the necessary fixes to create and then delegating to the populate() function.
| HTMLPurifier_Config | $config |
Reimplemented from HTMLPurifier_HTMLModule.
Definition at line 17511 of file HTMLPurifier.standalone.php.
| HTMLPurifier_HTMLModule_Tidy::$defaultLevel = null |
Default level to place all fixes in. Disabled by default. @type string
Definition at line 17490 of file HTMLPurifier.standalone.php.
| HTMLPurifier_HTMLModule_Tidy::$fixesForLevel |
Lists of fixes used by getFixesForLevel(). Format is: HTMLModule_Tidy->fixesForLevel[$level] = array('fix-1', 'fix-2'); @type array
Definition at line 17498 of file HTMLPurifier.standalone.php.
List of supported levels. Index zero is a special case "no fixes" level. @type array
Definition at line 17483 of file HTMLPurifier.standalone.php.