本文整理汇总了PHP中Asset_host::get_asset_value方法的典型用法代码示例。如果您正苦于以下问题:PHP Asset_host::get_asset_value方法的具体用法?PHP Asset_host::get_asset_value怎么用?PHP Asset_host::get_asset_value使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Asset_host
的用法示例。
在下文中一共展示了Asset_host::get_asset_value方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _
</div>
</div>
<div id='tray_host_avalue'>
<div class='tray_title'>
<?php
echo _('Asset Value');
?>
</div>
<div class='tray_content'>
<?php
for ($i = 0; $i <= 5; $i++) {
$class = $asset->get_asset_value() == $i ? 'tray_selected_value' : '';
?>
<span class="tray_content <?php
echo $class;
?>
"><?php
echo $i;
?>
</span>
<?php
}
?>
</div>
</div>
示例2: empty
/*
echo '<pre>';
print_r($asset);
echo '</pre>';
*/
//Getting asset data
$id = $asset->get_id();
$name = $asset->get_name();
$_ips = $asset->get_ips();
$ips = $_ips->get_ips();
$ips = array_keys($ips);
$descr = html_entity_decode($asset->get_descr(), ENT_QUOTES, 'UTF-8');
$fqdns = $asset->get_fqdns();
$external = $asset->get_external();
$location = $asset->get_location();
$asset_value = $asset->get_asset_value();
$os_data = $asset->get_os();
$os = $os_data['value'];
$model = $asset->get_model();
//CTX name
$ctx_name = empty($ctx) ? _('None') : Session::get_entity_name($conn, $ctx);
$ctx_name = Util::utf8_encode2($ctx_name);
//Icon
$icon = $asset->get_icon();
$icon = !empty($icon) ? 'data:image/png;base64,' . base64_encode($icon) : '';
//Server related to CTX
$server_obj = Server::get_server_by_ctx($conn, $ctx);
$s_name = '';
$s_ip = '';
if ($server_obj) {
$s_name = $server_obj->get_name();
示例3:
$is_ext_ctx = FALSE;
$context_type = 'local';
$ext_ctxs = Session::get_external_ctxs($conn);
if (!empty($ext_ctxs[$ctx])) {
$is_ext_ctx = TRUE;
$context_type = 'remote';
}
$descr = $host->get_descr();
$icon = $host->get_html_icon();
$fqdns = $host->get_fqdns();
$external = $host->get_external();
$location = $host->get_location();
$latitude = $location['lat'];
$longitude = $location['lon'];
$zoom = $location['zoom'];
$asset_value = $host->get_asset_value();
$threshold_a = $host->get_threshold_a();
$threshold_c = $host->get_threshold_c();
//Host Ips
$host_ips = $host->get_ips();
$ips = $host_ips->get_ips('string');
//Host Sensors
$host_sensors = $host->get_sensors();
$sensors = $host_sensors->get_sensors();
//Host Devices
$host_devices = $host->get_devices();
$devices = $host_devices->get_devices();
//Host Scan
$is_nagios_enabled = Asset_host_scan::is_plugin_in_host($conn, $id, 2007);
//Closing database connection
$db->close();