Moodle  2.2.1
http://www.collinsharper.com
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

Detailed Description

Definition at line 6 of file Printer.php.


Constructor & Destructor Documentation

Initialize $generator.

Definition at line 22 of file Printer.php.

Here is the caller graph for this function:


Member Function Documentation

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

Prints a complete element with content inside

Parameters:
$tagTag name
$contentsElement contents
$attrTag attributes
$escapeBool whether or not to escape contents

Definition at line 68 of file Printer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

elementEmpty ( tag,
attr = array() 
) [protected]

Definition at line 74 of file Printer.php.

Here is the caller graph for this function:

end ( tag) [protected]

Returns an end teg

Parameters:
$tagTag name

Definition at line 55 of file Printer.php.

Here is the caller graph for this function:

escape ( string) [protected]

Escapes a string for HTML output.

Parameters:
$stringString to escape

Definition at line 105 of file Printer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

prepareGenerator ( config)

Give generator necessary configuration if possible

Definition at line 28 of file Printer.php.

Here is the caller graph for this function:

row ( name,
value 
) [protected]

Prints a simple key/value row in a table.

Parameters:
$nameKey
$valueValue

Definition at line 91 of file Printer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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:
$tagTag name
$attrAttribute array

Definition at line 45 of file Printer.php.

Here is the caller graph for this function:

text ( text) [protected]

Definition at line 80 of file Printer.php.

Here is the caller graph for this function:


Field Documentation

$config [protected]

Instance of HTMLPurifier_Config, for easy access

Definition at line 17 of file Printer.php.

$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:
 All Data Structures Namespaces Files Functions Variables Enumerations