Class GuiEditDevice

Description

GuiEditDevice.php

Long description for file: Allow End-Device records to edited, deleted or inserted. Specific to the FreeNAC DB schema.

Located in /lib/GuiEditDevice.php (line 20)

Common
   |
   --WebCommon
      |
      --GuiEditDevice
Method Summary
 GuiEditDevice __construct ( $action, [ $id = 0], [ $debug_level = 1])
 void add ()
 void Delete ()
 void get_class1dropdown ([ $s = '1'], [ $table = "sys_class"])
 void get_nmap_id ( $s)
 void get_nmap_os ( $s)
 void get_officedropdown ( $s)
 void get_statusdropdown ( $s)
 void get_userdropdown ( $s)
 void get_vlandropdown ( $s)
 void handle_request ()
 void print_title ( $title)
 void query ()
 void RestartPort ()
 void Update ()
 void UpdateNew ()
Variables
Methods
Constructor __construct (line 25)
GuiEditDevice __construct ( $action, [ $id = 0], [ $debug_level = 1])
  • $action
  • $id
  • $debug_level

Redefinition of:
WebCommon::__construct()
add (line 345)

Add a new device: Query a record and display on the WebGUI

  • access: public
void add ()
Delete (line 144)
  • access: public
void Delete ()

Redefinition of:
WebCommon::Delete()
Delete a record from the WebGUI
get_class1dropdown (line 665)

Generic Drop down list: for the table $table, find the entry $id.

in read-only mode show just that entry, else show a list and allow it to be changed. Send the result back in a SUBMIT with the name in $table.

void get_class1dropdown ([ $s = '1'], [ $table = "sys_class"])
  • $s
  • $table
get_nmap_id (line 725)
void get_nmap_id ( $s)
  • $s
get_nmap_os (line 739)
void get_nmap_os ( $s)
  • $s
get_officedropdown (line 599)
void get_officedropdown ( $s)
  • $s
get_statusdropdown (line 694)
void get_statusdropdown ( $s)
  • $s
get_userdropdown (line 630)
void get_userdropdown ( $s)
  • $s
get_vlandropdown (line 531)
void get_vlandropdown ( $s)
  • $s
handle_request (line 60)
  • access: public
void handle_request ()
print_title (line 52)
  • access: public
void print_title ( $title)
  • $title

Redefinition of:
WebCommon::print_title()
query (line 396)

Display a device record, allow changes.

Next Step is Either Update, Delete, or Restart Port

  • access: public
void query ()
RestartPort (line 107)
  • access: public
void RestartPort ()
Update (line 259)

Update a record: read fields/data from the POST, generate SQL and execute

  • access: public
void Update ()
UpdateNew (line 178)

Insert a newrecord

  • access: public
void UpdateNew ()

Inherited Methods

Inherited From WebCommon

 WebCommon::__construct()
 WebCommon::debug()
 WebCommon::Delete()
 WebCommon::get_dose()
 WebCommon::get_hosts()
 WebCommon::get_location()
 WebCommon::get_locationid()
 WebCommon::get_patch()
 WebCommon::get_port_comment()
 WebCommon::get_vlan()
 WebCommon::loggui()
 WebCommon::logit()
 WebCommon::port_delete()
 WebCommon::port_restart_request()
 WebCommon::print_dat_stats()
 WebCommon::print_dot_sel()
 WebCommon::print_footer()
 WebCommon::print_footer_empty()
 WebCommon::print_header()
 WebCommon::print_header1()
 WebCommon::print_headerMin()
 WebCommon::print_headerSmall()
 WebCommon::print_logo()
 WebCommon::print_stats()
 WebCommon::print_switch_sel()
 WebCommon::print_title()
 WebCommon::strip_datversion()

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:33 +0200 by phpDocumentor 1.4.0