Class SMSEndDevice

Description

This 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/SMSEndDevice.php (line 29)

Common
   |
   --EndDevice
      |
      --SMSEndDevice
Method Summary
 integer get_insert_user_id ( $username)
 boolean insertIfUnknown ([ $vlan_to_assign = 0])
Variables
Methods
get_insert_user_id (line 35)

Insert a new user, if not already in the Users table.

  • return: Return the user id or false otherwise
  • access: public
integer get_insert_user_id ( $username)
  • $username
insertIfUnknown (line 79)

Override default insertIfUnknown function.

Try to insert an SMS device. If the device is not an SMS device, call parent insertIfUnknown method to perform a normal insert

  • return: True if an insert operation was performed, false otherwise
  • access: public
boolean insertIfUnknown ([ $vlan_to_assign = 0])
  • $vlan_to_assign

Redefinition of:
EndDevice::insertIfUnknown()
Insert an EndDevice if it is not in the DB

Inherited Methods

Inherited From EndDevice

 EndDevice::__construct()
 EndDevice::check_calling_method()
 EndDevice::getAllProps()
 EndDevice::getEndDeviceID()
 EndDevice::getVendor()
 EndDevice::getVlanID()
 EndDevice::getVlanName()
 EndDevice::inDB()
 EndDevice::insertIfUnknown()
 EndDevice::isActive()
 EndDevice::isExpired()
 EndDevice::isKilled()
 EndDevice::isUnknown()
 EndDevice::isUnmanaged()
 EndDevice::isVM()
 EndDevice::postScan()
 EndDevice::setAlertMessage()
 EndDevice::setAlertSubject()
 EndDevice::setHealth()
 EndDevice::setNotifyInfo()
 EndDevice::setOfficeID()
 EndDevice::setPatchInfo()
 EndDevice::setPortID()
 EndDevice::setPortInfo()
 EndDevice::setSwitchInfo()
 EndDevice::setVlanID()
 EndDevice::update()
 EndDevice::__call()
 EndDevice::__get()
 EndDevice::__set()

Inherited From Common

 Common::__construct()
 Common::getConnection()
 Common::htmlescape()
 Common::log2db()
 Common::real_escape_string1()
 Common::sqlescape()

Documentation generated on Mon, 06 Feb 2012 01:10:56 +0100 by phpDocumentor 1.4.0