findVendor()

findVendor() -- Finds the vendor of the MAC address stored in the object

Synopsis

require_once 'Net/MAC.php';

mixed findVendor ([string $getDescription=FALSE [, string $macList=NULL]])

Beschreibung

This method will search through the database to find a vendor that matches the MAC address stored in the class using setMac(). If the $macList parameter is set, the method will use the array stored in $macList as the data source to find the MAC vendor instead of the database. The array would have to be an array with the same characteristics as one returned from the importVendors() method when using the $doReturn parameter.

Parameter

Rückgabewert

mixed - Returns an associative array if $getDescription is TRUE, returns a string with the vendor name if $getDescription is FALSE. If the MAC vendor cannot be found in the vendor list, FALSE is returned.

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.

Beispiel

Siehe auch

Net_MAC::__construct()

MDB2::factory()

MDB2::isError()

PEAR_Error::getUserInfo()