EndDeviceThis class represents a row in the systems table in the database.
In the current version, the host is identified by its mac address. This class extends the Common class.
Located in /lib/EndDevice.php (line 35)
Common | --EndDevice
| Class | Description |
|---|---|
PortScan
|
This class represents a row in the systems table in the database. |
WSUSEndDevice
|
This class represents a row in the systems table in the database. |
mixed
$db_row
= array() (line 38)
mixed
$mac
(line 37)
Inherited from Common
Common::$conf
Common::$db_conn
Common::$logger
The constructor takes the mac address of the system and creates and instance representing that particular system.
Access is read-only.
Catch DB inserts.
Check if the function is called from a postconnect method in an object which is a child of Policy. This function should be called from inside the update method. To prevent inserting of code in other methods, new code should be added. This is a basic checking, in the future this code may be enhanced.
Return all properties assigned to this system. This method is here only for debugging purposes, please delete it after
Return the vendor name associated to first 3 bytes of the mac address
This method indicates if a system is in the db. This flag was set in the constructor.
Insert an EndDevice if it is not in the DB
Check that the system is not yet expired
Expiry date like 0000-00-00 00:00:00 is treated as never expire
Is this EndDevice a Virtual Machine ?
It is, if the vendor string associated to the first 3 bytes of the mac contains "vmware", "parallels" or "microsoft"
Set port location information to be used to generate an alert
Set port location information to be used to generate an alert
Set the health status for this device
Set the Notify information.
This will send an email to the specified users Used for alerting
Set the office where this EndDevice is
Set the Patch information where this device is on
Used for alerting
Set the port where this EndDevice is on
Set the Port information where this device is on
Used for alerting
Set the Switch information where this device is on
Used for alerting
Set the lastvlan used by this EndDevice
Universal Accessor Method We are redirecting all unresolved method calls to this handler, so that we can emulate arbitraty accessor methods.
With this trick, the user can add new fields to the system tables and will be able to access them in the policy as $system->getDBFieldName() without haveing to change this class
Get the value of one property if it exists
Set the value of one property if it exists
Inherited From Common
Common::__construct()
Common::getConnection()
Common::htmlescape()
Common::log2db()
Common::real_escape_string1()
Common::sqlescape()
Documentation generated on Mon, 13 Oct 2008 01:10:27 +0200 by phpDocumentor 1.4.0