Class HTMLPurifier_AttrDef_CSS_Number

Description

Validates a number as defined by the CSS spec.

Validates a number as defined by the CSS spec.

Located in /library/HTMLPurifier/AttrDef/CSS/Number.php (line 6)

HTMLPurifier_AttrDef
   |
   --HTMLPurifier_AttrDef_CSS_Number
Direct descendents
Class Description
HTMLPurifier_AttrDef_CSS_AlphaValue Validates a number as defined by the CSS spec.
Variable Summary
Method Summary
HTMLPurifier_AttrDef_CSS_Number __construct ([$non_negative $non_negative = false])
void validate ( $number,  $config,  $context)
Variables
mixed $non_negative = false (line 12)

Bool indicating whether or not only positive values allowed.

Bool indicating whether or not only positive values allowed.

  • access: protected

Inherited Variables

Inherited from HTMLPurifier_AttrDef

HTMLPurifier_AttrDef::$minimized
HTMLPurifier_AttrDef::$required
Methods
Constructor __construct (line 17)
  • access: public
HTMLPurifier_AttrDef_CSS_Number __construct ([$non_negative $non_negative = false])
  • $non_negative $non_negative: Bool indicating whether negatives are forbidden

Redefined in descendants as:
validate (line 25)
  • access: public
void validate ( $number,  $config,  $context)
  • $number
  • $config
  • $context

Redefinition of:
HTMLPurifier_AttrDef::validate()
Validates and cleans passed string according to a definition.

Redefined in descendants as:

Inherited Methods

Inherited From HTMLPurifier_AttrDef

HTMLPurifier_AttrDef::make()
HTMLPurifier_AttrDef::mungeRgb()
HTMLPurifier_AttrDef::parseCDATA()
HTMLPurifier_AttrDef::validate()

Documentation generated on Thu, 19 Jun 2008 18:49:50 -0400 by phpDocumentor 1.4.2