PHP 클래스 HTMLPurifier_AttrDef_Integer, yii

상속: extends HTMLPurifier_AttrDef
파일 보기 프로젝트 열기: yiisoft/yii

보호된 프로퍼티들

프로퍼티 타입 설명
$negative Whether or not negative values are allowed.
$positive Whether or not positive values are allowed.
$zero Whether or not zero is allowed.

공개 메소드들

메소드 설명
__construct ( $negative = true, $zero = true, $positive = true )
validate ( string $integer, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean | string

메소드 상세

__construct() 공개 메소드

public __construct ( $negative = true, $zero = true, $positive = true )
$negative Bool indicating whether or not negative values are allowed
$zero Bool indicating whether or not zero is allowed
$positive Bool indicating whether or not positive values are allowed

validate() 공개 메소드

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

프로퍼티 상세

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

Whether or not negative values are allowed.
protected $negative

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

Whether or not positive values are allowed.
protected $positive

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

Whether or not zero is allowed.
protected $zero