本文整理汇总了PHP中columns_filter_disabled函数的典型用法代码示例。如果您正苦于以下问题:PHP columns_filter_disabled函数的具体用法?PHP columns_filter_disabled怎么用?PHP columns_filter_disabled使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了columns_filter_disabled函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display_commit_message
function display_commit_message($event, $bugid)
{
if (!$bugid) {
return;
}
$t_fields = config_get('bug_view_page_fields');
$t_fields = columns_filter_disabled($t_fields);
$tpl_show_id = in_array('id', $t_fields);
$tpl_show_description = in_array('description', $t_fields);
$tpl_show_status = in_array('status', $t_fields);
if ($tpl_show_id && $tpl_show_description && $tpl_show_status) {
bug_ensure_exists($bugid);
$bug = bug_get($bugid, true);
access_ensure_bug_level(VIEWER, $bugid);
$tpl_description = string_display_links($bug->summary);
$tpl_status = get_enum_element('status', $bug->status);
$tpl_link = config_get('path') . string_get_bug_view_url($bugid, null);
$message = sprintf('%s - #JJ%d: %s<br/>%s', strtoupper($tpl_status), $bugid, $tpl_description, $tpl_link);
echo '<tr ', helper_alternate_class(), '>';
echo '<td class="category">', plugin_lang_get('commit_message'), '</td>';
echo '<td colspan="5">' . $message . '</td>';
echo '</tr>';
}
}
示例2: gpc_get_string
$f_summary = gpc_get_string('summary', '');
$f_description = gpc_get_string('description', '');
$f_steps_to_reproduce = gpc_get_string('steps_to_reproduce', config_get('default_bug_steps_to_reproduce'));
$f_additional_info = gpc_get_string('additional_info', config_get('default_bug_additional_info'));
$f_view_state = gpc_get_int('view_state', (int) config_get('default_bug_view_status'));
$f_due_date = gpc_get_string('due_date', '');
if ($f_due_date == '') {
$f_due_date = date_get_null();
}
$t_changed_project = false;
}
$f_report_stay = gpc_get_bool('report_stay', false);
$f_copy_notes_from_parent = gpc_get_bool('copy_notes_from_parent', false);
$f_copy_attachments_from_parent = gpc_get_bool('copy_attachments_from_parent', false);
$t_fields = config_get('bug_report_page_fields');
$t_fields = columns_filter_disabled($t_fields);
$t_show_category = in_array('category_id', $t_fields);
$t_show_reproducibility = in_array('reproducibility', $t_fields);
$t_show_eta = in_array('eta', $t_fields);
$t_show_severity = in_array('severity', $t_fields);
$t_show_priority = in_array('priority', $t_fields);
$t_show_steps_to_reproduce = in_array('steps_to_reproduce', $t_fields);
$t_show_handler = in_array('handler', $t_fields) && access_has_project_level(config_get('update_bug_assign_threshold'));
$t_show_profiles = config_get('enable_profiles');
$t_show_platform = $t_show_profiles && in_array('platform', $t_fields);
$t_show_os = $t_show_profiles && in_array('os', $t_fields);
$t_show_os_version = $t_show_profiles && in_array('os_version', $t_fields);
$t_show_resolution = in_array('resolution', $t_fields);
$t_show_status = in_array('status', $t_fields);
$t_show_versions = version_should_show_product_version($t_project_id);
$t_show_product_version = $t_show_versions && in_array('product_version', $t_fields);