PHP 클래스 HTMLPurifier_AttrDef_CSS_Composite, yii

Composite is just what it sounds like: a composite of many validators. This means that multiple HTMLPurifier_AttrDef objects will have a whack at the string. If one of them passes, that's what is returned. This is especially useful for CSS values, which often are a choice between an enumerated set of predefined values or a flexible data type.
상속: extends HTMLPurifier_AttrDef
파일 보기 프로젝트 열기: yiisoft/yii

공개 프로퍼티들

프로퍼티 타입 설명
$defs List of objects that may process strings.

공개 메소드들

메소드 설명
__construct ( HTMLPurifier_AttrDef[] $defs )
validate ( string $string, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean | string

메소드 상세

__construct() 공개 메소드

public __construct ( HTMLPurifier_AttrDef[] $defs )
$defs HTMLPurifier_AttrDef[] List of HTMLPurifier_AttrDef objects

validate() 공개 메소드

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

프로퍼티 상세

$defs 공개적으로 프로퍼티

List of objects that may process strings.
public $defs