XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
HTMLPurifier_AttrDef_URI_IPv4 Class Reference
Inheritance diagram for HTMLPurifier_AttrDef_URI_IPv4:
Inheritance graph

Public Member Functions

 validate ($aIP, $config, $context)
 
- Public Member Functions inherited from HTMLPurifier_AttrDef
 make ($string)
 
 parseCDATA ($string)
 
 validate ($string, $config, $context)
 

Protected Member Functions

 _loadRegex ()
 
- Protected Member Functions inherited from HTMLPurifier_AttrDef
 expandCSSEscape ($string)
 
 mungeRgb ($string)
 

Protected Attributes

 $ip4
 

Additional Inherited Members

- Public Attributes inherited from HTMLPurifier_AttrDef
 $minimized = false
 
 $required = false
 

Detailed Description

Validates an IPv4 address

Author
Feyd @ forums.devnetwork.net (public domain)

Definition at line 7 of file IPv4.php.

Member Function Documentation

HTMLPurifier_AttrDef_URI_IPv4::_loadRegex ( )
protected

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

Definition at line 32 of file IPv4.php.

Referenced by HTMLPurifier_AttrDef_URI_IPv6\validate(), and validate().

Here is the caller graph for this function:

HTMLPurifier_AttrDef_URI_IPv4::validate (   $aIP,
  $config,
  $context 
)

Definition at line 15 of file IPv4.php.

References _loadRegex().

Here is the call graph for this function:

Member Data Documentation

HTMLPurifier_AttrDef_URI_IPv4::$ip4
protected

IPv4 regex, protected so that IPv6 can reuse it

Definition at line 13 of file IPv4.php.


The documentation for this class was generated from the following file: