| @@ 79-84 (lines=6) @@ | ||
| 76 | * @param $allowed Optional namespace(s) and directives to restrict form to. |
|
| 77 | */ |
|
| 78 | public function render($config, $allowed = true, $render_controls = true) { |
|
| 79 | if (is_array($config) && isset($config[0])) { |
|
| 80 | $gen_config = $config[0]; |
|
| 81 | $config = $config[1]; |
|
| 82 | } else { |
|
| 83 | $gen_config = $config; |
|
| 84 | } |
|
| 85 | ||
| 86 | $this->config = $config; |
|
| 87 | $this->genConfig = $gen_config; |
|
| @@ 201-206 (lines=6) @@ | ||
| 198 | $this->obj = $obj; |
|
| 199 | } |
|
| 200 | public function render($ns, $directive, $value, $name, $config) { |
|
| 201 | if (is_array($config) && isset($config[0])) { |
|
| 202 | $gen_config = $config[0]; |
|
| 203 | $config = $config[1]; |
|
| 204 | } else { |
|
| 205 | $gen_config = $config; |
|
| 206 | } |
|
| 207 | $this->prepareGenerator($gen_config); |
|
| 208 | ||
| 209 | $ret = ''; |
|
| @@ 242-247 (lines=6) @@ | ||
| 239 | public $cols = 18; |
|
| 240 | public $rows = 5; |
|
| 241 | public function render($ns, $directive, $value, $name, $config) { |
|
| 242 | if (is_array($config) && isset($config[0])) { |
|
| 243 | $gen_config = $config[0]; |
|
| 244 | $config = $config[1]; |
|
| 245 | } else { |
|
| 246 | $gen_config = $config; |
|
| 247 | } |
|
| 248 | $this->prepareGenerator($gen_config); |
|
| 249 | // this should probably be split up a little |
|
| 250 | $ret = ''; |
|
| @@ 322-327 (lines=6) @@ | ||
| 319 | */ |
|
| 320 | class HTMLPurifier_Printer_ConfigForm_bool extends HTMLPurifier_Printer { |
|
| 321 | public function render($ns, $directive, $value, $name, $config) { |
|
| 322 | if (is_array($config) && isset($config[0])) { |
|
| 323 | $gen_config = $config[0]; |
|
| 324 | $config = $config[1]; |
|
| 325 | } else { |
|
| 326 | $gen_config = $config; |
|
| 327 | } |
|
| 328 | $this->prepareGenerator($gen_config); |
|
| 329 | $ret = ''; |
|
| 330 | $ret .= $this->start('div', array('id' => "$name:$ns.$directive")); |
|