Cheetah
CSSDefinition.php
Go to the documentation of this file.
1 <?php
2 
4 {
8  protected $def;
9 
14  public function render($config)
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  }
42 }
43 
44 // vim: et sw=4 sts=4
HTMLPurifier_Printer
Definition: Printer.php:7
HTMLPurifier_Printer\end
end($tag)
Definition: Printer.php:63
$ret
$ret
Definition: index.php:39
php
HTMLPurifier_Printer_CSSDefinition\render
render($config)
Definition: CSSDefinition.php:14
HTMLPurifier_Printer\start
start($tag, $attr=array())
Definition: Printer.php:51
HTMLPurifier_Printer_CSSDefinition
Definition: CSSDefinition.php:4
HTMLPurifier_Printer\element
element($tag, $contents, $attr=array(), $escape=true)
Definition: Printer.php:78
HTMLPurifier_Printer\getClass
getClass($obj, $sec_prefix='')
Definition: Printer.php:170
HTMLPurifier_Printer\row
row($name, $value)
Definition: Printer.php:114
as
as
Definition: Filter.ExtractStyleBlocks.Escaping.txt:10
HTMLPurifier_Printer_CSSDefinition\$def
$def
Definition: CSSDefinition.php:8
HTMLPurifier_Printer\$config
$config
Definition: Printer.php:19