MDL-11082 Improved groups upgrade performance 1.8x -> 1.9; thanks Eloy for telling...
[moodle-pu.git] / lib / htmlpurifier / HTMLPurifier / Doctype.php
blob7afdcd74a2a31f103e633ff3481d69552fac0928
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
14 var $name;
16 /**
17 * List of standard modules (string identifiers or literal objects)
18 * that this doctype uses
20 var $modules = array();
22 /**
23 * List of modules to use for tidying up code
25 var $tidyModules = array();
27 /**
28 * Is the language derived from XML (i.e. XHTML)?
30 var $xml = true;
32 /**
33 * List of aliases for this doctype
35 var $aliases = array();
37 /**
38 * Public DTD identifier
40 var $dtdPublic;
42 /**
43 * System DTD identifier
45 var $dtdSystem;
47 function HTMLPurifier_Doctype($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;
59 /**
60 * Clones the doctype, use before resolving modes and the like
62 function copy() {
63 return unserialize(serialize($this));