XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
HTMLPurifier_AttrDef_CSS_Percentage Class Reference
Inheritance diagram for HTMLPurifier_AttrDef_CSS_Percentage:
Inheritance graph

Public Member Functions

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

Protected Attributes

 $number_def
 

Additional Inherited Members

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

Detailed Description

Validates a Percentage as defined by the CSS spec.

Definition at line 6 of file Percentage.php.

Constructor & Destructor Documentation

HTMLPurifier_AttrDef_CSS_Percentage::__construct (   $non_negative = false)
Parameters
Boolindicating whether to forbid negative values

Definition at line 17 of file Percentage.php.

Member Function Documentation

HTMLPurifier_AttrDef_CSS_Percentage::validate (   $string,
  $config,
  $context 
)

Definition at line 21 of file Percentage.php.

References $config, and HTMLPurifier_AttrDef\parseCDATA().

Here is the call graph for this function:

Member Data Documentation

HTMLPurifier_AttrDef_CSS_Percentage::$number_def
protected

Instance of HTMLPurifier_AttrDef_CSS_Number to defer number validation

Definition at line 12 of file Percentage.php.


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