File indexing completed on 2025-02-02 05:43:42
0001 <?php 0002 0003 /** 0004 * Interchange component class describing configuration directives. 0005 */ 0006 class HTMLPurifier_ConfigSchema_Interchange_Directive 0007 { 0008 0009 /** 0010 * ID of directive. 0011 * @type HTMLPurifier_ConfigSchema_Interchange_Id 0012 */ 0013 public $id; 0014 0015 /** 0016 * Type, e.g. 'integer' or 'istring'. 0017 * @type string 0018 */ 0019 public $type; 0020 0021 /** 0022 * Default value, e.g. 3 or 'DefaultVal'. 0023 * @type mixed 0024 */ 0025 public $default; 0026 0027 /** 0028 * HTML description. 0029 * @type string 0030 */ 0031 public $description; 0032 0033 /** 0034 * Whether or not null is allowed as a value. 0035 * @type bool 0036 */ 0037 public $typeAllowsNull = false; 0038 0039 /** 0040 * Lookup table of allowed scalar values. 0041 * e.g. array('allowed' => true). 0042 * Null if all values are allowed. 0043 * @type array 0044 */ 0045 public $allowed; 0046 0047 /** 0048 * List of aliases for the directive. 0049 * e.g. array(new HTMLPurifier_ConfigSchema_Interchange_Id('Ns', 'Dir'))). 0050 * @type HTMLPurifier_ConfigSchema_Interchange_Id[] 0051 */ 0052 public $aliases = array(); 0053 0054 /** 0055 * Hash of value aliases, e.g. array('alt' => 'real'). Null if value 0056 * aliasing is disabled (necessary for non-scalar types). 0057 * @type array 0058 */ 0059 public $valueAliases; 0060 0061 /** 0062 * Version of HTML Purifier the directive was introduced, e.g. '1.3.1'. 0063 * Null if the directive has always existed. 0064 * @type string 0065 */ 0066 public $version; 0067 0068 /** 0069 * ID of directive that supercedes this old directive. 0070 * Null if not deprecated. 0071 * @type HTMLPurifier_ConfigSchema_Interchange_Id 0072 */ 0073 public $deprecatedUse; 0074 0075 /** 0076 * Version of HTML Purifier this directive was deprecated. Null if not 0077 * deprecated. 0078 * @type string 0079 */ 0080 public $deprecatedVersion; 0081 0082 /** 0083 * List of external projects this directive depends on, e.g. array('CSSTidy'). 0084 * @type array 0085 */ 0086 public $external = array(); 0087 } 0088 0089 // vim: et sw=4 sts=4