PHP Class HTMLPurifier_AttrDef_Integer, yii

Inheritance: extends HTMLPurifier_AttrDef
ファイルを表示 Open project: yiisoft/yii

Protected Properties

Property Type Description
$negative Whether or not negative values are allowed.
$positive Whether or not positive values are allowed.
$zero Whether or not zero is allowed.

Public Methods

Method Description
__construct ( $negative = true, $zero = true, $positive = true )
validate ( string $integer, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean | string

Method Details

__construct() public method

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 method

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

Property Details

$negative protected_oe property

Whether or not negative values are allowed.
protected $negative

$positive protected_oe property

Whether or not positive values are allowed.
protected $positive

$zero protected_oe property

Whether or not zero is allowed.
protected $zero