Class HTMLPurifier_URISchemeRegistry
Inheritance | HTMLPurifier_URISchemeRegistry |
---|
Registry for retrieving specific URI scheme validator objects.
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$schemes | Cache of retrieved schemes. | HTMLPurifier_URISchemeRegistry |
Public Methods
Method | Description | Defined By |
---|---|---|
getScheme() | Retrieves a scheme validator object | HTMLPurifier_URISchemeRegistry |
instance() | Retrieve sole instance of the registry. | HTMLPurifier_URISchemeRegistry |
register() | Registers a custom scheme to the cache, bypassing reflection. | HTMLPurifier_URISchemeRegistry |
Property Details
Method Details
Retrieves a scheme validator object
public HTMLPurifier_URIScheme getScheme ( $scheme, $config, $context ) | ||
$scheme | string | String scheme name like http or mailto |
$config | HTMLPurifier_Config | |
$context | HTMLPurifier_Context |
Retrieve sole instance of the registry.
public static HTMLPurifier_URISchemeRegistry instance ( $prototype = null ) | ||
$prototype | HTMLPurifier_URISchemeRegistry | Optional prototype to overload sole instance with,
|
Registers a custom scheme to the cache, bypassing reflection.
public void register ( $scheme, $scheme_obj ) | ||
$scheme | string | Scheme name |
$scheme_obj | HTMLPurifier_URIScheme |