object $db - This parameter must be a valid MDB2 object.
array $options - An array of options to use with the database in retrieving MAC address vendors. The associative array should have key/value pairs as follows:
Table 51-1. Net_MAC::__construct() options
Option | Description |
---|---|
tablename | The name of the table where MAC address vendor information lives |
macaddrcol | The name of the column containing the MAC address prefixes |
vendorcol | The name of the column containing the vendor name |
desccol | The name of the column containing any extra descriptive information derived from the vendor list |
void - No return value. A Net_MAC_Exception Exception object will be thrown if there is an error during construction
The constructor can throw exceptions on error, so the constructor should always be called from inside a try/catch block.
Example 51-1. Instantiating a Net_MAC object
|