|
| 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.
|
|
| heavyHeader ($text, $num=1) |
| Creates a heavy header row.
|
|
| listify ($array, $polite=false) |
| Takes a list of strings and turns them into a single list.
|
|
| listifyAttr ($array) |
| Listifies a hash of attributes to AttrDef classes.
|
|
| listifyObjectList ($array) |
| Listifies a list of objects by retrieving class names and internal state.
|
|
| listifyTagLookup ($array) |
| Listifies a tag lookup table.
|
|
| renderChildren ($def) |
| Renders a row describing the allowed children of an element.
|
|
| renderContentSets () |
| Renders the Content Sets table.
|
|
| renderDoctype () |
| Renders the Doctype table.
|
|
| renderEnvironment () |
| Renders environment table, which is miscellaneous info.
|
|
| renderInfo () |
| Renders the Elements ($info) table.
|
|
| 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
-
◆ heavyHeader()
HTMLPurifier_Printer_HTMLDefinition::heavyHeader |
( |
| $text, |
|
|
| $num = 1 ) |
|
protected |
Creates a heavy header row.
- Parameters
-
- 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
-
◆ listifyAttr()
HTMLPurifier_Printer_HTMLDefinition::listifyAttr |
( |
| $array | ) |
|
|
protected |
Listifies a hash of attributes to AttrDef classes.
- Parameters
-
- Return values
-
◆ listifyObjectList()
HTMLPurifier_Printer_HTMLDefinition::listifyObjectList |
( |
| $array | ) |
|
|
protected |
Listifies a list of objects by retrieving class names and internal state.
- Parameters
-
array | $array | List of objects |
- Return values
-
- Todo
- Also add information about internal state
◆ listifyTagLookup()
HTMLPurifier_Printer_HTMLDefinition::listifyTagLookup |
( |
| $array | ) |
|
|
protected |
Listifies a tag lookup table.
- Parameters
-
array | $array | Tag lookup array in form of array('tagname' => true) |
- Return values
-
◆ prepareGenerator()
HTMLPurifier_Printer::prepareGenerator |
( |
| $config | ) |
|
|
inherited |
Give generator necessary configuration if possible.
- Parameters
-
◆ render()
HTMLPurifier_Printer_HTMLDefinition::render |
( |
| $config | ) |
|
◆ renderChildren()
HTMLPurifier_Printer_HTMLDefinition::renderChildren |
( |
| $def | ) |
|
|
protected |
Renders a row describing the allowed children of an element.
- Parameters
-
- Return values
-
◆ renderContentSets()
HTMLPurifier_Printer_HTMLDefinition::renderContentSets |
( |
| ) |
|
|
protected |
Renders the Content Sets table.
- Return values
-
◆ renderDoctype()
HTMLPurifier_Printer_HTMLDefinition::renderDoctype |
( |
| ) |
|
|
protected |
Renders the Doctype table.
- Return values
-
◆ renderEnvironment()
HTMLPurifier_Printer_HTMLDefinition::renderEnvironment |
( |
| ) |
|
|
protected |
Renders environment table, which is miscellaneous info.
- Return values
-
◆ renderInfo()
HTMLPurifier_Printer_HTMLDefinition::renderInfo |
( |
| ) |
|
|
protected |
Renders the Elements ($info) table.
- Return values
-
◆ 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/HTMLDefinition.php