ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f87
HTMLPurifier_Printer_CSSDefinition Class Reference
+ Inheritance diagram for HTMLPurifier_Printer_CSSDefinition:
+ Collaboration diagram for HTMLPurifier_Printer_CSSDefinition:

Public Member Functions

 render ($config)
 
- Public Member Functions inherited from HTMLPurifier_Printer
 __construct ()
 Initialize $generator. More...
 
 prepareGenerator ($config)
 Give generator necessary configuration if possible. More...
 

Protected Attributes

 $def
 HTMLPurifier_CSSDefinition More...
 
- Protected Attributes inherited from HTMLPurifier_Printer
 $generator
 For HTML generation convenience funcs. More...
 
 $config
 For easy access. More...
 

Additional Inherited Members

- Protected Member Functions inherited from HTMLPurifier_Printer
 start ($tag, $attr=array())
 Main function that renders object or aspect of that object. More...
 
 end ($tag)
 Returns an end tag. More...
 
 element ($tag, $contents, $attr=array(), $escape=true)
 Prints a complete element with content inside. More...
 
 elementEmpty ($tag, $attr=array())
 
 text ($text)
 
 row ($name, $value)
 Prints a simple key/value row in a table. More...
 
 escape ($string)
 Escapes a string for HTML output. More...
 
 listify ($array, $polite=false)
 Takes a list of strings and turns them into a single list. More...
 
 getClass ($obj, $sec_prefix='')
 Retrieves the class of an object without prefixes, as well as metadata. More...
 

Detailed Description

Definition at line 3 of file CSSDefinition.php.

Member Function Documentation

◆ render()

HTMLPurifier_Printer_CSSDefinition::render (   $config)
Parameters
HTMLPurifier_Config$config
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().

15  {
16  $this->def = $config->getCSSDefinition();
17  $ret = '';
18 
19  $ret .= $this->start('div', array('class' => 'HTMLPurifier_Printer'));
20  $ret .= $this->start('table');
21 
22  $ret .= $this->element('caption', 'Properties ($info)');
23 
24  $ret .= $this->start('thead');
25  $ret .= $this->start('tr');
26  $ret .= $this->element('th', 'Property', array('class' => 'heavy'));
27  $ret .= $this->element('th', 'Definition', array('class' => 'heavy', 'style' => 'width:auto;'));
28  $ret .= $this->end('tr');
29  $ret .= $this->end('thead');
30 
31  ksort($this->def->info);
32  foreach ($this->def->info as $property => $obj) {
33  $name = $this->getClass($obj, 'AttrDef_');
34  $ret .= $this->row($property, $name);
35  }
36 
37  $ret .= $this->end('table');
38  $ret .= $this->end('div');
39 
40  return $ret;
41  }
start($tag, $attr=array())
Main function that renders object or aspect of that object.
Definition: Printer.php:51
row($name, $value)
Prints a simple key/value row in a table.
Definition: Printer.php:114
end($tag)
Returns an end tag.
Definition: Printer.php:63
getClass($obj, $sec_prefix='')
Retrieves the class of an object without prefixes, as well as metadata.
Definition: Printer.php:170
element($tag, $contents, $attr=array(), $escape=true)
Prints a complete element with content inside.
Definition: Printer.php:78
$config
For easy access.
Definition: Printer.php:19
+ Here is the call graph for this function:

Field Documentation

◆ $def

HTMLPurifier_Printer_CSSDefinition::$def
protected

HTMLPurifier_CSSDefinition

Definition at line 8 of file CSSDefinition.php.


The documentation for this class was generated from the following file: