ILIAS
Release_5_0_x_branch Revision 61816
|
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 tag. | |
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 | |
$generator | |
For HTML generation convenience funcs. | |
$config | |
For easy access. |
Definition at line 6 of file Printer.php.
HTMLPurifier_Printer::__construct | ( | ) |
Initialize $generator.
Definition at line 24 of file Printer.php.
Referenced by HTMLPurifier_Printer_ConfigForm\__construct(), and HTMLPurifier_Printer_ConfigForm_NullDecorator\__construct().
|
protected |
Prints a complete element with content inside.
string | $tag | Tag name |
string | $contents | Element contents |
array | $attr | Tag attributes |
bool | $escape | whether or not to escape contents |
Definition at line 78 of file Printer.php.
References end(), escape(), and start().
Referenced by HTMLPurifier_Printer_HTMLDefinition\heavyHeader(), HTMLPurifier_Printer_CSSDefinition\render(), HTMLPurifier_Printer_ConfigForm\render(), HTMLPurifier_Printer_ConfigForm_NullDecorator\render(), HTMLPurifier_Printer_ConfigForm_default\render(), HTMLPurifier_Printer_ConfigForm_bool\render(), HTMLPurifier_Printer_HTMLDefinition\renderChildren(), HTMLPurifier_Printer_HTMLDefinition\renderContentSets(), HTMLPurifier_Printer_HTMLDefinition\renderDoctype(), HTMLPurifier_Printer_HTMLDefinition\renderEnvironment(), HTMLPurifier_Printer_HTMLDefinition\renderInfo(), HTMLPurifier_Printer_ConfigForm\renderNamespace(), and row().
|
protected |
string | $tag | |
array | $attr |
Definition at line 90 of file Printer.php.
Referenced by HTMLPurifier_Printer_ConfigForm\render(), HTMLPurifier_Printer_ConfigForm_NullDecorator\render(), HTMLPurifier_Printer_ConfigForm_default\render(), and HTMLPurifier_Printer_ConfigForm_bool\render().
|
protected |
Returns an end tag.
string | $tag | Tag name |
Definition at line 63 of file Printer.php.
Referenced by element(), HTMLPurifier_Printer_HTMLDefinition\heavyHeader(), HTMLPurifier_Printer_CSSDefinition\render(), HTMLPurifier_Printer_HTMLDefinition\render(), HTMLPurifier_Printer_ConfigForm\render(), HTMLPurifier_Printer_ConfigForm_NullDecorator\render(), HTMLPurifier_Printer_ConfigForm_default\render(), HTMLPurifier_Printer_ConfigForm_bool\render(), HTMLPurifier_Printer_HTMLDefinition\renderChildren(), HTMLPurifier_Printer_HTMLDefinition\renderContentSets(), HTMLPurifier_Printer_HTMLDefinition\renderDoctype(), HTMLPurifier_Printer_HTMLDefinition\renderEnvironment(), HTMLPurifier_Printer_HTMLDefinition\renderInfo(), HTMLPurifier_Printer_ConfigForm\renderNamespace(), and row().
|
protected |
Escapes a string for HTML output.
string | $string | String to escape |
Definition at line 131 of file Printer.php.
References HTMLPurifier_Encoder\cleanUTF8().
Referenced by element(), and HTMLPurifier_Printer_HTMLDefinition\renderChildren().
|
protected |
Retrieves the class of an object without prefixes, as well as metadata.
object | $obj | Object to determine class of |
string | $sec_prefix | Further prefix to remove |
Definition at line 170 of file Printer.php.
Referenced by HTMLPurifier_Printer_HTMLDefinition\listifyAttr(), HTMLPurifier_Printer_HTMLDefinition\listifyObjectList(), HTMLPurifier_Printer_CSSDefinition\render(), and HTMLPurifier_Printer_HTMLDefinition\renderEnvironment().
|
protected |
Takes a list of strings and turns them into a single list.
string[] | $array List of strings | |
bool | $polite | Bool whether or not to add an end before the last |
Definition at line 144 of file Printer.php.
References $ret.
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 | ) |
Give generator necessary configuration if possible.
HTMLPurifier_Config | $config |
Definition at line 32 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().
|
protected |
Prints a simple key/value row in a table.
string | $name | Key |
mixed | $value | Value |
Definition at line 114 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().
|
protected |
Main function that renders object or aspect of that object.
string | $tag | Tag name |
array | $attr | Attribute array |
Definition at line 51 of file Printer.php.
Referenced by element(), HTMLPurifier_Printer_HTMLDefinition\heavyHeader(), HTMLPurifier_Printer_CSSDefinition\render(), HTMLPurifier_Printer_HTMLDefinition\render(), HTMLPurifier_Printer_ConfigForm\render(), HTMLPurifier_Printer_ConfigForm_NullDecorator\render(), HTMLPurifier_Printer_ConfigForm_default\render(), HTMLPurifier_Printer_ConfigForm_bool\render(), HTMLPurifier_Printer_HTMLDefinition\renderChildren(), HTMLPurifier_Printer_HTMLDefinition\renderContentSets(), HTMLPurifier_Printer_HTMLDefinition\renderDoctype(), HTMLPurifier_Printer_HTMLDefinition\renderEnvironment(), HTMLPurifier_Printer_HTMLDefinition\renderInfo(), HTMLPurifier_Printer_ConfigForm\renderNamespace(), and row().
|
protected |
string | $text |
Definition at line 101 of file Printer.php.
Referenced by HTMLPurifier_Printer_ConfigForm_NullDecorator\render(), HTMLPurifier_Printer_ConfigForm_default\render(), and HTMLPurifier_Printer_ConfigForm_bool\render().
|
protected |
For easy access.
Definition at line 19 of file Printer.php.
Referenced by prepareGenerator(), HTMLPurifier_Printer_CSSDefinition\render(), HTMLPurifier_Printer_HTMLDefinition\render(), HTMLPurifier_Printer_ConfigForm\render(), HTMLPurifier_Printer_ConfigForm_NullDecorator\render(), HTMLPurifier_Printer_ConfigForm_default\render(), and HTMLPurifier_Printer_ConfigForm_bool\render().
|
protected |
For HTML generation convenience funcs.
Definition at line 13 of file Printer.php.