PHP Class HTMLPurifier_DefinitionCacheFactory, yii

Afficher le fichier Open project: yiisoft/yii Class Usage Examples

Protected Properties

Свойство Type Description
$caches
$decorators
$implementations

Méthodes publiques

Méthode Description
addDecorator ( HTMLPurifier_DefinitionCache_Decorator | string $decorator ) Registers a decorator to add to all new cache objects
create ( string $type, HTMLPurifier_Config $config ) : mixed Factory method that creates a cache object based on configuration
instance ( HTMLPurifier_DefinitionCacheFactory $prototype = null ) : HTMLPurifier_DefinitionCacheFactory Retrieves an instance of global definition cache factory.
register ( string $short, string $long ) Registers a new definition cache object
setup ( ) Initialize default decorators

Method Details

addDecorator() public méthode

Registers a decorator to add to all new cache objects
public addDecorator ( HTMLPurifier_DefinitionCache_Decorator | string $decorator )
$decorator HTMLPurifier_DefinitionCache_Decorator | string An instance or the name of a decorator

create() public méthode

Factory method that creates a cache object based on configuration
public create ( string $type, HTMLPurifier_Config $config ) : mixed
$type string Name of definitions handled by cache
$config HTMLPurifier_Config Config instance
Résultat mixed

instance() public static méthode

Retrieves an instance of global definition cache factory.
public static instance ( HTMLPurifier_DefinitionCacheFactory $prototype = null ) : HTMLPurifier_DefinitionCacheFactory
$prototype HTMLPurifier_DefinitionCacheFactory
Résultat HTMLPurifier_DefinitionCacheFactory

register() public méthode

Registers a new definition cache object
public register ( string $short, string $long )
$short string Short name of cache object, for reference
$long string Full class name of cache object, for construction

setup() public méthode

Initialize default decorators
public setup ( )

Property Details

$caches protected_oe property

protected $caches

$decorators protected_oe property

protected $decorators

$implementations protected_oe property

protected $implementations