API - XOOPS 2.5.11 Beta 2
By monxoops.fr
HTMLPurifier_AttrDef_CSS_Number Class Reference
Inheritance diagram for HTMLPurifier_AttrDef_CSS_Number:
Collaboration diagram for HTMLPurifier_AttrDef_CSS_Number:

Public Member Functions

 __construct ($non_negative=false)
 
 validate ($number, $config, $context)
 
- Public Member Functions inherited from HTMLPurifier_AttrDef
 validate ($string, $config, $context)
 
 parseCDATA ($string)
 
 make ($string)
 

Protected Attributes

 $non_negative = false
 

Additional Inherited Members

- Data Fields inherited from HTMLPurifier_AttrDef
 $minimized = false
 
 $required = false
 
- Protected Member Functions inherited from HTMLPurifier_AttrDef
 mungeRgb ($string)
 
 expandCSSEscape ($string)
 

Detailed Description

Validates a number as defined by the CSS spec.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $non_negative = false)
Parameters
bool$non_negativeindicates whether negatives are forbidden

Member Function Documentation

◆ validate()

validate (   $number,
  $config,
  $context 
)
Parameters
string$number
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Returns
string|bool
Warning
Some contexts do not pass $config, $context. These variables should not be used without checking HTMLPurifier_Length

Reimplemented from HTMLPurifier_AttrDef.

Reimplemented in HTMLPurifier_AttrDef_CSS_AlphaValue.

Here is the call graph for this function:

Field Documentation

◆ $non_negative

$non_negative = false
protected

Indicates whether or not only positive values are allowed. @type bool


The documentation for this class was generated from the following file: