Skip to content

Commit

Permalink
Rename glpi_plugin_fusioninventory_snmp_history_connections table to …
Browse files Browse the repository at this point in the history
…glpi_plugin_fusioninventory_snmphistoryconnections and PluginFusionInventoryHistoryConnections class to PluginFusioninventorySnmphistoryconnection and historyconnections.class.php file to snmphistoryconnection.class.php. See release fusioninventory#47
  • Loading branch information
Vincent MAZZONI committed Apr 28, 2010
1 parent 6da10af commit d06f2c6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions ajax/plugin_fusioninventory.agents.processes.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
case -1 :
$ptap = new PluginFusionInventoryAgentsProcesses;
$ptap->ShowProcesses();
$ptac = new PluginFusionInventoryHistoryConnections;
$ptac = new PluginFusioninventorySnmphistoryconnection;
$ptac->showForm($_GET);
$ptae = new PluginFusionInventoryAgentsErrors;
$ptae->ShowErrors($_GET);
Expand All @@ -64,7 +64,7 @@
break;

case 2 :
$ptac = new PluginFusionInventoryHistoryConnections;
$ptac = new PluginFusioninventorySnmphistoryconnection;
$ptac->showForm($_POST);
break;

Expand Down
2 changes: 1 addition & 1 deletion inc/setup.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ static function update($version) {
LIMIT 1 ;");
ini_set("memory_limit","-1");
ini_set("max_execution_time", "0");
$pthc = new PluginFusionInventoryHistoryConnections;
$pthc = new PluginFusioninventorySnmphistoryconnection;
$pthc->migration();
PluginFusioninventoryDb::clean_db();
}
Expand Down
12 changes: 6 additions & 6 deletions inc/snmp.history.classes.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function __construct() {
function insert_connection($status,$array,$FK_process=0) {
global $DB,$CFG_GLPI;

$pthc = new PluginFusionInventoryHistoryConnections;
$pthc = new PluginFusioninventorySnmphistoryconnection;

$input['date'] = date("Y-m-d H:i:s");
$input['FK_ports'] = $array['FK_ports'];
Expand Down Expand Up @@ -329,8 +329,8 @@ function ConvertField($force=0) {
echo "</table></center>";


// Move connections from glpi_plugin_fusioninventory_snmp_history to glpi_plugin_fusioninventory_snmp_history_connections
$pfihc = new PluginFusionInventoryHistoryConnections;
// Move connections from glpi_plugin_fusioninventory_snmp_history to glpi_plugin_fusioninventory_snmphistoryconnections
$pfihc = new PluginFusioninventorySnmphistoryconnection;

echo "<br/><center><table align='center' width='500'>";
echo "<tr>";
Expand Down Expand Up @@ -574,7 +574,7 @@ static function addLogConnection($status,$port,$FK_process=0) {
global $DB,$CFG_GLPI;

$CommonItem = new CommonItem;
$pthc = new PluginFusionInventoryHistoryConnections;
$pthc = new PluginFusioninventorySnmphistoryconnection;
$nw=new Netwire;

if (($FK_process == '0') AND (isset($_SESSION['glpi_plugin_fusioninventory_processnumber']))) {
Expand Down Expand Up @@ -618,7 +618,7 @@ static function showHistory($ID_port) {
FK_port_source, FK_port_destination,
creation as Field, NULL as old_value, NULL as new_value
FROM glpi_plugin_fusioninventory_snmp_history_connections
FROM glpi_plugin_fusioninventory_snmphistoryconnections
WHERE `FK_port_source`='".$ID_port."'
OR `FK_port_destination`='".$ID_port."'
ORDER BY date DESC
Expand Down Expand Up @@ -720,7 +720,7 @@ static function showHistory($ID_port) {
}

/*
$pthc = new PluginFusionInventoryHistoryConnections;
$pthc = new PluginFusioninventorySnmphistoryconnection;
$data_connections = $pthc->find('`FK_port_source`="'.$ID_port.'"
OR `FK_port_destination `="'.$ID_port.'"',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
die("Sorry. You can't access directly to this file");
}

class PluginFusionInventoryHistoryConnections extends CommonDBTM {
class PluginFusioninventorySnmphistoryconnection extends CommonDBTM {

function __construct() {
$this->table = "glpi_plugin_fusioninventory_snmp_history_connections";
$this->table = "glpi_plugin_fusioninventory_snmphistoryconnections";
}

function migration() {
Expand Down

0 comments on commit d06f2c6

Please sign in to comment.