class NetworkFilter

Methods

static mixed
filterIp(string $attrValue)

Filter an IP value (includes IPv4 and IPv6)

static mixed
filterIpport(string $attrValue)

Filter an IP:port value (includes IPv4 and IPv6)

static mixed
filterIpv4(string $attrValue)

Filter an IPv4 value

static mixed
filterIpv6(string $attrValue)

Filter an IPv6 value

Details

at line 18
static mixed filterIp(string $attrValue)

Filter an IP value (includes IPv4 and IPv6)

Parameters

string $attrValue

Original value

Return Value

mixed

Filtered value, or FALSE if invalid

at line 29
static mixed filterIpport(string $attrValue)

Filter an IP:port value (includes IPv4 and IPv6)

Parameters

string $attrValue

Original value

Return Value

mixed

Filtered value, or FALSE if invalid

at line 64
static mixed filterIpv4(string $attrValue)

Filter an IPv4 value

Parameters

string $attrValue

Original value

Return Value

mixed

Filtered value, or FALSE if invalid

at line 75
static mixed filterIpv6(string $attrValue)

Filter an IPv6 value

Parameters

string $attrValue

Original value

Return Value

mixed

Filtered value, or FALSE if invalid