Class HTMLPurifier_AttrDef_CSS_Number

Description

Validates a number as defined by the CSS spec.

Located in /lib/core/Parsers/htmlpurifier/HTMLPurifier.standalone.php (line 8125)

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 8131)

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 8136)
  • 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 8144)
  • 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::expandCSSEscape()
HTMLPurifier_AttrDef::make()
HTMLPurifier_AttrDef::mungeRgb()
HTMLPurifier_AttrDef::parseCDATA()
HTMLPurifier_AttrDef::validate()

Documentation generated on Sun, 06 Mar 2011 00:23:59 -0500 by phpDocumentor 1.4.3