ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ChildDef.php
Go to the documentation of this file.
1<?php
2
7{
13 public $type;
14
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
Defines allowed child nodes and validates nodes against it.
Definition: ChildDef.php:7
$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
validateChildren($children, $config, $context)
Validates nodes according to definition and returns modification.
$allow_empty
Indicates whether or not an empty array of children is okay.
Definition: ChildDef.php:22