PHP 클래스 HTMLPurifier_DefinitionCacheFactory, yii

파일 보기 프로젝트 열기: yiisoft/yii 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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