2006. Class

2006.1. Zend\Validator\Ip

2006.1.1. Methods

2006.1.1.1. setOptions

setOptions()

Sets the options for this validator

Parameters:array|Traversable
Throws ExceptionInvalidArgumentException:
 If there is any kind of IP allowed or $options is not an array or Traversable.
Return type:AbstractValidator

2006.1.1.2. isValid

isValid()

Returns true if and only if $value is a valid IP address

Parameters:mixed
Return type:bool

2006.1.1.3. validateIPv4

validateIPv4()

Validates an IPv4 address

Parameters:string
Return type:bool

2006.1.1.4. validateIPv6

validateIPv6()

Validates an IPv6 address

Parameters:string – Value to check against
Return type:bool True when $value is a valid ipv6 address False otherwise

2006.1.1.5. validateIPvFuture

validateIPvFuture()

Validates an IPvFuture address.

IPvFuture is loosely defined in the Section 3.2.2 of RFC 3986

Parameters:string – Value to check against
Return type:bool True when $value is a valid IPvFuture address False otherwise

2006.1.2. Constants

2006.1.2.1. INVALID

2006.1.2.2. NOT_IP_ADDRESS