PHP Класс HTMLPurifier_DefinitionCacheFactory, yii

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$caches
$decorators
$implementations

Открытые методы

Метод Описание
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

Описание методов

addDecorator() публичный Метод

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() публичный Метод

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
Результат mixed

instance() публичный статический Метод

Retrieves an instance of global definition cache factory.
public static instance ( HTMLPurifier_DefinitionCacheFactory $prototype = null ) : HTMLPurifier_DefinitionCacheFactory
$prototype HTMLPurifier_DefinitionCacheFactory
Результат HTMLPurifier_DefinitionCacheFactory

register() публичный Метод

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() публичный Метод

Initialize default decorators
public setup ( )

Описание свойств

$caches защищенное свойство

protected $caches

$decorators защищенное свойство

protected $decorators

$implementations защищенное свойство

protected $implementations