HTMLPurifier 4.4.0
|
Public Member Functions | |
render ($config) | |
Protected Member Functions | |
renderDoctype () | |
Renders the Doctype table. | |
renderEnvironment () | |
Renders environment table, which is miscellaneous info. | |
renderContentSets () | |
Renders the Content Sets table. | |
renderInfo () | |
Renders the Elements ($info) table. | |
renderChildren ($def) | |
Renders a row describing the allowed children of an element. | |
listifyTagLookup ($array) | |
Listifies a tag lookup table. | |
listifyObjectList ($array) | |
Listifies a list of objects by retrieving class names and internal state. | |
listifyAttr ($array) | |
Listifies a hash of attributes to AttrDef classes. | |
heavyHeader ($text, $num=1) | |
Creates a heavy header row. | |
Protected Attributes | |
$def | |
Instance of HTMLPurifier_HTMLDefinition, for easy access. |
Definition at line 3 of file HTMLDefinition.php.
HTMLPurifier_Printer_HTMLDefinition::heavyHeader | ( | $ | text, |
$ | num = 1 |
||
) | [protected] |
Creates a heavy header row.
Definition at line 262 of file HTMLDefinition.php.
References HTMLPurifier_Printer::element(), HTMLPurifier_Printer::end(), and HTMLPurifier_Printer::start().
Referenced by renderContentSets(), and renderInfo().
HTMLPurifier_Printer_HTMLDefinition::listifyAttr | ( | $ | array | ) | [protected] |
Listifies a hash of attributes to AttrDef classes.
$array | Array hash in form of array('attrname' => HTMLPurifier_AttrDef) |
Definition at line 249 of file HTMLDefinition.php.
References HTMLPurifier_Printer::getClass(), and HTMLPurifier_Printer::listify().
Referenced by renderEnvironment(), and renderInfo().
HTMLPurifier_Printer_HTMLDefinition::listifyObjectList | ( | $ | array | ) | [protected] |
Listifies a list of objects by retrieving class names and internal state.
$array | List of objects |
Definition at line 236 of file HTMLDefinition.php.
References HTMLPurifier_Printer::getClass(), and HTMLPurifier_Printer::listify().
Referenced by renderEnvironment(), and renderInfo().
HTMLPurifier_Printer_HTMLDefinition::listifyTagLookup | ( | $ | array | ) | [protected] |
Listifies a tag lookup table.
$array | Tag lookup array in form of array('tagname' => true) |
Definition at line 221 of file HTMLDefinition.php.
References HTMLPurifier_Printer::listify().
Referenced by renderChildren(), renderContentSets(), and renderInfo().
HTMLPurifier_Printer_HTMLDefinition::render | ( | $ | config | ) |
Definition at line 11 of file HTMLDefinition.php.
References HTMLPurifier_Printer::$config, HTMLPurifier_Printer::end(), renderContentSets(), renderDoctype(), renderEnvironment(), renderInfo(), and HTMLPurifier_Printer::start().
HTMLPurifier_Printer_HTMLDefinition::renderChildren | ( | $ | def | ) | [protected] |
Renders a row describing the allowed children of an element.
$def | HTMLPurifier_ChildDef of pertinent element |
Definition at line 170 of file HTMLDefinition.php.
References $def, HTMLPurifier_Printer::element(), HTMLPurifier_Printer::end(), HTMLPurifier_Printer::escape(), listifyTagLookup(), and HTMLPurifier_Printer::start().
Referenced by renderEnvironment(), and renderInfo().
HTMLPurifier_Printer_HTMLDefinition::renderContentSets | ( | ) | [protected] |
Renders the Content Sets table.
Definition at line 93 of file HTMLDefinition.php.
References HTMLPurifier_Printer::element(), HTMLPurifier_Printer::end(), heavyHeader(), listifyTagLookup(), and HTMLPurifier_Printer::start().
Referenced by render().
HTMLPurifier_Printer_HTMLDefinition::renderDoctype | ( | ) | [protected] |
Renders the Doctype table.
Definition at line 32 of file HTMLDefinition.php.
References HTMLPurifier_Printer::element(), HTMLPurifier_Printer::end(), HTMLPurifier_Printer::row(), and HTMLPurifier_Printer::start().
Referenced by render().
HTMLPurifier_Printer_HTMLDefinition::renderEnvironment | ( | ) | [protected] |
Renders environment table, which is miscellaneous info.
Definition at line 49 of file HTMLDefinition.php.
References $def, HTMLPurifier_Printer::element(), HTMLPurifier_Printer::end(), HTMLPurifier_Printer::getClass(), HTMLPurifier_Printer::listify(), listifyAttr(), listifyObjectList(), renderChildren(), HTMLPurifier_Printer::row(), and HTMLPurifier_Printer::start().
Referenced by render().
HTMLPurifier_Printer_HTMLDefinition::renderInfo | ( | ) | [protected] |
Renders the Elements ($info) table.
Definition at line 110 of file HTMLDefinition.php.
References $def, HTMLPurifier_Printer::element(), HTMLPurifier_Printer::end(), heavyHeader(), HTMLPurifier_Printer::listify(), listifyAttr(), listifyObjectList(), listifyTagLookup(), renderChildren(), HTMLPurifier_Printer::row(), and HTMLPurifier_Printer::start().
Referenced by render().
HTMLPurifier_Printer_HTMLDefinition::$def [protected] |
Instance of HTMLPurifier_HTMLDefinition, for easy access.
Definition at line 9 of file HTMLDefinition.php.
Referenced by renderChildren(), renderEnvironment(), and renderInfo().