include/HTMLPurifier/standalone/HTMLPurifier/Printer/CSSDefinition.php
\HTMLPurifier_Printer_CSSDefinition
Package:
- Parent(s)
- \HTMLPurifier_Printer
Properties
$config= ''
inherited
Instance of HTMLPurifier_Config, for easy access
Inherited from: \HTMLPurifier_Printer::$$config
Details
- Type
- n/a
- Inherited_from
- \HTMLPurifier_Printer::$$config
$generator= ''
inherited
Instance of HTMLPurifier_Generator for HTML generation convenience funcs
Inherited from: \HTMLPurifier_Printer::$$generator
Details
- Type
- n/a
- Inherited_from
- \HTMLPurifier_Printer::$$generator
Methods
element(
\$tag $tag, \$contents $contents, \$attr $attr
=
array(), \$escape $escape
=
true
)
:
void
inherited
Prints a complete element with content inside
Inherited from: \HTMLPurifier_Printer::element()
Parameters
Name | Type | Description |
---|---|---|
$tag | \$tag | Tag name |
$contents | \$contents | Element contents |
$attr | \$attr | Tag attributes |
$escape | \$escape | Bool whether or not to escape contents |
elementEmpty(
$tag, $attr
=
array()
)
:
void
inherited
Inherited from:
\HTMLPurifier_Printer::elementEmpty()
Parameters
Name | Type | Description |
---|---|---|
$tag | ||
$attr |
escape(
\$string $string
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$string | \$string | String to escape |
getClass(
\$obj $obj, \$prefix $sec_prefix
=
''
)
:
void
inherited
Retrieves the class of an object without prefixes, as well as metadata
Inherited from: \HTMLPurifier_Printer::getClass()
Parameters
Name | Type | Description |
---|---|---|
$obj | \$obj | Object to determine class of |
$sec_prefix | \$prefix | Further prefix to remove |
listify(
\$array $array, \$polite $polite
=
false
)
:
void
inherited
Takes a list of strings and turns them into a single list
Inherited from: \HTMLPurifier_Printer::listify()
Parameters
Name | Type | Description |
---|---|---|
$array | \$array | List of strings |
$polite | \$polite | Bool whether or not to add an end before the last |
prepareGenerator(
$config
)
:
void
inherited
Give generator necessary configuration if possible
Inherited from: \HTMLPurifier_Printer::prepareGenerator()
Parameters
Name | Type | Description |
---|---|---|
$config |
row(
\$name $name, \$value $value
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$name | \$name | Key |
$value | \$value | Value |
start(
\$tag $tag, \$attr $attr
=
array()
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$tag | \$tag | Tag name |
$attr | \$attr | Attribute array |
text(
$text
)
:
void
inherited
Inherited from:
\HTMLPurifier_Printer::text()
Parameters
Name | Type | Description |
---|---|---|
$text |