本文整理汇总了PHP中Asset_host::get_external方法的典型用法代码示例。如果您正苦于以下问题:PHP Asset_host::get_external方法的具体用法?PHP Asset_host::get_external怎么用?PHP Asset_host::get_external使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Asset_host
的用法示例。
在下文中一共展示了Asset_host::get_external方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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 = '';
示例2: empty
$id = $host->get_id();
$name = $host->get_name();
//CTX
$ctx = $host->get_ctx();
$ctx_name = empty($ctx) ? _('None') : Session::get_entity_name($conn, $ctx);
$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();