20        $this->def = 
$config->getHTMLDefinition();
 
   22        $ret .= $this->
start(
'div', array(
'class' => 
'HTMLPurifier_Printer'));
 
   40        $doctype = $this->def->doctype;
 
   44        $ret .= $this->
row(
'Name', $doctype->name);
 
   45        $ret .= $this->
row(
'XML', $doctype->xml ? 
'Yes' : 
'No');
 
   46        $ret .= $this->
row(
'Default Modules', implode($doctype->modules, 
', '));
 
   47        $ret .= $this->
row(
'Default Tidy Modules', implode($doctype->tidyModules, 
', '));
 
   66        $ret .= $this->
row(
'Parent of fragment', 
$def->info_parent);
 
   68        $ret .= $this->
row(
'Block wrap name', 
$def->info_block_wrapper);
 
   80            $list[] = 
"<$old> with $new";
 
  108        foreach ($this->def->info_content_sets as 
$name => $lookup) {
 
  126        $ret .= $this->
element(
'caption', 
'Elements ($info)');
 
  127        ksort($this->def->info);
 
  132        foreach ($this->def->info as 
$name => 
$def) {
 
  134            $ret .= $this->
element(
'th', 
"<$name>", array(
'class' => 
'heavy', 
'colspan' => 2));
 
  138            $ret .= $this->
element(
'td', 
$def->descendants_are_inline ? 
'Yes' : 
'No');
 
  140            if (!empty(
$def->excludes)) {
 
  146            if (!empty(
$def->attr_transform_pre)) {
 
  152            if (!empty(
$def->attr_transform_post)) {
 
  154                $ret .= $this->
element(
'th', 
'Post-AttrTransform');
 
  158            if (!empty(
$def->auto_close)) {
 
  165            $ret .= $this->
element(
'th', 
'Allowed attributes');
 
  169            if (!empty(
$def->required_attr)) {
 
  191        if (isset(
$def->elements)) {
 
  192            if (
$def->type == 
'strictblockquote') {
 
  193                $def->validateChildren(array(), $this->config, $context);
 
  195            $elements = 
$def->elements;
 
  197        if (
$def->type == 
'chameleon') {
 
  198            $attr[
'rowspan'] = 2;
 
  199        } elseif (
$def->type == 
'empty') {
 
  201        } elseif (
$def->type == 
'table') {
 
  202            $elements = array_flip(
 
  214        $ret .= $this->
element(
'th', 
'Allowed children', $attr);
 
  216        if (
$def->type == 
'chameleon') {
 
  229                '<em>Inline</em>: ' .
 
  235        } elseif (
$def->type == 
'custom') {
 
  239                '<em>' . ucfirst(
$def->type) . 
'</em>: ' .
 
  246                '<em>' . ucfirst(
$def->type) . 
'</em>: ' .
 
  247                $this->escape($this->listifyTagLookup($elements)),
 
  265        foreach ($array as 
$name => $discard) {
 
  266            if (
$name !== 
'#PCDATA' && !isset($this->def->info[
$name])) {
 
  284        foreach ($array as $obj) {
 
  299        foreach ($array as 
$name => $obj) {
 
  300            if ($obj === 
false) {
 
  303            $list[] = 
"$name = <i>" . $this->
getClass($obj, 
'AttrDef_') . 
'</i>';
 
  318        $ret .= $this->
element(
'th', 
$text, array(
'colspan' => $num, 
'class' => 
'heavy'));
 
An exception for terminatinating execution or to throw for unit testing.
Registry object that contains information about the current context.
renderEnvironment()
Renders environment table, which is miscellaneous info.
listifyTagLookup($array)
Listifies a tag lookup table.
renderChildren($def)
Renders a row describing the allowed children of an element.
renderDoctype()
Renders the Doctype table.
listifyObjectList($array)
Listifies a list of objects by retrieving class names and internal state.
listifyAttr($array)
Listifies a hash of attributes to AttrDef classes.
$def
@type HTMLPurifier_HTMLDefinition, for easy access
renderInfo()
Renders the Elements ($info) table.
heavyHeader($text, $num=1)
Creates a heavy header row.
renderContentSets()
Renders the Content Sets table.
row($name, $value)
Prints a simple key/value row in a table.
element($tag, $contents, $attr=array(), $escape=true)
Prints a complete element with content inside.
end($tag)
Returns an end tag.
escape($string)
Escapes a string for HTML output.
listify($array, $polite=false)
Takes a list of strings and turns them into a single list.
getClass($obj, $sec_prefix='')
Retrieves the class of an object without prefixes, as well as metadata.
start($tag, $attr=array())
Main function that renders object or aspect of that object.
if(isset($_REQUEST['delete'])) $list