Öffentliche Methoden | |
setup ($config) | |
getFixesForLevel ($level) | |
makeFixesForLevel ($fixes) | |
populate ($fixes) | |
getFixType ($name) | |
makeFixes () | |
Öffentliche Methoden geerbt von 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) | |
setup ($config) | |
Datenfelder | |
$levels = array(0 => 'none', 'light', 'medium', 'heavy') | |
$defaultLevel = null | |
$fixesForLevel | |
Datenfelder geerbt von 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.
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 |
Definiert in Zeile 75 der Datei Tidy.php.
Wird benutzt von setup().
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 |
Definiert in Zeile 182 der Datei Tidy.php.
Benutzt HTMLPurifier_HTMLModule\$name.
Wird benutzt von populate().
makeFixes | ( | ) |
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 |
Definiert in Zeile 109 der Datei Tidy.php.
Benutzt $defaultLevel.
Wird benutzt von setup().
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 |
Definiert in Zeile 129 der Datei Tidy.php.
Benutzt HTMLPurifier_HTMLModule\$name, HTMLPurifier_HTMLModule\addBlankElement() und getFixType().
Wird benutzt von setup().
setup | ( | $config) |
Lazy load constructs the module by determining the necessary fixes to create and then delegating to the populate() function.
HTMLPurifier_Config | $config |
Definiert in Zeile 43 der Datei Tidy.php.
Benutzt HTMLPurifier_HTMLModule\$name, getFixesForLevel(), makeFixes(), makeFixesForLevel() und populate().
$defaultLevel = null |
Default level to place all fixes in. Disabled by default. string
Definiert in Zeile 22 der Datei Tidy.php.
Wird benutzt von makeFixesForLevel().
$fixesForLevel |
Lists of fixes used by getFixesForLevel(). Format is: HTMLModule_Tidy->fixesForLevel[$level] = array('fix-1', 'fix-2'); array
$levels = array(0 => 'none', 'light', 'medium', 'heavy') |