Methods summary
public
Editable
|
#
register( $doctype $doctype, $modules $xml = true, $modules_for_modes $modules = array(), $aliases $tidy_modules = array(), $aliases = array(), $dtd_public = null, $dtd_system = null )
Registers a doctype to the registry
Registers a doctype to the registry
Parameters
- $doctype
$doctype Name of doctype or literal doctype object
- $xml
$modules Modules doctype will load
- $modules
$modules_for_modes Modules doctype will load for certain modes
- $tidy_modules
$aliases Alias names for doctype
- $aliases
- $dtd_public
- $dtd_system
Returns
Editable registered doctype
Note
Accepts a fully-formed doctype object, or the parameters for constructing a
doctype object
|
public
Editable
|
#
get( $doctype $doctype )
Retrieves reference to a doctype of a certain name
Retrieves reference to a doctype of a certain name
Parameters
- $doctype
$doctype Name of doctype
Returns
Editable doctype object
Note
This function resolves aliases
When possible, use the more fully-featured make()
|
public
|
#
make( $config )
Creates a doctype based on a configuration object, will perform
initialization on the doctype
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).
|
public
|
#
getDoctypeFromConfig( $config )
Retrieves the doctype from the configuration object
Retrieves the doctype from the configuration object
|