\ArpDiag
ARP diag report implementation
Synopsis
class ArpDiag
{
- // constants
- const URL_ME = '?module=arpdiag';
- // methods
- public void __construct()
- protected void loadConfigs()
- protected void initMessages()
- public string renderPanel()
- protected array getAllSwitchesIps()
- protected string getEventClass()
- public string renderReport()
- protected string getHostLink()
- protected string getMacControls()
- public void assignSwitchMac()
- public void ajaxReplyArp()
- public string renderArpTable()
Constants
Name | Value |
---|---|
URL_ME | '?module=arpdiag' |
Members
protected
Methods
protected
- getAllSwitchesIps() — Returns all switches IP as ip=>array(location,id)
- getEventClass() — Returns row class for some event
- getHostLink() — Returns clickable if possible host link by its IP
- getMacControls() — Returns device MAC controls if required
- initMessages() — Inits new instance of message helper object
- loadConfigs() — Loads system configs into protected property
public
- __construct() — Creates new instance of object
- ajaxReplyArp() — Returns JSON for actual ARP table
- assignSwitchMac() — Assigns some switch MAC if required
- renderArpTable() — Renders localhost ARP table placeholder
- renderPanel() — Renders control panel
- renderReport() — Renders arp events report