PHP Class HTMLPurifier_AttrDef_CSS_Number, yii

Inheritance: extends HTMLPurifier_AttrDef
Show file Open project: yiisoft/yii Class Usage Examples

Protected Properties

Property Type Description
$non_negative Indicates whether or not only positive values are allowed.

Public Methods

Method Description
__construct ( boolean $non_negative = false )
validate ( string $number, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : string | boolean

Method Details

__construct() public method

public __construct ( boolean $non_negative = false )
$non_negative boolean indicates whether negatives are forbidden

validate() public method

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

Property Details

$non_negative protected property

Indicates whether or not only positive values are allowed.
protected $non_negative