本文整理汇总了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>