HTMLPurifier_URISchemeRegistry
in package
Registry for retrieving specific URI scheme validator objects.
Table of Contents
Properties
- $schemes : mixed
- Cache of retrieved schemes.
Methods
- getScheme() : HTMLPurifier_URIScheme
- Retrieves a scheme validator object
- instance() : HTMLPurifier_URISchemeRegistry
- Retrieve sole instance of the registry.
- register() : mixed
- Registers a custom scheme to the cache, bypassing reflection.
Properties
$schemes
Cache of retrieved schemes.
protected
mixed
$schemes
= array()
Tags
Methods
getScheme()
Retrieves a scheme validator object
public
getScheme(string $scheme, HTMLPurifier_Config $config, HTMLPurifier_Context $context) : HTMLPurifier_URIScheme
Parameters
- $scheme : string
-
String scheme name like http or mailto
- $config : HTMLPurifier_Config
- $context : HTMLPurifier_Context
Return values
HTMLPurifier_URISchemeinstance()
Retrieve sole instance of the registry.
public
static instance([HTMLPurifier_URISchemeRegistry $prototype = null ]) : HTMLPurifier_URISchemeRegistry
Parameters
- $prototype : HTMLPurifier_URISchemeRegistry = null
-
Optional prototype to overload sole instance with, or bool true to reset to default registry.
Tags
Return values
HTMLPurifier_URISchemeRegistryregister()
Registers a custom scheme to the cache, bypassing reflection.
public
register(string $scheme, HTMLPurifier_URIScheme $scheme_obj) : mixed
Parameters
- $scheme : string
-
Scheme name
- $scheme_obj : HTMLPurifier_URIScheme