Class HTMLPurifier_URISchemeRegistry
Registry for retrieving specific URI scheme validator objects.
Methods summary
public static
|
#
instance( $prototype $prototype = null )
Retrieve sole instance of the registry.
Retrieve sole instance of the registry.
Parameters
- $prototype
$prototype Optional prototype to overload sole instance with, or bool true to reset to
default registry.
Note
Pass a registry object $prototype with a compatible interface and the function
will copy it and return it all further times.
|
public
|
#
getScheme( $scheme $scheme, $config $config, $config $context )
Retrieves a scheme validator object
Retrieves a scheme validator object
Parameters
- $scheme
$scheme String scheme name like http or mailto
- $config
$config HTMLPurifier_Config object
- $context
$config HTMLPurifier_Context object
|
public
|
#
register( $scheme $scheme, $scheme_obj $scheme_obj )
Registers a custom scheme to the cache, bypassing reflection.
Registers a custom scheme to the cache, bypassing reflection.
Parameters
- $scheme
$scheme Scheme name
- $scheme_obj
$scheme_obj HTMLPurifier_URIScheme object
|
Properties summary
protected
array
|
$schemes
|
array() |
#
Cache of retrieved schemes.
Cache of retrieved schemes.
|