ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Registry for retrieving specific URI scheme validator objects. More...
Public Member Functions | |
getScheme ($scheme, $config, $context) | |
Retrieves a scheme validator object. More... | |
register ($scheme, $scheme_obj) | |
Registers a custom scheme to the cache, bypassing reflection. More... | |
Static Public Member Functions | |
static | instance ($prototype=null) |
Retrieve sole instance of the registry. More... | |
Protected Attributes | |
$schemes = array() | |
Cache of retrieved schemes. More... | |
Registry for retrieving specific URI scheme validator objects.
Definition at line 6 of file URISchemeRegistry.php.
HTMLPurifier_URISchemeRegistry::getScheme | ( | $scheme, | |
$config, | |||
$context | |||
) |
Retrieves a scheme validator object.
string | $scheme | String scheme name like http or mailto |
HTMLPurifier_Config | $config | |
HTMLPurifier_Context | $context |
Definition at line 41 of file URISchemeRegistry.php.
References $config, and HTMLPurifier_Config\createDefault().
|
static |
Retrieve sole instance of the registry.
HTMLPurifier_URISchemeRegistry | $prototype | Optional prototype to overload sole instance with, or bool true to reset to default registry. |
Definition at line 17 of file URISchemeRegistry.php.
Referenced by HTMLPurifier_URIDefinition\getDefaultScheme(), and HTMLPurifier_URI\getSchemeObj().
HTMLPurifier_URISchemeRegistry::register | ( | $scheme, | |
$scheme_obj | |||
) |
Registers a custom scheme to the cache, bypassing reflection.
string | $scheme | Scheme name |
HTMLPurifier_URIScheme | $scheme_obj |
Definition at line 75 of file URISchemeRegistry.php.
|
protected |
Cache of retrieved schemes.
Definition at line 32 of file URISchemeRegistry.php.