HumHub Documentation (unofficial)

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
type

HTMLPurifier_URIScheme[]

Methods

instance()

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
note

Pass a registry object $prototype with a compatible interface and the function will copy it and return it all further times.

Return values
HTMLPurifier_URISchemeRegistry

        
On this page

Search results