XOOPS 2.5.6
Final
|
Public Member Functions | |
getFixesForLevel ($level) | |
getFixType ($name) | |
makeFixes () | |
makeFixesForLevel ($fixes) | |
populate ($fixes) | |
setup ($config) | |
Public Member Functions inherited from HTMLPurifier_HTMLModule | |
addBlankElement ($element) | |
addElement ($element, $type, $contents, $attr_includes=array(), $attr=array()) | |
addElementToContentSet ($element, $type) | |
getChildDef ($def) | |
makeLookup ($list) | |
mergeInAttrIncludes (&$attr, $attr_includes) | |
parseContents ($contents) | |
setup ($config) | |
Public Attributes | |
$defaultLevel = null | |
$fixesForLevel | |
$levels = array(0 => 'none', 'light', 'medium', 'heavy') | |
Public Attributes inherited from HTMLPurifier_HTMLModule | |
$attr_collections = array() | |
$content_sets = array() | |
$defines_child_def = false | |
$elements = array() | |
$info = array() | |
$info_attr_transform_post = array() | |
$info_attr_transform_pre = array() | |
$info_injector = array() | |
$info_tag_transform = array() | |
$name | |
$safe = true | |
Abstract class for a set of proprietary modules that clean up (tidy) poorly written HTML.
HTMLPurifier_HTMLModule_Tidy::getFixesForLevel | ( | $level | ) |
Retrieves all fixes per a level, returning fixes for that specific level as well as all levels below it.
$level | String level identifier, see $levels for valid values |
Definition at line 73 of file Tidy.php.
Referenced by setup().
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 172 of file Tidy.php.
References HTMLPurifier_HTMLModule\$name, and $type.
Referenced by populate().
HTMLPurifier_HTMLModule_Tidy::makeFixes | ( | ) |
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.
Definition at line 103 of file Tidy.php.
References $defaultLevel.
Referenced by setup().
HTMLPurifier_HTMLModule_Tidy::populate | ( | $fixes | ) |
Populates the module with transforms and other special-case code based on a list of fixes passed to it
$lookup | Lookup table of fixes to activate |
Definition at line 120 of file Tidy.php.
References HTMLPurifier_HTMLModule\$name, $type, HTMLPurifier_HTMLModule\addBlankElement(), and getFixType().
Referenced by setup().
HTMLPurifier_HTMLModule_Tidy::setup | ( | $config | ) |
Lazy load constructs the module by determining the necessary fixes to create and then delegating to the populate() function.
Definition at line 38 of file Tidy.php.
References $config, HTMLPurifier_HTMLModule\$name, getFixesForLevel(), makeFixes(), makeFixesForLevel(), and populate().
HTMLPurifier_HTMLModule_Tidy::$defaultLevel = null |
Default level to place all fixes in. Disabled by default
Definition at line 20 of file Tidy.php.
Referenced by makeFixesForLevel().
HTMLPurifier_HTMLModule_Tidy::$fixesForLevel |
Lists of fixes used by getFixesForLevel(). Format is: HTMLModule_Tidy->fixesForLevel[$level] = array('fix-1', 'fix-2');
HTMLPurifier_HTMLModule_Tidy::$levels = array(0 => 'none', 'light', 'medium', 'heavy') |