4 * Represents a document type, contains information on which modules
6 * @note This class is inspected by Printer_HTMLDefinition->renderDoctype.
7 * If structure changes, please update that function.
9 class HTMLPurifier_Doctype
12 * Full name of doctype
17 * List of standard modules (string identifiers or literal objects)
18 * that this doctype uses
20 var $modules = array();
23 * List of modules to use for tidying up code
25 var $tidyModules = array();
28 * Is the language derived from XML (i.e. XHTML)?
33 * List of aliases for this doctype
35 var $aliases = array();
38 * Public DTD identifier
43 * System DTD identifier
47 function HTMLPurifier_Doctype($name = null, $xml = true, $modules = array(),
48 $tidyModules = array(), $aliases = array(), $dtd_public = null, $dtd_system = null
52 $this->modules
= $modules;
53 $this->tidyModules
= $tidyModules;
54 $this->aliases
= $aliases;
55 $this->dtdPublic
= $dtd_public;
56 $this->dtdSystem
= $dtd_system;
60 * Clones the doctype, use before resolving modes and the like
63 return unserialize(serialize($this));