PortThe Port class describes the interfaces to information on Ports and Switches This class extends the Common class.
Located in /lib/Port.php (line 26)
Common | --Port
The constructor takes the parameters needed to generate a Port object 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.
Get location information about where the port is, to help sysadmin to know where a certain event has happened
This method is used for alerting
Get location information about where the port is, to help sysadmin to know where a certain event has happened
This method is used for alerting
Return all properties assigned to this system. This method is here only for debugging purposes, please delete it after
Get list of people to notify about problems related to this switch
Get the vlan used by a system seen on this same port during the last 2 hours.
This is usefull to assign a vlan for VMs without causing flapping.
Insert a switch or port into the DB if it doesn't exist.
Get a vlan based on switch location. This vlan should be used as an exception to the regular process
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
Inherited From Common
Common::__construct()
Common::getConnection()
Common::htmlescape()
Common::log2db()
Common::real_escape_string1()
Common::sqlescape()
Documentation generated on Mon, 06 Oct 2008 01:10:37 +0200 by phpDocumentor 1.4.0