Class HTMLPurifier_AttrDef_URI_IPv4

Description

Validates an IPv4 address

Validates an IPv4 address

  • author: Feyd @ forums.devnetwork.net (public domain)

Located in /library/HTMLPurifier/AttrDef/URI/IPv4.php (line 7)

HTMLPurifier_AttrDef
   |
   --HTMLPurifier_AttrDef_URI_IPv4
Direct descendents
Class Description
HTMLPurifier_AttrDef_URI_IPv6 Validates an IPv6 address.
Variable Summary
mixed $ip4
Method Summary
void validate ( $aIP,  $config,  $context)
void _loadRegex ()
Variables
mixed $ip4 (line 13)

IPv4 regex, protected so that IPv6 can reuse it

IPv4 regex, protected so that IPv6 can reuse it

  • access: protected

Inherited Variables

Inherited from HTMLPurifier_AttrDef

HTMLPurifier_AttrDef::$minimized
HTMLPurifier_AttrDef::$required
Methods
validate (line 15)
  • access: public
void validate ( $aIP,  $config,  $context)
  • $aIP
  • $config
  • $context

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

Redefined in descendants as:
_loadRegex (line 32)

Lazy load function to prevent regex from being stuffed in cache.

Lazy load function to prevent regex from being stuffed in cache.

  • access: protected
void _loadRegex ()

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