Deal with old libxml incompatibilities.
[htmlpurifier.git] / library / HTMLPurifier / Doctype.php
blob4acd06e5bddb29322e1ede6c93f4ce5b4f13b98f
1 <?php
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
11 /**
12 * Full name of doctype
13 * @type string
15 public $name;
17 /**
18 * List of standard modules (string identifiers or literal objects)
19 * that this doctype uses
20 * @type array
22 public $modules = array();
24 /**
25 * List of modules to use for tidying up code
26 * @type array
28 public $tidyModules = array();
30 /**
31 * Is the language derived from XML (i.e. XHTML)?
32 * @type bool
34 public $xml = true;
36 /**
37 * List of aliases for this doctype
38 * @type array
40 public $aliases = array();
42 /**
43 * Public DTD identifier
44 * @type string
46 public $dtdPublic;
48 /**
49 * System DTD identifier
50 * @type string
52 public $dtdSystem;
54 public function __construct(
55 $name = null,
56 $xml = true,
57 $modules = array(),
58 $tidyModules = array(),
59 $aliases = array(),
60 $dtd_public = null,
61 $dtd_system = null
62 ) {
63 $this->name = $name;
64 $this->xml = $xml;
65 $this->modules = $modules;
66 $this->tidyModules = $tidyModules;
67 $this->aliases = $aliases;
68 $this->dtdPublic = $dtd_public;
69 $this->dtdSystem = $dtd_system;
73 // vim: et sw=4 sts=4