mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-23 00:41:52 +00:00
4b097ef493
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@206 48356398-32a2-884e-a903-53898d9a118a
23 lines
610 B
PHP
23 lines
610 B
PHP
<?php
|
|
|
|
class HTMLPurifier_URISchemeRegistry
|
|
{
|
|
|
|
// pass a registry object $prototype with a compatible interface and
|
|
// the function will copy it and return it all further times.
|
|
// pass bool true to reset to the default registry
|
|
function &instance($prototype = null) {
|
|
static $instance = null;
|
|
if ($prototype !== null) {
|
|
$instance = $prototype;
|
|
} elseif ($instance === null || $prototype == true) {
|
|
$instance = new HTMLPurifier_URISchemeRegistry();
|
|
}
|
|
return $instance;
|
|
}
|
|
|
|
function &getScheme($scheme) {}
|
|
|
|
}
|
|
|
|
?>
|