本文整理汇总了PHP中string_display_line_links函数的典型用法代码示例。如果您正苦于以下问题:PHP string_display_line_links函数的具体用法?PHP string_display_line_links怎么用?PHP string_display_line_links使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了string_display_line_links函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: custom_function_default_format_issue_summary
function custom_function_default_format_issue_summary($p_issue_id, $p_context = 0)
{
switch ($p_context) {
case SUMMARY_CAPTION:
$t_string = bug_format_id($p_issue_id) . ': ' . string_attribute(bug_get_field($p_issue_id, 'summary'));
break;
case SUMMARY_FIELD:
$t_string = bug_format_id($p_issue_id) . ': ' . string_display_line_links(bug_get_field($p_issue_id, 'summary'));
break;
case SUMMARY_EMAIL:
$t_string = bug_format_id($p_issue_id) . ': ' . string_attribute(bug_get_field($p_issue_id, 'summary'));
break;
default:
$t_string = string_attribute(bug_get_field($p_issue_id, 'summary'));
break;
}
return $t_string;
}
示例2: bug_prepare_display
function bug_prepare_display($p_bug_data)
{
$p_bug_data->category = string_display_line($p_bug_data->category);
$p_bug_data->date_submitted = string_display_line($p_bug_data->date_submitted);
$p_bug_data->last_updated = string_display_line($p_bug_data->last_updated);
$p_bug_data->os = string_display_line($p_bug_data->os);
$p_bug_data->os_build = string_display_line($p_bug_data->os_build);
$p_bug_data->platform = string_display_line($p_bug_data->platform);
$p_bug_data->version = string_display_line($p_bug_data->version);
$p_bug_data->build = string_display_line($p_bug_data->build);
$p_bug_data->target_version = string_display_line($p_bug_data->target_version);
$p_bug_data->fixed_in_version = string_display_line($p_bug_data->fixed_in_version);
$p_bug_data->summary = string_display_line_links($p_bug_data->summary);
$p_bug_data->sponsorship_total = string_display_line($p_bug_data->sponsorship_total);
$p_bug_data->sticky = string_display_line($p_bug_data->sticky);
$p_bug_data->description = string_display_links($p_bug_data->description);
$p_bug_data->steps_to_reproduce = string_display_links($p_bug_data->steps_to_reproduce);
$p_bug_data->additional_information = string_display_links($p_bug_data->additional_information);
return $p_bug_data;
}
示例3: foreach
echo '</field>';
}
echo '</additionalFields>';
}
$t_tasks = $agilemantis_sprint->getSprintTasks($id);
if (!empty($t_tasks)) {
echo '<tasks>';
foreach ($t_tasks as $num => $row) {
$created = $agilemantis_tasks->getTaskEvent($row['id'], 'created');
$confirmed = $agilemantis_tasks->getTaskEvent($row['id'], 'confirmed');
$resolved = $agilemantis_tasks->getTaskEvent($row['id'], 'resolved');
$reopened = $agilemantis_tasks->getTaskEvent($row['id'], 'reopened');
$closed = $agilemantis_tasks->getTaskEvent($row['id'], 'closed');
echo '<task>';
echo '<task_id>' . $row['id'] . '</task_id>';
echo '<task_name>' . $agilemantis_commonlib->safeCData(string_display_line_links($row['name'])) . '</task_name>';
echo '<task_description>' . $agilemantis_commonlib->safeCData($row['description']) . '</task_description>';
echo '<task_daily_scrum>' . (int) $row['daily_scrum'] . '</task_daily_scrum>';
if ($row['developer_id'] > 0) {
echo '<developer>';
echo '<dev_id>' . $row['developer_id'] . '</dev_id>';
echo '<dev_username>' . $agilemantis_tasks->getUserName($row['developer_id']) . '</dev_username>';
echo '<dev_realname>' . $agilemantis_tasks->getUserRealName($row['developer_id']) . '</dev_realname>';
echo '</developer>';
}
echo '<task_status>' . $row['status'] . '</task_status>';
echo '<task_planned_capacity>' . $row['planned_capacity'] . '</task_planned_capacity>';
echo '<task_performed_capacity>' . $row['performed_capacity'] . '</task_performed_capacity>';
echo '<task_rest_capacity>' . $row['rest_capacity'] . '</task_rest_capacity>';
$create_date = strtotime($created['date']);
$confirm_date = strtotime($confirmed['date']);
示例4: print_user
echo $t_item['date'];
?>
</td>
<td class="small-caption">
<?php
print_user($t_item['userid']);
?>
</td>
<td class="small-caption">
<?php
echo string_display($t_item['note']);
?>
</td>
<td class="small-caption">
<?php
echo $t_item['raw'] ? string_display_line_links($t_item['change']) : $t_item['change'];
?>
</td>
</tr>
<?php
}
# end for loop
?>
</tbody>
</table>
<?php
collapse_closed('history');
?>
<table class="width100" cellspacing="0">
<tr>
<td class="form-title" colspan="4">
示例5: relationship_get_details
/**
* return formatted string with all the details on the requested relationship
* @param integer $p_bug_id A bug identifier.
* @param BugRelationshipData $p_relationship A bug relationship object.
* @param boolean $p_html Whether to return html or text output.
* @param boolean $p_html_preview Whether to include style/hyperlinks - if preview is false, we prettify the output.
* @param boolean $p_show_project Show Project details.
* @return string
*/
function relationship_get_details($p_bug_id, BugRelationshipData $p_relationship, $p_html = false, $p_html_preview = false, $p_show_project = false)
{
$t_summary_wrap_at = utf8_strlen(config_get('email_separator2')) - 28;
$t_icon_path = config_get('icon_path');
if ($p_bug_id == $p_relationship->src_bug_id) {
# root bug is in the source side, related bug in the destination side
$t_related_bug_id = $p_relationship->dest_bug_id;
$t_related_project_name = project_get_name($p_relationship->dest_project_id);
$t_relationship_descr = relationship_get_description_src_side($p_relationship->type);
} else {
# root bug is in the dest side, related bug in the source side
$t_related_bug_id = $p_relationship->src_bug_id;
$t_related_project_name = project_get_name($p_relationship->src_project_id);
$t_relationship_descr = relationship_get_description_dest_side($p_relationship->type);
}
# related bug not existing...
if (!bug_exists($t_related_bug_id)) {
return '';
}
# user can access to the related bug at least as a viewer
if (!access_has_bug_level(VIEWER, $t_related_bug_id)) {
return '';
}
if ($p_html_preview == false) {
$t_td = '<td>';
} else {
$t_td = '<td class="print">';
}
# get the information from the related bug and prepare the link
$t_bug = bug_get($t_related_bug_id, false);
$t_status_string = get_enum_element('status', $t_bug->status, auth_get_current_user_id(), $t_bug->project_id);
$t_resolution_string = get_enum_element('resolution', $t_bug->resolution, auth_get_current_user_id(), $t_bug->project_id);
$t_relationship_info_html = $t_td . string_no_break($t_relationship_descr) . ' </td>';
if ($p_html_preview == false) {
$t_relationship_info_html .= '<td><a href="' . string_get_bug_view_url($t_related_bug_id) . '">' . string_display_line(bug_format_id($t_related_bug_id)) . '</a></td>';
$t_relationship_info_html .= '<td><span class="issue-status" title="' . string_attribute($t_resolution_string) . '">' . string_display_line($t_status_string) . '</span></td>';
} else {
$t_relationship_info_html .= $t_td . string_display_line(bug_format_id($t_related_bug_id)) . '</td>';
$t_relationship_info_html .= $t_td . string_display_line($t_status_string) . ' </td>';
}
$t_relationship_info_text = utf8_str_pad($t_relationship_descr, 20);
$t_relationship_info_text .= utf8_str_pad(bug_format_id($t_related_bug_id), 8);
# get the handler name of the related bug
$t_relationship_info_html .= $t_td;
if ($t_bug->handler_id > 0) {
$t_relationship_info_html .= string_no_break(prepare_user_name($t_bug->handler_id));
}
$t_relationship_info_html .= ' </td>';
# add project name
if ($p_show_project) {
$t_relationship_info_html .= $t_td . string_display_line($t_related_project_name) . ' </td>';
}
# add summary
if ($p_html == true) {
$t_relationship_info_html .= $t_td . string_display_line_links($t_bug->summary);
if (VS_PRIVATE == $t_bug->view_state) {
$t_relationship_info_html .= sprintf(' <img src="%s" alt="(%s)" title="%s" />', $t_icon_path . 'protected.gif', lang_get('private'), lang_get('private'));
}
} else {
if (utf8_strlen($t_bug->summary) <= $t_summary_wrap_at) {
$t_relationship_info_text .= string_email_links($t_bug->summary);
} else {
$t_relationship_info_text .= utf8_substr(string_email_links($t_bug->summary), 0, $t_summary_wrap_at - 3) . '...';
}
}
# add delete link if bug not read only and user has access level
if (!bug_is_readonly($p_bug_id) && !current_user_is_anonymous() && $p_html_preview == false) {
if (access_has_bug_level(config_get('update_bug_threshold'), $p_bug_id)) {
$t_relationship_info_html .= ' [<a class="small" href="bug_relationship_delete.php?bug_id=' . $p_bug_id . '&rel_id=' . $p_relationship->id . htmlspecialchars(form_security_param('bug_relationship_delete')) . '">' . lang_get('delete_link') . '</a>]';
}
}
$t_relationship_info_html .= ' </td>';
$t_relationship_info_text .= "\n";
if ($p_html_preview == false) {
# choose color based on status
$t_status_label = html_get_status_css_class($t_bug->status, auth_get_current_user_id(), $t_bug->project_id);
$t_relationship_info_html = '<tr class="' . $t_status_label . '">' . $t_relationship_info_html . '</tr>' . "\n";
} else {
$t_relationship_info_html = '<tr>' . $t_relationship_info_html . '</tr>';
}
if ($p_html == true) {
return $t_relationship_info_html;
} else {
return $t_relationship_info_text;
}
}
示例6: lang_get
echo lang_get('plugin_description');
?>
</td>
<td width="20%"><?php
echo lang_get('plugin_depends');
?>
</td>
<td width="10%"><?php
echo lang_get('plugin_actions');
?>
</td>
</tr>
<?php
foreach ($t_plugins_available as $t_basename => $t_plugin) {
$t_description = string_display_line_links($t_plugin->description);
$t_author = $t_plugin->author;
$t_contact = $t_plugin->contact;
$t_url = $t_plugin->url;
$t_requires = $t_plugin->requires;
$t_depends = array();
$t_name = string_display_line($t_plugin->name . ' ' . $t_plugin->version);
if (!is_blank($t_author)) {
if (is_array($t_author)) {
$t_author = implode($t_author, ', ');
}
if (!is_blank($t_contact)) {
$t_author = '<br />' . sprintf(lang_get('plugin_author'), '<a href="mailto:' . string_display_line($t_contact) . '">' . string_display_line($t_author) . '</a>');
} else {
$t_author = '<br />' . string_display_line(sprintf(lang_get('plugin_author'), $t_author));
}
示例7: foreach
?>
</td>
</tr>
<?php
if (!empty($backlogs)) {
foreach ($backlogs as $num => $row) {
?>
<?php
$agilemantis_pb->productBacklogHasStoriesLeft($row['name']);
?>
<tr <?php
echo helper_alternate_class();
?>
>
<td><?php
echo string_display_line_links($row['name']);
?>
</td>
<td><?php
echo nl2br(string_display_links($row['description']));
?>
</td>
<td class="right" width="205">
<form action="<?php
echo plugin_page('edit_product_backlog.php');
?>
" method="post">
<input type="submit" name="edit[<?php
echo $row['id'];
?>
]"
示例8: relgraph_add_bug_to_graph
function relgraph_add_bug_to_graph(&$p_graph, $p_bug_id, $p_bug, $p_url = null, $p_highlight = false)
{
$t_node_attributes = array();
$t_node_attributes['label'] = $p_bug_id;
if ($p_highlight) {
$t_node_attributes['color'] = '#0000FF';
$t_node_attributes['style'] = 'bold, filled';
} else {
$t_node_attributes['color'] = 'black';
$t_node_attributes['style'] = 'filled';
}
$t_node_attributes['fillcolor'] = get_status_color($p_bug->status);
if (null !== $p_url) {
$t_node_attributes['URL'] = $p_url;
}
$t_summary = string_display_line_links($p_bug->summary);
$t_status = get_enum_element('status', $p_bug->status);
$t_node_attributes['tooltip'] = '[' . $t_status . '] ' . $t_summary;
$p_graph->add_node($p_bug_id, $t_node_attributes);
}
示例9: string_display_line_links
echo $uscolor;
?>
;"></td>
<td style="background-color:<?php
echo $uscolor;
?>
;"></td>
<td style="background-color:<?php
echo $uscolor;
?>
;"></td>
<td style="background-color:<?php
echo $bgcolor;
?>
;"><?php
echo string_display_line_links($value['name']);
?>
</td>
<td style="background-color:<?php
echo $bgcolor;
?>
;"><?php
if ($value['developer_id'] > 0) {
echo $agilemantis_team->getUserName($value['developer_id']);
}
?>
</td>
<td style="background-color:<?php
echo $bgcolor;
?>
;"><?php
示例10: plugin_lang_get
<td class="category">Product Owner</td>
<td class="category">Scrum Master</td>
<td class="category"><?php
echo plugin_lang_get('product_backlog_current_sprint');
?>
</td>
<?php
}
?>
</tr>
<tr <?php
echo helper_alternate_class();
?>
>
<td><?php
echo string_display_line_links($product_backlog);
?>
</td>
<td><?php
echo nl2br(string_display_links($pb_info[0]['description']));
?>
</td>
<?php
if ($agilemantis_pb->checkProductBacklogMoreOneTeam($product_backlog)) {
?>
<td><?php
echo $team_info[0]['name'];
?>
</td>
<td><?php
echo $agilemantis_team->getUserName($agilemantis_team->getTeamProductOwner());
示例11: foreach
foreach ($teams as $num => $row) {
?>
<tr <?php
echo helper_alternate_class();
?>
>
<td><?php
echo string_display_line_links($row['name']);
?>
</td>
<td><?php
echo string_display_links($row['description']);
?>
</td>
<td><?php
echo string_display_line_links($agilemantis_team->getTeamBacklog($row['product_backlog']));
?>
</td>
<td><?php
echo $agilemantis_team->getProductOwner($row['id']);
?>
</td>
<td><?php
echo $agilemantis_team->getScrumMaster($row['id']);
?>
</td>
<td class="right" width="205">
<form method="post"
action="<?php
echo plugin_page('edit_team.php');
?>
示例12: print_column_summary
function print_column_summary($p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE)
{
global $t_icon_path;
if ($p_columns_target == COLUMNS_TARGET_CSV_PAGE) {
$t_summary = string_attribute($p_row['summary']);
} else {
$t_summary = string_display_line_links($p_row['summary']);
}
echo '<td class="left">', $t_summary;
if (VS_PRIVATE == $p_row['view_state']) {
printf(' <img src="%s" alt="(%s)" title="%s" />', $t_icon_path . 'protected.gif', lang_get('private'), lang_get('private'));
}
echo '</td>';
}
示例13: access_has_bug_level
$tpl_can_attach_tag = $tpl_show_tags && !$tpl_force_readonly && access_has_bug_level(config_get('tag_attach_threshold'), $f_bug_id);
$tpl_show_category = in_array('category_id', $t_fields);
$tpl_category = $tpl_show_category ? string_display_line(category_full_name($tpl_bug->category_id)) : '';
$tpl_show_priority = in_array('priority', $t_fields);
$tpl_priority = $tpl_show_priority ? string_display_line(get_enum_element('priority', $tpl_bug->priority)) : '';
$tpl_show_severity = in_array('severity', $t_fields);
$tpl_severity = $tpl_show_severity ? string_display_line(get_enum_element('severity', $tpl_bug->severity)) : '';
$tpl_show_reproducibility = in_array('reproducibility', $t_fields);
$tpl_reproducibility = $tpl_show_reproducibility ? string_display_line(get_enum_element('reproducibility', $tpl_bug->reproducibility)) : '';
$tpl_show_status = in_array('status', $t_fields);
$tpl_status = $tpl_show_status ? string_display_line(get_enum_element('status', $tpl_bug->status)) : '';
$tpl_show_resolution = in_array('resolution', $t_fields);
$tpl_resolution = $tpl_show_resolution ? string_display_line(get_enum_element('resolution', $tpl_bug->resolution)) : '';
$tpl_show_summary = in_array('summary', $t_fields);
$tpl_show_description = in_array('description', $t_fields);
$tpl_summary = $tpl_show_summary ? string_display_line_links(bug_format_summary($f_bug_id, SUMMARY_FIELD)) : '';
$tpl_description = $tpl_show_description ? string_display_links($tpl_bug->description) : '';
$tpl_steps_to_reproduce = $tpl_show_steps_to_reproduce ? string_display_links($tpl_bug->steps_to_reproduce) : '';
$tpl_additional_information = $tpl_show_additional_information ? string_display_links($tpl_bug->additional_information) : '';
$tpl_links = event_signal('EVENT_MENU_ISSUE', $f_bug_id);
#
# Start of Template
#
echo '<br />';
echo '<table class="width100" cellspacing="1">';
echo '<thead><tr class="bug-nav">';
# Form Title
echo '<td class="form-title" colspan="', $t_bugslist ? '3' : '4', '">';
echo $tpl_form_title;
echo ' <span class="small">';
# Jump to Bugnotes
示例14: string_display
method="post">
<input type="hidden" name="productBacklogName"
value="<?php
echo string_display($row['name']);
?>
">
<tr <?php
echo helper_alternate_class();
?>
>
<td><?php
echo string_display_line_links($row['name']);
?>
</td>
<td><?php
echo nl2br(string_display_line_links($row['description']));
?>
</td>
<td><?php
echo substr($running_sprints, 0, -6);
?>
</td>
<td><?php
echo substr($project_list, 0, -2);
?>
</td>
<td><input type="submit" name="submit"
value="<?php
echo plugin_lang_get('product_backlog_open_backlog');
?>
"></td>
示例15: clean_summary
function clean_summary($bug)
{
$summary = bug_format_id($bug->id) . ': ' . string_display_line_links($bug->summary);
return strip_tags(html_entity_decode($summary));
}