PHP 클래스 HTMLPurifier_AttrDef_Switch, yii

파일 보기 프로젝트 열기: yiisoft/yii

보호된 프로퍼티들

프로퍼티 타입 설명
$tag
$withTag
$withoutTag

공개 메소드들

메소드 설명
__construct ( string $tag, HTMLPurifier_AttrDef $with_tag, HTMLPurifier_AttrDef $without_tag )
validate ( string $string, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean | string

메소드 상세

__construct() 공개 메소드

public __construct ( string $tag, HTMLPurifier_AttrDef $with_tag, HTMLPurifier_AttrDef $without_tag )
$tag string Tag name to switch upon
$with_tag HTMLPurifier_AttrDef Call if token matches tag
$without_tag HTMLPurifier_AttrDef Call if token doesn't match, or there is no token

validate() 공개 메소드

public validate ( string $string, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean | string
$string string
$config HTMLPurifier_Config
$context HTMLPurifier_Context
리턴 boolean | string

프로퍼티 상세

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

protected $tag

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

protected $withTag

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

protected $withoutTag