Class HTMLPurifier_URISchemeRegistry

InheritanceHTMLPurifier_URISchemeRegistry

Registry for retrieving specific URI scheme validator objects.

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$schemes Cache of retrieved schemes. HTMLPurifier_URISchemeRegistry

Public Methods

Hide inherited methods

MethodDescriptionDefined 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

$schemes protected property
protected $schemes = []

Method Details

getScheme() public method

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
instance() public static method

Retrieve sole instance of the registry.

public static HTMLPurifier_URISchemeRegistry instance ( $prototype null )
$prototype HTMLPurifier_URISchemeRegistry

Optional prototype to overload sole instance with,

              or bool true to reset to default registry.
register() public method

Registers a custom scheme to the cache, bypassing reflection.

public void register ( $scheme, $scheme_obj )
$scheme string

Scheme name

$scheme_obj HTMLPurifier_URIScheme