ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
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
 
- Protected Attributes inherited from HTMLPurifier_Printer
 $generator
 Instance of HTMLPurifier_Generator for HTML generation convenience funcs. More...
 
 $config
 Instance of HTMLPurifier_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 teg. 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)

Definition at line 8 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().

8  {
9  $this->def = $config->getCSSDefinition();
10  $ret = '';
11 
12  $ret .= $this->start('div', array('class' => 'HTMLPurifier_Printer'));
13  $ret .= $this->start('table');
14 
15  $ret .= $this->element('caption', 'Properties ($info)');
16 
17  $ret .= $this->start('thead');
18  $ret .= $this->start('tr');
19  $ret .= $this->element('th', 'Property', array('class' => 'heavy'));
20  $ret .= $this->element('th', 'Definition', array('class' => 'heavy', 'style' => 'width:auto;'));
21  $ret .= $this->end('tr');
22  $ret .= $this->end('thead');
23 
24  ksort($this->def->info);
25  foreach ($this->def->info as $property => $obj) {
26  $name = $this->getClass($obj, 'AttrDef_');
27  $ret .= $this->row($property, $name);
28  }
29 
30  $ret .= $this->end('table');
31  $ret .= $this->end('div');
32 
33  return $ret;
34  }
start($tag, $attr=array())
Main function that renders object or aspect of that object.
Definition: Printer.php:45
row($name, $value)
Prints a simple key/value row in a table.
Definition: Printer.php:91
end($tag)
Returns an end teg.
Definition: Printer.php:55
getClass($obj, $sec_prefix='')
Retrieves the class of an object without prefixes, as well as metadata.
Definition: Printer.php:134
element($tag, $contents, $attr=array(), $escape=true)
Prints a complete element with content inside.
Definition: Printer.php:68
$config
Instance of HTMLPurifier_Config, for easy access.
Definition: Printer.php:17
+ Here is the call graph for this function:

Field Documentation

◆ $def

HTMLPurifier_Printer_CSSDefinition::$def
protected

Definition at line 6 of file CSSDefinition.php.


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