importVendors() (Previous) (Next) Net_MAC_Exception

View this page in Last updated: Sun, 28 Sep 2008
English | French | German | Hungarian | Japanese | Polish | Spanish | Plain HTML

findVendor()

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

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

  • chaîne de caractères $getDescription - If set to TRUE, the return value will be an array with keys 'vendor' and 'description'. Normally the method will simply return the vendor name.

  • chaîne de caractères $macList - An optional list of MAC-to-vendor relationships to search instead of using the database.

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.

importVendors() (Previous) (Next) Net_MAC_Exception

Download Documentation Last updated: Sun, 28 Sep 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.