1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс IpAddress

Открытые члены

 __construct ($ip)
 get ()
 __toString ()
 isPrivate ()
 isIPv4 ()
 matchRange (string $cidr)
 toUnsigned ()
 toRange (int $prefixLen)

Открытые статические члены

static createByName ($name)
static createByUri (UriInterface $uri)

Защищенные данные

 $ip

Подробное описание

См. определение в файле ipaddress.php строка 14

Конструктор(ы)

◆ __construct()

__construct ( $ip)
Аргументы
string$ip

См. определение в файле ipaddress.php строка 21

Методы

◆ __toString()

__toString ( )

Returns address's value.

Возвращает
string

См. определение в файле ipaddress.php строка 64

◆ createByName()

createByName ( $name)
static

Creates the object by a host name.

Аргументы
string$name
Возвращает
static

См. определение в файле ipaddress.php строка 32

◆ createByUri()

createByUri ( UriInterface $uri)
static

Creates the object by a Uri.

Аргументы
UriInterface$uri
Возвращает
static

См. определение в файле ipaddress.php строка 44

◆ get()

get ( )

Returns address's value.

Возвращает
string

См. определение в файле ipaddress.php строка 54

◆ isIPv4()

isIPv4 ( )

Retuns true if the address is IPv4.

Возвращает
bool

См. определение в файле ipaddress.php строка 84

◆ isPrivate()

isPrivate ( )

Retuns true if the address is incorrect or private.

Возвращает
bool

См. определение в файле ipaddress.php строка 74

◆ matchRange()

matchRange ( string $cidr)

Check IPv4 address is within an IP range

Аргументы
string$cidra valid IPv4 subnet[/mask]
Возвращает
bool

См. определение в файле ipaddress.php строка 95

◆ toRange()

toRange ( int $prefixLen)

Formats IP as a range (192.168.0.0/24).

Аргументы
int$prefixLen
Возвращает
string

См. определение в файле ipaddress.php строка 124

◆ toUnsigned()

toUnsigned ( )

Formats IP as an unsigned int and returns it as a sting.

Возвращает
string

См. определение в файле ipaddress.php строка 114

Поля

◆ $ip

$ip
protected

См. определение в файле ipaddress.php строка 16


Объявления и описания членов класса находятся в файле: