PHP Class HTMLPurifier_AttrDef_CSS_Percentage, yii

Inheritance: extends HTMLPurifier_AttrDef
Mostrar archivo Open project: yiisoft/yii

Protected Properties

Property Type Description
$number_def Instance to defer number validation to.

Public Methods

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

Method Details

__construct() public method

public __construct ( boolean $non_negative = false )
$non_negative boolean Whether to forbid negative values

validate() public method

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

Property Details

$number_def protected_oe property

Instance to defer number validation to.
protected $number_def