◆ __construct()
◆ element()
| element |
( |
|
$tag, |
|
|
|
$contents, |
|
|
|
$attr = array(), |
|
|
|
$escape = true |
|
) |
| |
|
protected |
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 |
- Returns
- string
◆ elementEmpty()
| elementEmpty |
( |
|
$tag, |
|
|
|
$attr = array() |
|
) |
| |
|
protected |
◆ end()
Returns an end tag
- Parameters
-
- Returns
- string
◆ escape()
Escapes a string for HTML output.
- Parameters
-
| string | $string | String to escape |
- Returns
- string
◆ getClass()
| getClass |
( |
|
$obj, |
|
|
|
$sec_prefix = '' |
|
) |
| |
|
protected |
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 |
- Returns
- string
◆ listify()
| listify |
( |
|
$array, |
|
|
|
$polite = false |
|
) |
| |
|
protected |
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 |
- Returns
- string
◆ prepareGenerator()
| prepareGenerator |
( |
|
$config | ) |
|
Give generator necessary configuration if possible
- Parameters
-
◆ row()
Prints a simple key/value row in a table.
- Parameters
-
| string | $name | Key |
| mixed | $value | Value |
- Returns
- string
◆ start()
| 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
-
| string | $tag | Tag name |
| array | $attr | Attribute array |
- Returns
- string
◆ text()
◆ $config
◆ $generator
The documentation for this class was generated from the following file:
- C:/xoops2511b2/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Printer.php