本文整理汇总了PHP中Av_sensor::reorder_vs_by_load方法的典型用法代码示例。如果您正苦于以下问题:PHP Av_sensor::reorder_vs_by_load方法的具体用法?PHP Av_sensor::reorder_vs_by_load怎么用?PHP Av_sensor::reorder_vs_by_load使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Av_sensor
的用法示例。
在下文中一共展示了Av_sensor::reorder_vs_by_load方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$total_host++;
$perm = true;
$name = '-';
if (count($sensors) == 0) {
$sensors = $ids;
}
}
}
}
}
}
$sname = $vs = $sperm = $snmap = $load = array();
$selected = FALSE;
// reorder sensors with load
if (!valid_hex32($scan_server)) {
$sensors = Av_sensor::reorder_vs_by_load($conn, $sensors);
array_unique($sensors);
} else {
// User has selected a sensor
$sensor_obj = Av_sensor::get_object($conn, $scan_server);
$sensors = array($scan_server => $sensor_obj->get_vs_load($conn));
}
// info per each related sensor
$ttargets[$target]['perm'] = $perm;
if (!empty($sensors) && preg_match("/[\\da-f]{32}/i", key($sensors))) {
foreach ($sensors as $sid => $sload) {
$withnmap = in_array($sid, $ids) || $unresolved;
$sensor_object = Av_sensor::get_object($conn, $sid);
$has_vuln_scanner = 0;
if ($sensor_object !== NULL) {
$load[] = $sload;