(no description)
File Size: | 218 lines (6 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
HTMLPurifier_Printer:: (11 methods):
__construct()
prepareGenerator()
start()
end()
element()
elementEmpty()
text()
row()
escape()
listify()
getClass()
Class: HTMLPurifier_Printer - X-Ref
__construct() X-Ref |
Initialize $generator. |
prepareGenerator($config) X-Ref |
Give generator necessary configuration if possible param: HTMLPurifier_Config $config |
start($tag, $attr = array() X-Ref |
Returns a start tag return: string param: string $tag Tag name param: array $attr Attribute array |
end($tag) X-Ref |
Returns an end tag return: string param: string $tag Tag name |
element($tag, $contents, $attr = array() X-Ref |
Prints a complete element with content inside return: string param: string $tag Tag name param: string $contents Element contents param: array $attr Tag attributes param: bool $escape whether or not to escape contents |
elementEmpty($tag, $attr = array() X-Ref |
return: string param: string $tag param: array $attr |
text($text) X-Ref |
return: string param: string $text |
row($name, $value) X-Ref |
Prints a simple key/value row in a table. return: string param: string $name Key param: mixed $value Value |
escape($string) X-Ref |
Escapes a string for HTML output. return: string param: string $string String to escape |
listify($array, $polite = false) X-Ref |
Takes a list of strings and turns them into a single list return: string param: string[] $array List of strings param: bool $polite Bool whether or not to add an end before the last |
getClass($obj, $sec_prefix = '') X-Ref |
Retrieves the class of an object without prefixes, as well as metadata return: string param: object $obj Object to determine class of param: string $sec_prefix Further prefix to remove |