PHP Class HTMLPurifier_AttrDef_CSS_Number, yii

Inheritance: extends HTMLPurifier_AttrDef
Afficher le fichier Open project: yiisoft/yii Class Usage Examples

Protected Properties

Свойство Type Description
$non_negative Indicates whether or not only positive values are allowed.

Méthodes publiques

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

Method Details

__construct() public méthode

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

validate() public méthode

public validate ( string $number, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : string | boolean
$number string
$config HTMLPurifier_Config
$context HTMLPurifier_Context
Résultat string | boolean

Property Details

$non_negative protected_oe property

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