XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
HTMLPurifier_Printer Class Reference
Inheritance diagram for HTMLPurifier_Printer:
Inheritance graph

Public Member Functions

 __construct ()
 
 prepareGenerator ($config)
 

Protected Member Functions

 element ($tag, $contents, $attr=array(), $escape=true)
 
 elementEmpty ($tag, $attr=array())
 
 end ($tag)
 
 escape ($string)
 
 getClass ($obj, $sec_prefix= '')
 
 listify ($array, $polite=false)
 
 row ($name, $value)
 
 start ($tag, $attr=array())
 
 text ($text)
 

Protected Attributes

 $config
 
 $generator
 

Detailed Description

Definition at line 6 of file Printer.php.

Constructor & Destructor Documentation

HTMLPurifier_Printer::__construct ( )

Initialize $generator.

Definition at line 22 of file Printer.php.

Member Function Documentation

HTMLPurifier_Printer::element (   $tag,
  $contents,
  $attr = array(),
  $escape = true 
)
protected
HTMLPurifier_Printer::elementEmpty (   $tag,
  $attr = array() 
)
protected
HTMLPurifier_Printer::escape (   $string)
protected

Escapes a string for HTML output.

Parameters
$stringString to escape

Definition at line 105 of file Printer.php.

References HTMLPurifier_Encoder\cleanUTF8().

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

Here is the call graph for this function:

Here is the caller graph for this function:

HTMLPurifier_Printer::getClass (   $obj,
  $sec_prefix = '' 
)
protected

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

Parameters
$objObject to determine class of
$prefixFurther prefix to remove

Definition at line 134 of file Printer.php.

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

Here is the caller graph for this function:

HTMLPurifier_Printer::listify (   $array,
  $polite = false 
)
protected

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

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

Definition at line 116 of file Printer.php.

References $i, and $ret.

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

Here is the caller graph for this function:

HTMLPurifier_Printer::prepareGenerator (   $config)

Give generator necessary configuration if possible

Definition at line 28 of file Printer.php.

References $config.

Referenced by HTMLPurifier_Printer_ConfigForm\render(), HTMLPurifier_Printer_ConfigForm_NullDecorator\render(), HTMLPurifier_Printer_ConfigForm_default\render(), and HTMLPurifier_Printer_ConfigForm_bool\render().

Here is the caller graph for this function:

HTMLPurifier_Printer::row (   $name,
  $value 
)
protected

Prints a simple key/value row in a table.

Parameters
$nameKey
$valueValue

Definition at line 91 of file Printer.php.

References element(), end(), and start().

Referenced by HTMLPurifier_Printer_CSSDefinition\render(), HTMLPurifier_Printer_HTMLDefinition\renderDoctype(), HTMLPurifier_Printer_HTMLDefinition\renderEnvironment(), and HTMLPurifier_Printer_HTMLDefinition\renderInfo().

Here is the call graph for this function:

Here is the caller graph for this function:

HTMLPurifier_Printer::text (   $text)
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: