Fix two bugs with caching of customized raw definitions.
[htmlpurifier.git] / library / HTMLPurifier / ConfigSchema / Interchange / Directive.php
blobac8be0d9707d5f33b9012a40641411f25b0b5d2d
1 <?php
3 /**
4 * Interchange component class describing configuration directives.
5 */
6 class HTMLPurifier_ConfigSchema_Interchange_Directive
9 /**
10 * ID of directive, instance of HTMLPurifier_ConfigSchema_Interchange_Id.
12 public $id;
14 /**
15 * String type, e.g. 'integer' or 'istring'.
17 public $type;
19 /**
20 * Default value, e.g. 3 or 'DefaultVal'.
22 public $default;
24 /**
25 * HTML description.
27 public $description;
29 /**
30 * Boolean whether or not null is allowed as a value.
32 public $typeAllowsNull = false;
34 /**
35 * Lookup table of allowed scalar values, e.g. array('allowed' => true).
36 * Null if all values are allowed.
38 public $allowed;
40 /**
41 * List of aliases for the directive,
42 * e.g. array(new HTMLPurifier_ConfigSchema_Interchange_Id('Ns', 'Dir'))).
44 public $aliases = array();
46 /**
47 * Hash of value aliases, e.g. array('alt' => 'real'). Null if value
48 * aliasing is disabled (necessary for non-scalar types).
50 public $valueAliases;
52 /**
53 * Version of HTML Purifier the directive was introduced, e.g. '1.3.1'.
54 * Null if the directive has always existed.
56 public $version;
58 /**
59 * ID of directive that supercedes this old directive, is an instance
60 * of HTMLPurifier_ConfigSchema_Interchange_Id. Null if not deprecated.
62 public $deprecatedUse;
64 /**
65 * Version of HTML Purifier this directive was deprecated. Null if not
66 * deprecated.
68 public $deprecatedVersion;
70 /**
71 * List of external projects this directive depends on, e.g. array('CSSTidy').
73 public $external = array();
77 // vim: et sw=4 sts=4