◆ get()
Retrieves reference to a doctype of a certain name
- Note
- This function resolves aliases
-
When possible, use the more fully-featured make()
- Parameters
-
string | $doctype | Name of doctype |
- Returns
- HTMLPurifier_Doctype Editable doctype object
◆ getDoctypeFromConfig()
getDoctypeFromConfig |
( |
|
$config | ) |
|
Retrieves the doctype from the configuration object
- Parameters
-
- Returns
- string
◆ make()
Creates a doctype based on a configuration object, will perform initialization on the doctype
- Note
- Use this function to get a copy of doctype that config can hold on to (this is necessary in order to tell Generator whether or not the current document is XML based or not).
- Parameters
-
- Returns
- HTMLPurifier_Doctype
◆ register()
register |
( |
|
$doctype, |
|
|
|
$xml = true , |
|
|
|
$modules = array() , |
|
|
|
$tidy_modules = array() , |
|
|
|
$aliases = array() , |
|
|
|
$dtd_public = null , |
|
|
|
$dtd_system = null |
|
) |
| |
Registers a doctype to the registry
- Note
- Accepts a fully-formed doctype object, or the parameters for constructing a doctype object
- Parameters
-
string | $doctype | Name of doctype or literal doctype object |
bool | $xml | |
array | $modules | Modules doctype will load |
array | $tidy_modules | Modules doctype will load for certain modes |
array | $aliases | Alias names for doctype |
string | $dtd_public | |
string | $dtd_system | |
- Returns
- HTMLPurifier_Doctype Editable registered doctype
◆ $aliases
Lookup table of aliases to real doctype names. @type array
◆ $doctypes
Hash of doctype names to doctype objects. @type array
The documentation for this class was generated from the following file: