HTMLPurifier 4.4.0
|
Validates a number as defined by the CSS spec. More...
Public Member Functions | |
__construct ($non_negative=false) | |
validate ($number, $config, $context) | |
__construct ($non_negative=false) | |
validate ($number, $config, $context) | |
Protected Attributes | |
$non_negative = false | |
Bool indicating whether or not only positive values allowed. |
Validates a number as defined by the CSS spec.
Definition at line 6 of file Number.php.
HTMLPurifier_AttrDef_CSS_Number::__construct | ( | $ | non_negative = false | ) |
$non_negative | Bool indicating whether negatives are forbidden |
Definition at line 17 of file Number.php.
References $non_negative.
HTMLPurifier_AttrDef_CSS_Number::__construct | ( | $ | non_negative = false | ) |
$non_negative | Bool indicating whether negatives are forbidden |
Definition at line 8656 of file HTMLPurifier.standalone.php.
References $non_negative.
HTMLPurifier_AttrDef_CSS_Number::validate | ( | $ | number, |
$ | config, | ||
$ | context | ||
) |
Reimplemented from HTMLPurifier_AttrDef.
Reimplemented in HTMLPurifier_AttrDef_CSS_AlphaValue, and HTMLPurifier_AttrDef_CSS_AlphaValue.
Definition at line 25 of file Number.php.
References HTMLPurifier_AttrDef::parseCDATA().
HTMLPurifier_AttrDef_CSS_Number::validate | ( | $ | number, |
$ | config, | ||
$ | context | ||
) |
Reimplemented from HTMLPurifier_AttrDef.
Reimplemented in HTMLPurifier_AttrDef_CSS_AlphaValue, and HTMLPurifier_AttrDef_CSS_AlphaValue.
Definition at line 8664 of file HTMLPurifier.standalone.php.
References HTMLPurifier_AttrDef::parseCDATA().
HTMLPurifier_AttrDef_CSS_Number::$non_negative = false [protected] |
Bool indicating whether or not only positive values allowed.
Definition at line 12 of file Number.php.
Referenced by __construct().