File indexing completed on 2024-12-22 05:36:21
0001 <?php 0002 0003 /** 0004 * Represents a document type, contains information on which modules 0005 * need to be loaded. 0006 * @note This class is inspected by Printer_HTMLDefinition->renderDoctype. 0007 * If structure changes, please update that function. 0008 */ 0009 class HTMLPurifier_Doctype 0010 { 0011 /** 0012 * Full name of doctype 0013 * @type string 0014 */ 0015 public $name; 0016 0017 /** 0018 * List of standard modules (string identifiers or literal objects) 0019 * that this doctype uses 0020 * @type array 0021 */ 0022 public $modules = array(); 0023 0024 /** 0025 * List of modules to use for tidying up code 0026 * @type array 0027 */ 0028 public $tidyModules = array(); 0029 0030 /** 0031 * Is the language derived from XML (i.e. XHTML)? 0032 * @type bool 0033 */ 0034 public $xml = true; 0035 0036 /** 0037 * List of aliases for this doctype 0038 * @type array 0039 */ 0040 public $aliases = array(); 0041 0042 /** 0043 * Public DTD identifier 0044 * @type string 0045 */ 0046 public $dtdPublic; 0047 0048 /** 0049 * System DTD identifier 0050 * @type string 0051 */ 0052 public $dtdSystem; 0053 0054 public function __construct( 0055 $name = null, 0056 $xml = true, 0057 $modules = array(), 0058 $tidyModules = array(), 0059 $aliases = array(), 0060 $dtd_public = null, 0061 $dtd_system = null 0062 ) { 0063 $this->name = $name; 0064 $this->xml = $xml; 0065 $this->modules = $modules; 0066 $this->tidyModules = $tidyModules; 0067 $this->aliases = $aliases; 0068 $this->dtdPublic = $dtd_public; 0069 $this->dtdSystem = $dtd_system; 0070 } 0071 } 0072 0073 // vim: et sw=4 sts=4