PHP Class HTMLPurifier_URISchemeRegistry, yii

显示文件 Open project: yiisoft/yii Class Usage Examples

Protected Properties

Property Type Description
$schemes Cache of retrieved schemes.

Public Methods

Method Description
getScheme ( string $scheme, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : HTMLPurifier_URIScheme Retrieves a scheme validator object
instance ( HTMLPurifier_URISchemeRegistry $prototype = null ) : HTMLPurifier_URISchemeRegistry Retrieve sole instance of the registry.
register ( string $scheme, HTMLPurifier_URIScheme $scheme_obj ) Registers a custom scheme to the cache, bypassing reflection.

Method Details

getScheme() public method

Retrieves a scheme validator object
public getScheme ( string $scheme, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : HTMLPurifier_URIScheme
$scheme string String scheme name like http or mailto
$config HTMLPurifier_Config
$context HTMLPurifier_Context
return HTMLPurifier_URIScheme

instance() public static method

Retrieve sole instance of the registry.
public static instance ( HTMLPurifier_URISchemeRegistry $prototype = null ) : HTMLPurifier_URISchemeRegistry
$prototype HTMLPurifier_URISchemeRegistry Optional prototype to overload sole instance with, or bool true to reset to default registry.
return HTMLPurifier_URISchemeRegistry

register() public method

Registers a custom scheme to the cache, bypassing reflection.
public register ( string $scheme, HTMLPurifier_URIScheme $scheme_obj )
$scheme string Scheme name
$scheme_obj HTMLPurifier_URIScheme

Property Details

$schemes protected_oe property

Cache of retrieved schemes.
protected $schemes