Class HTMLPurifier_AttrDef_Integer

Description

Validates an integer.

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

HTMLPurifier_AttrDef
   |
   --HTMLPurifier_AttrDef_Integer
Variable Summary
mixed $negative
mixed $positive
mixed $zero
Method Summary
HTMLPurifier_AttrDef_Integer __construct ([$negative $negative = true], [$zero $zero = true], [$positive $positive = true])
void validate ( $integer,  $config,  $context)
Variables
mixed $negative = true (line 7858)

Bool indicating whether or not negative values are allowed

  • access: protected
mixed $positive = true (line 7868)

Bool indicating whether or not positive values are allowed

  • access: protected
mixed $zero = true (line 7863)

Bool indicating whether or not zero is allowed

  • access: protected

Inherited Variables

Inherited from HTMLPurifier_AttrDef

HTMLPurifier_AttrDef::$minimized
HTMLPurifier_AttrDef::$required
Methods
Constructor __construct (line 7875)
  • access: public
HTMLPurifier_AttrDef_Integer __construct ([$negative $negative = true], [$zero $zero = true], [$positive $positive = true])
  • $negative $negative: Bool indicating whether or not negative values are allowed
  • $zero $zero: Bool indicating whether or not zero is allowed
  • $positive $positive: Bool indicating whether or not positive values are allowed
validate (line 7883)
  • access: public
void validate ( $integer,  $config,  $context)
  • $integer
  • $config
  • $context

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

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:24:00 -0500 by phpDocumentor 1.4.3