PHP 클래스 HTMLPurifier_ChildDef_Chameleon, yii

The del and ins tags are notable because they allow different types of elements depending on whether or not they're in a block or inline context. Chameleon allows this behavior to happen by using two different definitions depending on context. While this somewhat generalized, it is specifically intended for those two tags.
상속: extends HTMLPurifier_ChildDef
파일 보기 프로젝트 열기: yiisoft/yii

공개 프로퍼티들

프로퍼티 타입 설명
$block Instance of the definition object to use when block.
$inline Instance of the definition object to use when inline. Usually stricter.
$type

공개 메소드들

메소드 설명
__construct ( array $inline, array $block )
validateChildren ( HTMLPurifier_Node[] $children, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean

메소드 상세

__construct() 공개 메소드

public __construct ( array $inline, array $block )
$inline array List of elements to allow when inline.
$block array List of elements to allow when block.

validateChildren() 공개 메소드

public validateChildren ( HTMLPurifier_Node[] $children, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean
$children HTMLPurifier_Node[]
$config HTMLPurifier_Config
$context HTMLPurifier_Context
리턴 boolean

프로퍼티 상세

$block 공개적으로 프로퍼티

Instance of the definition object to use when block.
public $block

$inline 공개적으로 프로퍼티

Instance of the definition object to use when inline. Usually stricter.
public $inline

$type 공개적으로 프로퍼티

public $type