factory for creating of SNMP handlers.
More...
Static Public Member Functions |
static | factory ($driver) |
| Creates SNMP driver with the given name.
|
static | factoryForDevice ($device_ip) |
| Creates SNMP driver for the device from the given IP address.
|
Public Attributes |
const | MIKROTIK = 'mikrotik' |
| Mikrotik driver name.
|
Static Public Attributes |
static | $DRIVERS |
Detailed Description
factory for creating of SNMP handlers.
- Author
- Ondrej Fibich
Member Function Documentation
static Snmp_Factory::factory |
( |
|
$driver | ) |
|
|
static |
Creates SNMP driver with the given name.
- Parameters
-
- Returns
- Abstract_SNMP Creates driver
- Exceptions
-
InvalidArgumentException | On invalid driver name (unknown) |
static Snmp_Factory::factoryForDevice |
( |
|
$device_ip | ) |
|
|
static |
Creates SNMP driver for the device from the given IP address.
- Parameters
-
string | $device_ip | Device IP address |
- Returns
- Abstract_Snmp
- Exceptions
-
InvalidArgumentException | If no driver suits the given device |
The documentation for this class was generated from the following file: