PHP 클래스 HTMLPurifier_DoctypeRegistry, yii

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

보호된 프로퍼티들

프로퍼티 타입 설명
$aliases Lookup table of aliases to real doctype names.
$doctypes Hash of doctype names to doctype objects.

공개 메소드들

메소드 설명
get ( string $doctype ) : HTMLPurifier_Doctype Retrieves reference to a doctype of a certain name
getDoctypeFromConfig ( HTMLPurifier_Config $config ) : string Retrieves the doctype from the configuration object
make ( HTMLPurifier_Config $config ) : HTMLPurifier_Doctype Creates a doctype based on a configuration object, will perform initialization on the doctype
register ( string $doctype, boolean $xml = true, array $modules = [], array $tidy_modules = [], array $aliases = [], string $dtd_public = null, string $dtd_system = null ) : HTMLPurifier_Doctype Registers a doctype to the registry

메소드 상세

get() 공개 메소드

Retrieves reference to a doctype of a certain name
public get ( string $doctype ) : HTMLPurifier_Doctype
$doctype string Name of doctype
리턴 HTMLPurifier_Doctype Editable doctype object

getDoctypeFromConfig() 공개 메소드

Retrieves the doctype from the configuration object
public getDoctypeFromConfig ( HTMLPurifier_Config $config ) : string
$config HTMLPurifier_Config
리턴 string

make() 공개 메소드

Creates a doctype based on a configuration object, will perform initialization on the doctype
public make ( HTMLPurifier_Config $config ) : HTMLPurifier_Doctype
$config HTMLPurifier_Config
리턴 HTMLPurifier_Doctype

register() 공개 메소드

Registers a doctype to the registry
public register ( string $doctype, boolean $xml = true, array $modules = [], array $tidy_modules = [], array $aliases = [], string $dtd_public = null, string $dtd_system = null ) : HTMLPurifier_Doctype
$doctype string Name of doctype or literal doctype object
$xml boolean
$modules array Modules doctype will load
$tidy_modules array Modules doctype will load for certain modes
$aliases array Alias names for doctype
$dtd_public string
$dtd_system string
리턴 HTMLPurifier_Doctype Editable registered doctype

프로퍼티 상세

$aliases 보호되어 있는 프로퍼티

Lookup table of aliases to real doctype names.
protected $aliases

$doctypes 보호되어 있는 프로퍼티

Hash of doctype names to doctype objects.
protected $doctypes