本文整理匯總了PHP中Asset_host::get_asset_by_system方法的典型用法代碼示例。如果您正苦於以下問題:PHP Asset_host::get_asset_by_system方法的具體用法?PHP Asset_host::get_asset_by_system怎麽用?PHP Asset_host::get_asset_by_system使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Asset_host
的用法示例。
在下文中一共展示了Asset_host::get_asset_by_system方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: GET
$section = GET('section');
ossim_valid($id, OSS_HEX, 'illegal:' . _('Asset ID'));
ossim_valid($section, OSS_ALPHA, OSS_NULLABLE, 'illegal:' . _('Asset Section'));
if (ossim_error()) {
die(ossim_error());
}
// Database Object
$db = new ossim_db();
$conn = $db->connect();
if (Asset_host::is_in_db($conn, $id)) {
$asset_type = 'asset';
Session::logcheck('environment-menu', 'PolicyHosts');
$breadcrumb = array('section' => _('Assets'), 'current' => _('Asset Details'));
$edit = Asset_host::can_i_modify_ips($conn, $id);
$delete = Asset_host::can_delete($conn, $id);
$local_assets = Asset_host::get_asset_by_system($conn, Util::get_system_uuid());
$p_plugin = Session::am_i_admin() && !$local_assets[$id];
$deploy_agent = Session::logcheck_bool('environment-menu', 'EventsHidsConfig');
} else {
if (Asset_net::is_in_db($conn, $id)) {
$asset_type = 'network';
Session::logcheck('environment-menu', 'PolicyNetworks');
$breadcrumb = array('section' => _('Networks'), 'current' => _('Network Details'));
$edit = Asset_net::can_i_modify_ips($conn, $id);
$delete = Asset_net::can_delete($conn, $id);
$p_plugin = Session::am_i_admin();
$deploy_agent = FALSE;
} else {
if (Asset_group::is_in_db($conn, $id)) {
$asset_type = 'group';
Session::logcheck('environment-menu', 'PolicyHosts');