API - XOOPS 2.5.11 Beta 2
By monxoops.fr
HTMLPurifier_AttrDef_URI_IPv4 Class Reference
Inheritance diagram for HTMLPurifier_AttrDef_URI_IPv4:
Collaboration diagram for HTMLPurifier_AttrDef_URI_IPv4:

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

 $ip4
 

Additional Inherited Members

- Data Fields inherited from HTMLPurifier_AttrDef
 $minimized = false
 
 $required = false
 

Detailed Description

Validates an IPv4 address

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

Member Function Documentation

◆ _loadRegex()

_loadRegex ( )
protected

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

Here is the caller graph for this function:

◆ validate()

validate (   $aIP,
  $config,
  $context 
)
Parameters
string$aIP
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Returns
bool|string

Reimplemented from HTMLPurifier_AttrDef.

Reimplemented in HTMLPurifier_AttrDef_URI_IPv6.

Here is the call graph for this function:

Field Documentation

◆ $ip4

$ip4
protected

IPv4 regex, protected so that IPv6 can reuse it. @type string


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