PHP 클래스 HTMLPurifier_AttrDef_CSS_Multiple, yii

Certain CSS properties such as border-width and margin allow multiple lengths to be specified. This class can take a vanilla border-width definition and multiply it, usually into a max of four.
상속: extends HTMLPurifier_AttrDef
파일 보기 프로젝트 열기: yiisoft/yii

공개 프로퍼티들

프로퍼티 타입 설명
$max Max number of values allowed.
$single Instance of component definition to defer validation to.

공개 메소드들

메소드 설명
__construct ( HTMLPurifier_AttrDef $single, integer $max = 4 )
validate ( string $string, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean | string

메소드 상세

__construct() 공개 메소드

public __construct ( HTMLPurifier_AttrDef $single, integer $max = 4 )
$single HTMLPurifier_AttrDef HTMLPurifier_AttrDef to multiply
$max integer Max number of values allowed (usually four)

validate() 공개 메소드

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

프로퍼티 상세

$max 공개적으로 프로퍼티

Max number of values allowed.
public $max

$single 공개적으로 프로퍼티

Instance of component definition to defer validation to.
public $single