4141}
4242
4343/**
44- * Class Pinginfo
44+ * Class PingInfo
4545 */
46- class Pinginfo extends CommonDBTM
46+ class PingInfo extends CommonDBTM
4747{
4848 public static $ rightname = "plugin_addressing " ;
4949
@@ -115,7 +115,7 @@ public function updateAnAddressing(Addressing $addressing)
115115 $ result = $ addressing ->compute (0 , ['ipdeb ' => $ ipdeb ,
116116 'ipfin ' => $ ipfin ,
117117 'entities ' => $ addressing ->fields ['entities_id ' ]]);
118- $ plugin_addressing_pinginfo = new Pinginfo ();
118+ $ plugin_addressing_pinginfo = new PingInfo ();
119119 $ save = $ plugin_addressing_pinginfo ->find (['plugin_addressing_addressings_id ' => $ addressing ->getID ()]);
120120 $ plugin_addressing_pinginfo ->deleteByCriteria (['plugin_addressing_addressings_id ' => $ addressing ->getID ()]);
121121
@@ -135,7 +135,7 @@ private function updatePingInfos($result, Addressing $Addressing)
135135
136136 $ ping_response = 0 ;
137137
138- $ plugin_addressing_pinginfo = new Pinginfo ();
138+ $ plugin_addressing_pinginfo = new PingInfo ();
139139
140140 foreach ($ result as $ num => $ lines ) {
141141 $ ip = Report::string2ip (substr ($ num , 2 ));
@@ -170,7 +170,7 @@ public static function getPingResponseForItem($params)
170170 && in_array ($ item ->getType (), Addressing::getTypes ()) && $ item ->getID () > 0 ) {
171171 $ items_id = $ item ->getID ();
172172 $ itemtype = $ item ->getType ();
173- $ plugin_addressing_pinginfo = new Pinginfo ();
173+ $ plugin_addressing_pinginfo = new PingInfo ();
174174
175175 $ ping_action = 0 ;
176176 $ ping_value = 0 ;
0 commit comments