IpNetwork Class Reference
[IP related utilities]

Inheritance diagram for IpNetwork:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 __construct (IpAddress $ip, $mask)
 getMask ()
 getStart ()
 
Returns:
IpAddress

 getEnd ()
 
Returns:
IpAddress

 contains ($probe)

Static Public Member Functions

static create (IpAddress $ip, $mask)
 
Returns:
IpNetwork


Public Attributes

const MASK_MAX_SIZE = 31

Private Attributes

 $ip = null
 $end = null
 $mask = null
 $longMask = null


Detailed Description

Definition at line 16 of file IpNetwork.class.php.


Constructor & Destructor Documentation

IpNetwork::__construct ( IpAddress ip,
mask 
)

Definition at line 33 of file IpNetwork.class.php.

References $mask.


Member Function Documentation

static IpNetwork::create ( IpAddress ip,
mask 
) [static]

Returns:
IpNetwork

Definition at line 28 of file IpNetwork.class.php.

References $mask.

IpNetwork::getMask (  ) 

Definition at line 50 of file IpNetwork.class.php.

IpNetwork::getStart (  ) 

Returns:
IpAddress

Implements SingleRange.

Definition at line 58 of file IpNetwork.class.php.

IpNetwork::getEnd (  ) 

Returns:
IpAddress

Implements SingleRange.

Definition at line 66 of file IpNetwork.class.php.

References IpAddress::create().

Here is the call graph for this function:

IpNetwork::contains ( probe  ) 

Implements SingleRange.

Definition at line 78 of file IpNetwork.class.php.


Member Data Documentation

const IpNetwork::MASK_MAX_SIZE = 31

Definition at line 18 of file IpNetwork.class.php.

IpNetwork::$ip = null [private]

Definition at line 20 of file IpNetwork.class.php.

IpNetwork::$end = null [private]

Definition at line 21 of file IpNetwork.class.php.

IpNetwork::$mask = null [private]

Definition at line 22 of file IpNetwork.class.php.

Referenced by __construct(), and create().

IpNetwork::$longMask = null [private]

Definition at line 23 of file IpNetwork.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:57:49 2007 for onPHP by  doxygen 1.5.4