PHP Class Respect\Validation\Rules\Ip

Inheritance: extends Respect\Validation\Rules\AbstractRule
Show file Open project: respect/validation

Public Properties

Property Type Description
$ipOptions
$networkRange

Public Methods

Method Description
__construct ( $ipOptions = null )
validate ( $input )

Protected Methods

Method Description
belongsToSubnet ( $input )
fillAddress ( &$input, $char = '*' )
parseRange ( $input )
parseRangeUsingCidr ( $input, &$range )
parseRangeUsingWildcards ( $input, &$range )
verifyAddress ( $address )
verifyNetwork ( $input )

Method Details

__construct() public method

public __construct ( $ipOptions = null )

belongsToSubnet() protected method

protected belongsToSubnet ( $input )

fillAddress() protected method

protected fillAddress ( &$input, $char = '*' )

parseRange() protected method

protected parseRange ( $input )

parseRangeUsingCidr() protected method

protected parseRangeUsingCidr ( $input, &$range )

parseRangeUsingWildcards() protected method

protected parseRangeUsingWildcards ( $input, &$range )

validate() public method

public validate ( $input )

verifyAddress() protected method

protected verifyAddress ( $address )

verifyNetwork() protected method

protected verifyNetwork ( $input )

Property Details

$ipOptions public property

public $ipOptions

$networkRange public property

public $networkRange