3 class HTMLPurifier_Printer_CSSDefinition
extends HTMLPurifier_Printer
8 public function render($config) {
9 $this->def
= $config->getCSSDefinition();
12 $ret .= $this->start('div', array('class' => 'HTMLPurifier_Printer'));
13 $ret .= $this->start('table');
15 $ret .= $this->element('caption', 'Properties ($info)');
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');
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);
30 $ret .= $this->end('table');
31 $ret .= $this->end('div');