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