Nextcloud PHP API (master)

IRange

IP Range (IPv4 or IPv6)

Tags
since
30.0.0

Table of Contents

Methods

__toString()  : string
Normalized IP range
contains()  : bool
Check if an address is in the current range
isValid()  : bool
Check if a given range is valid

Methods

__toString()

Normalized IP range

public __toString() : string
Tags
since
30.0.0
Return values
string

contains()

Check if an address is in the current range

public contains(IAddress $address) : bool
Parameters
$address : IAddress
Tags
since
30.0.0
Return values
bool

isValid()

Check if a given range is valid

public static isValid(string $range) : bool
Parameters
$range : string
Tags
since
30.0.0
Return values
bool

        
On this page

Search results