Directive.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. /**
  3. * Interchange component class describing configuration directives.
  4. */
  5. class HTMLPurifier_ConfigSchema_Interchange_Directive
  6. {
  7. /**
  8. * ID of directive, instance of HTMLPurifier_ConfigSchema_Interchange_Id.
  9. */
  10. public $id;
  11. /**
  12. * String type, e.g. 'integer' or 'istring'.
  13. */
  14. public $type;
  15. /**
  16. * Default value, e.g. 3 or 'DefaultVal'.
  17. */
  18. public $default;
  19. /**
  20. * HTML description.
  21. */
  22. public $description;
  23. /**
  24. * Boolean whether or not null is allowed as a value.
  25. */
  26. public $typeAllowsNull = false;
  27. /**
  28. * Lookup table of allowed scalar values, e.g. array('allowed' => true).
  29. * Null if all values are allowed.
  30. */
  31. public $allowed;
  32. /**
  33. * List of aliases for the directive,
  34. * e.g. array(new HTMLPurifier_ConfigSchema_Interchange_Id('Ns', 'Dir'))).
  35. */
  36. public $aliases = array();
  37. /**
  38. * Hash of value aliases, e.g. array('alt' => 'real'). Null if value
  39. * aliasing is disabled (necessary for non-scalar types).
  40. */
  41. public $valueAliases;
  42. /**
  43. * Version of HTML Purifier the directive was introduced, e.g. '1.3.1'.
  44. * Null if the directive has always existed.
  45. */
  46. public $version;
  47. /**
  48. * ID of directive that supercedes this old directive, is an instance
  49. * of HTMLPurifier_ConfigSchema_Interchange_Id. Null if not deprecated.
  50. */
  51. public $deprecatedUse;
  52. /**
  53. * Version of HTML Purifier this directive was deprecated. Null if not
  54. * deprecated.
  55. */
  56. public $deprecatedVersion;
  57. /**
  58. * List of external projects this directive depends on, e.g. array('CSSTidy').
  59. */
  60. public $external = array();
  61. }
  62. // vim: et sw=4 sts=4