API - XOOPS 2.5.11 Beta 2
By monxoops.fr
HTMLPurifier_Printer Class Reference
Inheritance diagram for HTMLPurifier_Printer:

Public Member Functions

 __construct ()
 
 prepareGenerator ($config)
 

Protected Member Functions

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

Protected Attributes

 $generator
 
 $config
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Initialize $generator.

Member Function Documentation

◆ element()

element (   $tag,
  $contents,
  $attr = array(),
  $escape = true 
)
protected

Prints a complete element with content inside

Parameters
string$tagTag name
string$contentsElement contents
array$attrTag attributes
bool$escapewhether or not to escape contents
Returns
string
Here is the call graph for this function:
Here is the caller graph for this function:

◆ elementEmpty()

elementEmpty (   $tag,
  $attr = array() 
)
protected
Parameters
string$tag
array$attr
Returns
string
Here is the caller graph for this function:

◆ end()

end (   $tag)
protected

Returns an end tag

Parameters
string$tagTag name
Returns
string
Here is the caller graph for this function:

◆ escape()

escape (   $string)
protected

Escapes a string for HTML output.

Parameters
string$stringString to escape
Returns
string
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getClass()

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

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

Parameters
object$objObject to determine class of
string$sec_prefixFurther prefix to remove
Returns
string
Here is the call graph for this function:
Here is the caller graph for this function:

◆ listify()

listify (   $array,
  $polite = false 
)
protected

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

Parameters
string[]$arrayList of strings
bool$politeBool whether or not to add an end before the last
Returns
string
Here is the caller graph for this function:

◆ prepareGenerator()

prepareGenerator (   $config)

Give generator necessary configuration if possible

Parameters
HTMLPurifier_Config$config
Here is the caller graph for this function:

◆ row()

row (   $name,
  $value 
)
protected

Prints a simple key/value row in a table.

Parameters
string$nameKey
mixed$valueValue
Returns
string
Here is the call graph for this function:
Here is the caller graph for this function:

◆ start()

start (   $tag,
  $attr = array() 
)
protected

Main function that renders object or aspect of that object

Note
Parameters vary depending on printer Returns a start tag
Parameters
string$tagTag name
array$attrAttribute array
Returns
string
Here is the caller graph for this function:

◆ text()

text (   $text)
protected
Parameters
string$text
Returns
string
Here is the caller graph for this function:

Field Documentation

◆ $config

$config
protected

For easy access. @type HTMLPurifier_Config

◆ $generator

$generator
protected

For HTML generation convenience funcs. @type HTMLPurifier_Generator


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