Additional Inherited Members |
| start ($tag, $attr=array()) |
| Main function that renders object or aspect of that object.
|
| end ($tag) |
| Returns an end tag.
|
| element ($tag, $contents, $attr=array(), $escape=true) |
| Prints a complete element with content inside.
|
| elementEmpty ($tag, $attr=array()) |
| text ($text) |
| row ($name, $value) |
| Prints a simple key/value row in a table.
|
| escape ($string) |
| Escapes a string for HTML output.
|
| listify ($array, $polite=false) |
| Takes a list of strings and turns them into a single list.
|
| getClass ($obj, $sec_prefix= '') |
| Retrieves the class of an object without prefixes, as well as metadata.
|
Detailed Description
Definition at line 3 of file CSSDefinition.php.
Member Function Documentation
HTMLPurifier_Printer_CSSDefinition::render |
( |
|
$config | ) |
|
- Parameters
-
- Returns
- string
Definition at line 14 of file CSSDefinition.php.
References HTMLPurifier_Printer\$config, $ret, HTMLPurifier_Printer\element(), HTMLPurifier_Printer\end(), HTMLPurifier_Printer\getClass(), HTMLPurifier_Printer\row(), and HTMLPurifier_Printer\start().
{
$this->def =
$config->getCSSDefinition();
$ret .= $this->
start(
'div', array(
'class' =>
'HTMLPurifier_Printer'));
$ret .= $this->
element(
'caption',
'Properties ($info)');
$ret .= $this->
element(
'th',
'Property', array(
'class' =>
'heavy'));
$ret .= $this->
element(
'th',
'Definition', array(
'class' =>
'heavy',
'style' =>
'width:auto;'));
ksort($this->def->info);
foreach ($this->def->info as $property => $obj) {
$name = $this->
getClass($obj,
'AttrDef_');
$ret .= $this->
row($property, $name);
}
}
Field Documentation
HTMLPurifier_Printer_CSSDefinition::$def |
|
protected |
The documentation for this class was generated from the following file: