1: <?php
2:
3: /**
4: * Represents a document type, contains information on which modules
5: * need to be loaded.
6: * @note This class is inspected by Printer_HTMLDefinition->renderDoctype.
7: * If structure changes, please update that function.
8: */
9: class HTMLPurifier_Doctype
10: {
11: /**
12: * Full name of doctype
13: */
14: public $name;
15:
16: /**
17: * List of standard modules (string identifiers or literal objects)
18: * that this doctype uses
19: */
20: public $modules = array();
21:
22: /**
23: * List of modules to use for tidying up code
24: */
25: public $tidyModules = array();
26:
27: /**
28: * Is the language derived from XML (i.e. XHTML)?
29: */
30: public $xml = true;
31:
32: /**
33: * List of aliases for this doctype
34: */
35: public $aliases = array();
36:
37: /**
38: * Public DTD identifier
39: */
40: public $dtdPublic;
41:
42: /**
43: * System DTD identifier
44: */
45: public $dtdSystem;
46:
47: public function __construct($name = null, $xml = true, $modules = array(),
48: $tidyModules = array(), $aliases = array(), $dtd_public = null, $dtd_system = null
49: ) {
50: $this->name = $name;
51: $this->xml = $xml;
52: $this->modules = $modules;
53: $this->tidyModules = $tidyModules;
54: $this->aliases = $aliases;
55: $this->dtdPublic = $dtd_public;
56: $this->dtdSystem = $dtd_system;
57: }
58: }
59:
60: // vim: et sw=4 sts=4
61: