|
| | element ($tag, $contents, $attr=array(), $escape=true) |
| | Prints a complete element with content inside.
|
| |
| | elementEmpty ($tag, $attr=array()) |
| |
| | end ($tag) |
| | Returns an end tag.
|
| |
| | escape ($string) |
| | Escapes a string for HTML output.
|
| |
| | getClass ($obj, $sec_prefix='') |
| | Retrieves the class of an object without prefixes, as well as metadata.
|
| |
| | listify ($array, $polite=false) |
| | Takes a list of strings and turns them into a single list.
|
| |
| | row ($name, $value) |
| | Prints a simple key/value row in a table.
|
| |
| | start ($tag, $attr=array()) |
| | Main function that renders object or aspect of that object.
|
| |
| | text ($text) |
| |
|
| | $config |
| | For easy access.
|
| |
|
| $def |
| |
|
| $generator |
| |
◆ element()
| HTMLPurifier_Printer::element |
( |
| $tag, |
|
|
| $contents, |
|
|
| $attr = array(), |
|
|
| $escape = true ) |
|
protectedinherited |
Prints a complete element with content inside.
- Parameters
-
| string | $tag | Tag name |
| string | $contents | Element contents |
| array | $attr | Tag attributes |
| bool | $escape | whether or not to escape contents |
- Return values
-
◆ elementEmpty()
| HTMLPurifier_Printer::elementEmpty |
( |
| $tag, |
|
|
| $attr = array() ) |
|
protectedinherited |
◆ end()
| HTMLPurifier_Printer::end |
( |
| $tag | ) |
|
|
protectedinherited |
Returns an end tag.
- Parameters
-
- Return values
-
◆ escape()
| HTMLPurifier_Printer::escape |
( |
| $string | ) |
|
|
protectedinherited |
Escapes a string for HTML output.
- Parameters
-
| string | $string | String to escape |
- Return values
-
◆ getClass()
| HTMLPurifier_Printer::getClass |
( |
| $obj, |
|
|
| $sec_prefix = '' ) |
|
protectedinherited |
Retrieves the class of an object without prefixes, as well as metadata.
- Parameters
-
| object | $obj | Object to determine class of |
| string | $sec_prefix | Further prefix to remove |
- Return values
-
◆ listify()
| HTMLPurifier_Printer::listify |
( |
| $array, |
|
|
| $polite = false ) |
|
protectedinherited |
Takes a list of strings and turns them into a single list.
- Parameters
-
| string[] | $array | List of strings |
| bool | $polite | Bool whether or not to add an end before the last |
- Return values
-
◆ prepareGenerator()
| HTMLPurifier_Printer::prepareGenerator |
( |
| $config | ) |
|
|
inherited |
Give generator necessary configuration if possible.
- Parameters
-
◆ render()
| HTMLPurifier_Printer_CSSDefinition::render |
( |
| $config | ) |
|
◆ row()
| HTMLPurifier_Printer::row |
( |
| $name, |
|
|
| $value ) |
|
protectedinherited |
Prints a simple key/value row in a table.
- Parameters
-
| string | $name | Key |
| mixed | $value | Value |
- Return values
-
◆ start()
| HTMLPurifier_Printer::start |
( |
| $tag, |
|
|
| $attr = array() ) |
|
protectedinherited |
Main function that renders object or aspect of that object.
- Note
- Parameters vary depending on printer Returns a start tag
- Parameters
-
| string | $tag | Tag name |
| array | $attr | Attribute array |
- Return values
-
◆ text()
| HTMLPurifier_Printer::text |
( |
| $text | ) |
|
|
protectedinherited |
◆ $config
| HTMLPurifier_Printer::$config |
|
protectedinherited |
The documentation for this class was generated from the following file:
- lib/htmlpurifier/HTMLPurifier/Printer/CSSDefinition.php