PHP Class rock\sanitize\rules\Ip

Inheritance: extends Rule
Afficher le fichier Open project: romeoz/rock-sanitize Class Usage Examples

Protected Properties

Свойство Type Description
$normalize

Méthodes publiques

Méthode Description
__construct ( $normalize = true, $config = [] )
sanitize ( $input )

Méthodes protégées

Méthode Description
IPv6toBit ( string $ip ) : string
fillAddress ( $input, $char = '*' )
isIPv6 ( $ip )
normalize ( $ip )
rangeUsingCIDR ( string $input ) : string
rangeUsingWildcards ( $input )

Method Details

IPv6toBit() protected méthode

protected IPv6toBit ( string $ip ) : string
$ip string
Résultat string

__construct() public méthode

public __construct ( $normalize = true, $config = [] )

fillAddress() protected méthode

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

isIPv6() protected méthode

protected isIPv6 ( $ip )

normalize() protected méthode

protected normalize ( $ip )

rangeUsingCIDR() protected méthode

protected rangeUsingCIDR ( string $input ) : string
$input string
Résultat string

rangeUsingWildcards() protected méthode

protected rangeUsingWildcards ( $input )

sanitize() public méthode

public sanitize ( $input )

Property Details

$normalize protected_oe property

protected $normalize