Validates an IPv4 address.  
 More...
| 
Public Member Functions | 
|  | validate ($aIP, $config, $context) | 
|  | Validates and cleans passed string according to a definition. 
 | 
|  | parseCDATA ($string) | 
|  | Convenience method that parses a string as if it were CDATA. 
 | 
|  | make ($string) | 
|  | Factory method for creating this class from a string. 
 | 
| 
Protected Member Functions | 
|  | _loadRegex () | 
|  | Lazy load function to prevent regex from being stuffed in cache. 
 | 
|  | mungeRgb ($string) | 
|  | Removes spaces from rgb(0, 0, 0) so that shorthand CSS properties work properly. 
 | 
|  | expandCSSEscape ($string) | 
|  | Parses a possibly escaped CSS string and returns the "pure" version of it. 
 | 
| 
Protected Attributes | 
|  | $ip4 | 
|  | IPv4 regex, protected so that IPv6 can reuse it. 
 | 
| 
Additional Inherited Members | 
|  | $minimized = false | 
|  | Tells us whether or not an HTML attribute is minimized. 
 | 
|  | $required = false | 
|  | Tells us whether or not an HTML attribute is required. 
 | 
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 | 
 
 
      
        
          | HTMLPurifier_AttrDef_URI_IPv4::validate | ( |  | $string, | 
        
          |  |  |  | $config, | 
        
          |  |  |  | $context | 
        
          |  | ) |  |  | 
      
 
 
Field 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:
- Services/Html/HtmlPurifier/library/HTMLPurifier/AttrDef/URI/IPv4.php