本文整理汇总了PHP中NetworkPort::getDeviceData方法的典型用法代码示例。如果您正苦于以下问题:PHP NetworkPort::getDeviceData方法的具体用法?PHP NetworkPort::getDeviceData怎么用?PHP NetworkPort::getDeviceData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NetworkPort
的用法示例。
在下文中一共展示了NetworkPort::getDeviceData方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: plugin_fusioninventory_giveItem
//.........这里部分代码省略.........
// ** Hidden auth passphrase (SNMP v3)
case "glpi_plugin_fusioninventory_configsecurities.auth_passphrase":
$out = "";
if (empty($data['raw']["ITEM_{$num}"])) {
} else {
$out = "********";
}
return $out;
break;
// ** Hidden priv passphrase (SNMP v3)
// ** Hidden priv passphrase (SNMP v3)
case "glpi_plugin_fusioninventory_configsecurities.priv_passphrase":
$out = "";
if (empty($data['raw']["ITEM_{$num}"])) {
} else {
$out = "********";
}
return $out;
break;
}
break;
// * Unknown mac addresses connectd on switch - report
// (plugins/fusinvsnmp/report/unknown_mac.php)
// * Unknown mac addresses connectd on switch - report
// (plugins/fusinvsnmp/report/unknown_mac.php)
case 'PluginFusioninventoryUnmanaged':
switch ($table . '.' . $field) {
// ** FusionInventory - switch
case "glpi_plugin_fusioninventory_networkequipments.id":
$out = '';
$NetworkPort = new NetworkPort();
$list = explode("\$\$\$\$", $data['raw']["ITEM_{$num}"]);
foreach ($list as $numtmp => $vartmp) {
$NetworkPort->getDeviceData($vartmp, 'PluginFusioninventoryUnmanaged');
$out .= "<a href=\"" . $CFG_GLPI["root_doc"] . "/";
$out .= "plugins/fusioninventory/front/unmanaged.form.php?id=" . $vartmp . "\">";
$out .= $NetworkPort->device_name;
if ($CFG_GLPI["view_ID"]) {
$out .= " (" . $vartmp . ")";
}
$out .= "</a><br/>";
}
return "<center>" . $out . "</center>";
break;
// ** FusionInventory - switch port
// ** FusionInventory - switch port
case "glpi_plugin_fusioninventory_networkports.id":
$out = '';
if (!empty($data['raw']["ITEM_{$num}"])) {
$list = explode("\$\$\$\$", $data['raw']["ITEM_{$num}"]);
$np = new NetworkPort();
foreach ($list as $numtmp => $vartmp) {
$np->getFromDB($vartmp);
$out .= "<a href='" . $CFG_GLPI['root_doc'] . "/front/networkport.form.php?id=" . $vartmp . "'>";
$out .= $np->fields["name"] . "</a><br/>";
}
}
return "<center>" . $out . "</center>";
break;
case "glpi_plugin_fusinvsnmp_unmanageds.type":
$out = '<center> ';
switch ($data['raw']["ITEM_{$num}"]) {
case COMPUTER_TYPE:
$out .= __('Computers');
break;
case NETWORKING_TYPE: