ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ChildDef.php
Go to the documentation of this file.
1 <?php
2 
6 abstract class HTMLPurifier_ChildDef
7 {
13  public $type;
14 
22  public $allow_empty;
23 
28  public $elements = array();
29 
36  public function getAllowedElements($config)
37  {
38  return $this->elements;
39  }
40 
49  abstract public function validateChildren($children, $config, $context);
50 }
51 
52 // vim: et sw=4 sts=4
$allow_empty
Indicates whether or not an empty array of children is okay.
Definition: ChildDef.php:22
validateChildren($children, $config, $context)
Validates nodes according to definition and returns modification.
Defines allowed child nodes and validates nodes against it.
Definition: ChildDef.php:6
Create styles array
The data for the language used.
$elements
Lookup array of all elements that this definition could possibly allow.
Definition: ChildDef.php:28
getAllowedElements($config)
Get lookup of tag names that should not close this element automatically.
Definition: ChildDef.php:36
$type
Type of child definition, usually right-most part of class name lowercase.
Definition: ChildDef.php:13