Make test script less chatty when log_errors is on.
[htmlpurifier.git] / library / HTMLPurifier / Doctype.php
blob1e3c574c065279b2338a1add7e303e90e3affd20
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 public $name;
16 /**
17 * List of standard modules (string identifiers or literal objects)
18 * that this doctype uses
20 public $modules = array();
22 /**
23 * List of modules to use for tidying up code
25 public $tidyModules = array();
27 /**
28 * Is the language derived from XML (i.e. XHTML)?
30 public $xml = true;
32 /**
33 * List of aliases for this doctype
35 public $aliases = array();
37 /**
38 * Public DTD identifier
40 public $dtdPublic;
42 /**
43 * System DTD identifier
45 public $dtdSystem;
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;
60 // vim: et sw=4 sts=4