HTMLPurifier_AttrDef_CSS_Number::__construct PHP Method

__construct() public method

public __construct ( boolean $non_negative = false )
$non_negative boolean indicates whether negatives are forbidden
    public function __construct($non_negative = false)
    {
        $this->non_negative = $non_negative;
    }

Usage Example

 public function __construct()
 {
     parent::__construct(false);
     // opacity is non-negative, but we will clamp it
 }
All Usage Examples Of HTMLPurifier_AttrDef_CSS_Number::__construct
HTMLPurifier_AttrDef_CSS_Number