ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
ChildDef.php
Go to the documentation of this file.
1 <?php
2 
6 abstract class HTMLPurifier_ChildDef
7 {
12  public $type;
13 
20  public $allow_empty;
21 
25  public $elements = array();
26 
31  public function getAllowedElements($config) {
32  return $this->elements;
33  }
34 
45  abstract public function validateChildren($tokens_of_children, $config, $context);
46 }
47 
48 // vim: et sw=4 sts=4
$allow_empty
Bool that indicates whether or not an empty array of children is okay.
Definition: ChildDef.php:20
Defines allowed child nodes and validates tokens against it.
Definition: ChildDef.php:6
validateChildren($tokens_of_children, $config, $context)
Validates nodes according to definition and returns modification.
$elements
Lookup array of all elements that this definition could possibly allow.
Definition: ChildDef.php:25
getAllowedElements($config)
Get lookup of tag names that should not close this element automatically.
Definition: ChildDef.php:31
$type
Type of child definition, usually right-most part of class name lowercase.
Definition: ChildDef.php:12