本文整理匯總了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: