4 * Structure object containing definition of a directive.
5 * @note This structure does not contain default values
7 class HTMLPurifier_ConfigDef_Directive
extends HTMLPurifier_ConfigDef
10 public $class = 'directive';
12 public function __construct(
19 if ( $type !== null) $this->type
= $type;
20 if ($description !== null) $this->description
= $description;
21 if ( $allow_null !== null) $this->allow_null
= $allow_null;
22 if ( $allowed !== null) $this->allowed
= $allowed;
23 if ( $aliases !== null) $this->aliases
= $aliases;
27 * Allowed type of the directive. Values are:
29 * - istring (case insensitive string)
33 * - lookup (array of value => true)
34 * - list (regular numbered index array)
35 * - hash (array of key => value)
36 * - mixed (anything goes)
38 public $type = 'mixed';
41 * Plaintext description of the configuration entity is.
43 public $description = null;
46 * Is null allowed? Has no effect for mixed type.
49 public $allow_null = false;
52 * Lookup table of allowed values of the element, bool true if all allowed.
54 public $allowed = true;
57 * Hash of value aliases, i.e. values that are equivalent.
59 public $aliases = array();
62 * Advisory list of directive aliases, i.e. other directives that
65 public $directiveAliases = array();