Class HTMLPurifier_Printer_HTMLDefinition

InheritanceHTMLPurifier_Printer_HTMLDefinition » HTMLPurifier_Printer

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$config For easy access. HTMLPurifier_Printer
$def HTMLPurifier_Printer_HTMLDefinition
$generator For HTML generation convenience funcs. HTMLPurifier_Printer

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Initialize $generator. HTMLPurifier_Printer
prepareGenerator() Give generator necessary configuration if possible HTMLPurifier_Printer
render() HTMLPurifier_Printer_HTMLDefinition

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
element() Prints a complete element with content inside HTMLPurifier_Printer
elementEmpty() HTMLPurifier_Printer
end() Returns an end tag HTMLPurifier_Printer
escape() Escapes a string for HTML output. HTMLPurifier_Printer
getClass() Retrieves the class of an object without prefixes, as well as metadata HTMLPurifier_Printer
heavyHeader() Creates a heavy header row HTMLPurifier_Printer_HTMLDefinition
listify() Takes a list of strings and turns them into a single list HTMLPurifier_Printer
listifyAttr() Listifies a hash of attributes to AttrDef classes HTMLPurifier_Printer_HTMLDefinition
listifyObjectList() Listifies a list of objects by retrieving class names and internal state HTMLPurifier_Printer_HTMLDefinition
listifyTagLookup() Listifies a tag lookup table. HTMLPurifier_Printer_HTMLDefinition
renderChildren() Renders a row describing the allowed children of an element HTMLPurifier_Printer_HTMLDefinition
renderContentSets() Renders the Content Sets table HTMLPurifier_Printer_HTMLDefinition
renderDoctype() Renders the Doctype table HTMLPurifier_Printer_HTMLDefinition
renderEnvironment() Renders environment table, which is miscellaneous info HTMLPurifier_Printer_HTMLDefinition
renderInfo() Renders the Elements ($info) table HTMLPurifier_Printer_HTMLDefinition
row() Prints a simple key/value row in a table. HTMLPurifier_Printer
start() Returns a start tag HTMLPurifier_Printer
text() HTMLPurifier_Printer

Property Details

$def protected property
protected $def null

Method Details

heavyHeader() protected method

Creates a heavy header row

protected string heavyHeader ( $text, $num 1 )
$text string
$num int
listifyAttr() protected method

Listifies a hash of attributes to AttrDef classes

protected string listifyAttr ( $array )
$array array

Array hash in form of array('attrname' => HTMLPurifier_AttrDef)

listifyObjectList() protected method

Listifies a list of objects by retrieving class names and internal state

protected string listifyObjectList ( $array )
$array array

List of objects

listifyTagLookup() protected method

Listifies a tag lookup table.

protected string listifyTagLookup ( $array )
$array array

Tag lookup array in form of array('tagname' => true)

render() public method

public string render ( $config )
$config HTMLPurifier_Config
renderChildren() protected method

Renders a row describing the allowed children of an element

protected string renderChildren ( $def )
$def HTMLPurifier_ChildDef

HTMLPurifier_ChildDef of pertinent element

renderContentSets() protected method

Renders the Content Sets table

protected string renderContentSets ( )
renderDoctype() protected method

Renders the Doctype table

protected string renderDoctype ( )
renderEnvironment() protected method

Renders environment table, which is miscellaneous info

protected string renderEnvironment ( )
renderInfo() protected method

Renders the Elements ($info) table

protected string renderInfo ( )