本文整理匯總了PHP中Asset_host::get_properties方法的典型用法代碼示例。如果您正苦於以下問題:PHP Asset_host::get_properties方法的具體用法?PHP Asset_host::get_properties怎麽用?PHP Asset_host::get_properties使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Asset_host
的用法示例。
在下文中一共展示了Asset_host::get_properties方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
if ($selection_type == 'filter') {
if (empty($selection_filter)) {
$delete_all = TRUE;
} else {
ossim_valid($selection_filter, OSS_INPUT, 'illegal: ' . _('Selection filter'));
if (ossim_error()) {
$db->close();
Util::response_bad_request(ossim_get_error_clean());
}
//Getting properties
$selection_filter = escape_sql($selection_filter, $conn);
//Create asset object
$asset_host = new Asset_host($conn, $asset_id);
if ($action == 'delete_properties') {
$filters = array('where' => 'value LIKE "%' . $selection_filter . '%"');
list($p_list, ) = $asset_host->get_properties($conn, $filters);
} elseif ($action == 'delete_software') {
$filters = array('where' => '(banner LIKE "%' . $selection_filter . '%"');
list($p_list, ) = $asset_host->get_software($conn, $filters);
} else {
$filters = array('where' => 'service LIKE "%' . $selection_filter . '%"');
list($p_list, ) = $asset_host->get_services($conn, $filters);
}
}
}
//Validate Form token
$token = POST('token');
if ($action == 'delete_properties') {
$tk_key = 'tk_properties_form';
} elseif ($action == 'delete_services') {
$tk_key = 'tk_services_form';
示例2: _
</div>
</div>
<div id='tray_host_description' class='tray_section'>
<div id='tray_host_os'>
<div class='tray_title'>
<?php
echo _('Operating System');
?>
</div>
<div class='tray_content'>
<?php
$props = $asset->get_properties($conn);
$props = @array_shift($props[0]);
$_op = $props[3]['values'][0];
echo $_op == '' ? _('Unknown') : $_op;
?>
</div>
</div>
<div id='tray_host_avalue'>
<div class='tray_title'>
<?php
echo _('Asset Value');
?>
</div>