Automatic installer.php lang files by installer_builder (20070726)
[moodle-linuxchix.git] / lib / htmlpurifier / HTMLPurifier / Printer / CSSDefinition.php
blob7745f5f44455ce40a8413545ba39e491570831ff
1 <?php
3 require_once 'HTMLPurifier/Printer.php';
5 class HTMLPurifier_Printer_CSSDefinition extends HTMLPurifier_Printer
8 var $def;
10 function render($config) {
11 $this->def = $config->getCSSDefinition();
12 $ret = '';
14 $ret .= $this->start('div', array('class' => 'HTMLPurifier_Printer'));
15 $ret .= $this->start('table');
17 $ret .= $this->element('caption', 'Properties ($info)');
19 $ret .= $this->start('thead');
20 $ret .= $this->start('tr');
21 $ret .= $this->element('th', 'Property', array('class' => 'heavy'));
22 $ret .= $this->element('th', 'Definition', array('class' => 'heavy', 'style' => 'width:auto;'));
23 $ret .= $this->end('tr');
24 $ret .= $this->end('thead');
26 ksort($this->def->info);
27 foreach ($this->def->info as $property => $obj) {
28 $name = $this->getClass($obj, 'AttrDef_');
29 $ret .= $this->row($property, $name);
32 $ret .= $this->end('table');
33 $ret .= $this->end('div');
35 return $ret;