Class HTMLPurifier_AttrDef_Integer

Description

Validates an integer.

Validates an integer.

Located in /library/HTMLPurifier/AttrDef/Integer.php (line 10)

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

Bool indicating whether or not negative values are allowed

Bool indicating whether or not negative values are allowed

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

Bool indicating whether or not positive values are allowed

Bool indicating whether or not positive values are allowed

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

Bool indicating whether or not zero is allowed

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 33)
  • 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 41)
  • 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::make()
HTMLPurifier_AttrDef::mungeRgb()
HTMLPurifier_AttrDef::parseCDATA()
HTMLPurifier_AttrDef::validate()

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