Static Public Member Functions |
static | netmask2cidr ($netmask) |
| Converts netmask in classic format (eg.
|
static | cidr2netmask ($cidr) |
| Converts netmask in CIDR format (eg.
|
static | size ($size, $byte=TRUE) |
| Formats size.
|
static | speed ($speed) |
| Formats speed.
|
static | ip_address_in_ranges ($ip_address) |
| Checks whether ip address belongs to default address ranges.
|
static | str2bytes ($str) |
| Converts speed string to integer (bytes)
|
static | str2array ($str) |
| Converts speed string to array.
|
static | bytes2str ($bytes, $unit="") |
| Converts integer (bytes) to speed string.
|
static | transfer_unit ($size, $from_unit, $to_unit) |
| Tranfers bytes from unit do unit.
|
static | speed_size ($str, $unit= 'M') |
| Parses speed string to array.
|
Member Function Documentation
static network::bytes2str |
( |
|
$bytes, |
|
|
|
$unit = "" |
|
) |
| |
|
static |
Converts integer (bytes) to speed string.
- Author
- Michal Kliment
- Parameters
-
- Returns
- type
static network::cidr2netmask |
( |
|
$cidr | ) |
|
|
static |
Converts netmask in CIDR format (eg.
24) to classic format (255.255.255.0)
- Author
- Michal Kliment
- Parameters
-
- Returns
- string
static network::ip_address_in_ranges |
( |
|
$ip_address | ) |
|
|
static |
Checks whether ip address belongs to default address ranges.
- Author
- Michal Kliment
- Parameters
-
- Returns
- boolean
static network::netmask2cidr |
( |
|
$netmask | ) |
|
|
static |
Converts netmask in classic format (eg.
255.255.255.0) to CIDR format (/24)
- Author
- Michal Kliment
- Parameters
-
- Returns
- string
static network::size |
( |
|
$size, |
|
|
|
$byte = TRUE |
|
) |
| |
|
static |
Formats size.
- Author
- Michal Kliment
- Parameters
-
- Returns
- string
static network::speed |
( |
|
$speed | ) |
|
|
static |
Formats speed.
- Author
- Michal Kliment
- Parameters
-
- Returns
- string
static network::speed_size |
( |
|
$str, |
|
|
|
$unit = 'M' |
|
) |
| |
|
static |
Parses speed string to array.
- Author
- Michal Kliment
- Parameters
-
- Returns
- type
static network::str2array |
( |
|
$str | ) |
|
|
static |
Converts speed string to array.
- Parameters
-
- Returns
- array
static network::str2bytes |
( |
|
$str | ) |
|
|
static |
Converts speed string to integer (bytes)
- Author
- Michal Kliment
- Parameters
-
- Returns
- integer
static network::transfer_unit |
( |
|
$size, |
|
|
|
$from_unit, |
|
|
|
$to_unit |
|
) |
| |
|
static |
Tranfers bytes from unit do unit.
- Author
- Michal Kliment
- Parameters
-
type | $size | |
type | $from_unit | |
type | $to_unit | |
- Returns
- type
The documentation for this class was generated from the following file: