\HTMLPurifier_URISchemeRegistry

Registry for retrieving specific URI scheme validator objects.

Summary

Methods
Properties
Constants
instance()
getScheme()
register()
No public properties found
No constants found
No protected methods found
$schemes
N/A
No private methods found
No private properties found
N/A

Properties

$schemes

$schemes

Cache of retrieved schemes.

Methods

instance()

instance(\HTMLPurifier_URISchemeRegistry  $prototype = null) : \HTMLPurifier_URISchemeRegistry

Retrieve sole instance of the registry.

Parameters

\HTMLPurifier_URISchemeRegistry $prototype

Optional prototype to overload sole instance with, or bool true to reset to default registry.

Returns

\HTMLPurifier_URISchemeRegistry —

getScheme()

getScheme(string  $scheme, \HTMLPurifier_Config  $config, \HTMLPurifier_Context  $context) : \HTMLPurifier_URIScheme

Retrieves a scheme validator object

Parameters

string $scheme

String scheme name like http or mailto

\HTMLPurifier_Config $config
\HTMLPurifier_Context $context

Returns

\HTMLPurifier_URIScheme —

register()

register(string  $scheme, \HTMLPurifier_URIScheme  $scheme_obj) : mixed

Registers a custom scheme to the cache, bypassing reflection.

Parameters

string $scheme

Scheme name

\HTMLPurifier_URIScheme $scheme_obj

Returns

mixed —