Property | Type | Description | |
---|---|---|---|
$networkRange | network range | ||
$options | setup options |
Method | Description | |
---|---|---|
__construct ( mixed $options = null ) | Setup validation rule | |
getTemplate ( ) : string | Get error template | |
validate ( string $input ) : boolean | Check input data |
Method | Description | |
---|---|---|
belongsToSubnet ( string $input ) : boolean | Check subnet | |
fillAddress ( string &$input, string $char = '*' ) | Fill address | |
parseRange ( string $input ) : array | Parse IP range | |
parseRangeUsingCidr ( string $input, array &$range ) | Parse range using Classless Inter-Domain Routing (CIDR) | |
parseRangeUsingWildcards ( string $input, array &$range ) | Parse range using wildcards | |
verifyAddress ( string $address ) : boolean | Verify IP address | |
verifyNetwork ( string $input ) : boolean | Verify Network by mask |
public __construct ( mixed $options = null ) | ||
$options | mixed |
protected belongsToSubnet ( string $input ) : boolean | ||
$input | string | |
return | boolean |
protected fillAddress ( string &$input, string $char = '*' ) | ||
$input | string | |
$char | string |
protected parseRange ( string $input ) : array | ||
$input | string | |
return | array |
protected parseRangeUsingCidr ( string $input, array &$range ) | ||
$input | string | |
$range | array |
protected parseRangeUsingWildcards ( string $input, array &$range ) | ||
$input | string | |
$range | array |
protected verifyAddress ( string $address ) : boolean | ||
$address | string | |
return | boolean |
protected verifyNetwork ( string $input ) : boolean | ||
$input | string | |
return | boolean |