![]() |
API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|
Public Member Functions | |
setup ($config) | |
getFixesForLevel ($level) | |
makeFixesForLevel ($fixes) | |
populate ($fixes) | |
getFixType ($name) | |
makeFixes () | |
![]() | |
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) | |
Data Fields | |
$levels = array(0 => 'none', 'light', 'medium', 'heavy') | |
$defaultLevel = null | |
$fixesForLevel | |
![]() | |
$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 |
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 |
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_Strict, HTMLPurifier_HTMLModule_Tidy_XHTML, and HTMLPurifier_HTMLModule_Tidy_XHTMLAndHTML4.
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 |
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 |
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.
$defaultLevel = null |
Default level to place all fixes in. Disabled by default. @type string
$fixesForLevel |
Lists of fixes used by getFixesForLevel(). Format is: HTMLModule_Tidy->fixesForLevel[$level] = array('fix-1', 'fix-2'); @type array
$levels = array(0 => 'none', 'light', 'medium', 'heavy') |
List of supported levels. Index zero is a special case "no fixes" level. @type array