findVendor()

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

Synopsis

require_once 'Net/MAC.php';

mixed findVendor ([chaîne de caractères $getDescription=FALSE [, chaîne de caractères $macList=NULL]])

Description

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.

Paramètres

Valeur retournée

mixed - Returns an associative array if $getDescription is TRUE, returns a chaîne de caractères with the vendor name if $getDescription is FALSE. If the MAC vendor cannot be found in the vendor list, FALSE is returned.

Note

Cette fonction ne peut pas être appelée de façon statique.

Exemple

Voir aussi

Net_MAC::__construct()

MDB2::factory()

MDB2::isError()

PEAR_Error::getUserInfo()