HTMLPurifier 4.4.0
HTMLPurifier_Printer Class Reference
Inheritance diagram for HTMLPurifier_Printer:
HTMLPurifier_Printer_ConfigForm HTMLPurifier_Printer_ConfigForm_bool HTMLPurifier_Printer_ConfigForm_default HTMLPurifier_Printer_ConfigForm_NullDecorator HTMLPurifier_Printer_CSSDefinition HTMLPurifier_Printer_HTMLDefinition

List of all members.

Public Member Functions

 __construct ()
 Initialize $generator.
 prepareGenerator ($config)
 Give generator necessary configuration if possible.

Protected Member Functions

 start ($tag, $attr=array())
 Main function that renders object or aspect of that object.
 end ($tag)
 Returns an end teg.
 element ($tag, $contents, $attr=array(), $escape=true)
 Prints a complete element with content inside.
 elementEmpty ($tag, $attr=array())
 text ($text)
 row ($name, $value)
 Prints a simple key/value row in a table.
 escape ($string)
 Escapes a string for HTML output.
 listify ($array, $polite=false)
 Takes a list of strings and turns them into a single list.
 getClass ($obj, $sec_prefix= '')
 Retrieves the class of an object without prefixes, as well as metadata.

Protected Attributes

 Instance of HTMLPurifier_Generator for HTML generation convenience funcs.
 Instance of HTMLPurifier_Config, for easy access.

Detailed Description

Definition at line 6 of file Printer.php.

Constructor & Destructor Documentation

HTMLPurifier_Printer::__construct ( )

Member Function Documentation

HTMLPurifier_Printer::elementEmpty ( tag,
attr = array() 
) [protected]
HTMLPurifier_Printer::escape ( string) [protected]

Escapes a string for HTML output.

$stringString to escape

Definition at line 105 of file Printer.php.

References HTMLPurifier_Encoder::cleanUTF8().

Referenced by element(), and HTMLPurifier_Printer_HTMLDefinition::renderChildren().

HTMLPurifier_Printer::getClass ( obj,
sec_prefix = '' 
) [protected]

Retrieves the class of an object without prefixes, as well as metadata.

$objObject to determine class of
$prefixFurther prefix to remove

Definition at line 134 of file Printer.php.

References $def.

Referenced by HTMLPurifier_Printer_HTMLDefinition::listifyAttr(), HTMLPurifier_Printer_HTMLDefinition::listifyObjectList(), HTMLPurifier_Printer_CSSDefinition::render(), and HTMLPurifier_Printer_HTMLDefinition::renderEnvironment().

HTMLPurifier_Printer::listify ( array,
polite = false 
) [protected]

Takes a list of strings and turns them into a single list.

$arrayList of strings
$politeBool whether or not to add an end before the last

Definition at line 116 of file Printer.php.

Referenced by HTMLPurifier_Printer_HTMLDefinition::listifyAttr(), HTMLPurifier_Printer_HTMLDefinition::listifyObjectList(), HTMLPurifier_Printer_HTMLDefinition::listifyTagLookup(), HTMLPurifier_Printer_HTMLDefinition::renderEnvironment(), and HTMLPurifier_Printer_HTMLDefinition::renderInfo().

HTMLPurifier_Printer::prepareGenerator ( config)
HTMLPurifier_Printer::row ( name,
) [protected]

Member Data Documentation

HTMLPurifier_Printer::$generator [protected]

Instance of HTMLPurifier_Generator for HTML generation convenience funcs.

Definition at line 12 of file Printer.php.

The documentation for this class was generated from the following file: