• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP string_process_bugnote_link函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中string_process_bugnote_link函数的典型用法代码示例。如果您正苦于以下问题:PHP string_process_bugnote_link函数的具体用法?PHP string_process_bugnote_link怎么用?PHP string_process_bugnote_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了string_process_bugnote_link函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: email

 /**
  * Email text processing.
  * @param string Event name
  * @param string Unformatted text
  * @return string Formatted text
  */
 function email($p_event, $p_string)
 {
     static $s_text, $s_buglinks, $s_vcslinks;
     $t_string = $p_string;
     if (null === $s_text) {
         $s_text = plugin_config_get('process_text');
         $s_buglinks = plugin_config_get('process_buglinks');
         $s_vcslinks = plugin_config_get('process_vcslinks');
     }
     if (ON == $s_text) {
         $t_string = string_strip_hrefs($t_string);
     }
     if (ON == $s_buglinks) {
         $t_string = string_process_bug_link($t_string, false);
         $t_string = string_process_bugnote_link($t_string, false);
     }
     if (ON == $s_vcslinks) {
         $t_string = string_process_cvs_link($t_string, false);
     }
     return $t_string;
 }
开发者ID:nourchene-benslimane,项目名称:mantisV0,代码行数:27,代码来源:MantisCoreFormatting.php


示例2: Source_View_Changesets

/**
 * Display a list of changeset objects in tabular format.
 * Assumes that a table with four columns has already been defined.
 * @param array Changeset objects
 * @param array Repository objects
 */
function Source_View_Changesets($p_changesets, $p_repos = null, $p_show_repos = true)
{
    if (!is_array($p_changesets)) {
        return;
    }
    if (is_null($p_repos) || !is_array($p_repos)) {
        $t_repos = SourceRepo::load_by_changesets($p_changesets);
    } else {
        $t_repos = $p_repos;
    }
    $t_use_porting = config_get('plugin_Source_enable_porting');
    foreach ($p_changesets as $t_changeset) {
        $t_repo = $t_repos[$t_changeset->repo_id];
        $t_vcs = SourceVCS::repo($t_repo);
        $t_changeset->load_files();
        $t_author = Source_View_Author($t_changeset, false);
        $t_committer = Source_View_Committer($t_changeset, false);
        ?>

<tr class="row-1">
<td class="category" width="25%" rowspan="<?php 
        echo count($t_changeset->files) + 1;
        ?>
">
	<a name="changeset<?php 
        echo $t_changeset->id;
        ?>
"><?php 
        echo string_display(($p_show_repos ? $t_repo->name . ': ' : '') . $t_vcs->show_changeset($t_repo, $t_changeset));
        ?>
</a>
	<br/><span class="small"><?php 
        echo plugin_lang_get('timestamp', 'Source'), ': ', string_display_line($t_changeset->timestamp);
        ?>
</span>
	<br/><span class="small"><?php 
        echo plugin_lang_get('author', 'Source'), ': ', $t_author;
        ?>
</span>
	<?php 
        if ($t_committer && $t_committer != $t_author) {
            ?>
<br/><span class="small"><?php 
            echo plugin_lang_get('committer', 'Source'), ': ', $t_committer;
            ?>
</span><?php 
        }
        ?>
	<?php 
        if ($t_use_porting) {
            ?>
	<br/><span class="small"><?php 
            echo plugin_lang_get('ported', 'Source'), ': ', $t_changeset->ported ? string_display_line($t_changeset->ported) : (is_null($t_changeset->ported) ? plugin_lang_get('pending', 'Source') : plugin_lang_get('na', 'Source'));
            ?>
</span>
	<?php 
        }
        ?>
	<br/><span class="small-links">
		<?php 
        print_bracket_link(plugin_page('view', false, 'Source') . '&id=' . $t_changeset->id, plugin_lang_get('details', 'Source'));
        if ($t_url = $t_vcs->url_changeset($t_repo, $t_changeset)) {
            print_bracket_link($t_url, plugin_lang_get('diff', 'Source'));
        }
        ?>
</td>
<td colspan="3"><?php 
        # The commit message is manually transformed (adding href, bug and bugnote
        # links + nl2br) instead of calling string_display_links(), which avoids
        # unwanted html tags processing by the MantisCoreFormatting plugin.
        # Rationale: commit messages being plain text, any html they may contain
        # should not be considered as formatting and must be displayed as-is.
        echo string_nl2br(string_process_bugnote_link(string_process_bug_link(string_insert_hrefs(string_html_specialchars($t_changeset->message)))));
        ?>
</td>
</tr>

		<?php 
        foreach ($t_changeset->files as $t_file) {
            ?>
<tr class="row-2">
<td class="small mono" colspan="2"><?php 
            echo string_display_line($t_vcs->show_file($t_repo, $t_changeset, $t_file));
            ?>
</td>
<td class="center" width="12%"><span class="small-links">
		<?php 
            if ($t_url = $t_vcs->url_diff($t_repo, $t_changeset, $t_file)) {
                print_bracket_link($t_url, plugin_lang_get('diff', 'Source'));
            }
            if ($t_url = $t_vcs->url_file($t_repo, $t_changeset, $t_file)) {
                print_bracket_link($t_url, plugin_lang_get('file', 'Source'));
            }
            ?>
//.........这里部分代码省略.........
开发者ID:Sansumaki,项目名称:source-integration,代码行数:101,代码来源:Source.ViewAPI.php


示例3: string_rss_links

/** Prepare a string for display in rss */
function string_rss_links($p_string)
{
    // rss can not start with &nbsp; which spaces will be replaced into by string_display().
    $t_string = trim($p_string);
    // same steps as string_display_links() without the preservation of spaces since &nbsp; is undefined in XML.
    $t_string = string_strip_hrefs($t_string);
    $t_string = string_html_specialchars($t_string);
    $t_string = string_restore_valid_html_tags($t_string);
    $t_string = string_nl2br($t_string);
    $t_string = string_insert_hrefs($t_string);
    $t_string = string_process_bug_link($t_string, true, false, true);
    $t_string = string_process_bugnote_link($t_string, true, false, true);
    $t_string = string_process_cvs_link($t_string);
    # another escaping to escape the special characters created by the generated links
    $t_string = string_html_specialchars($t_string);
    return $t_string;
}
开发者ID:CristianOspinaOspina,项目名称:testlinkpruebas,代码行数:18,代码来源:string_api.php


示例4: string_email_links

function string_email_links($p_string)
{
    $p_string = string_email($p_string);
    $p_string = string_process_bug_link($p_string, false);
    $p_string = string_process_bugnote_link($p_string, false);
    $p_string = string_process_cvs_link($p_string, false);
    return $p_string;
}
开发者ID:jin255ff,项目名称:company_website,代码行数:8,代码来源:string_api.php



注:本文中的string_process_bugnote_link函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP string_sanitize_url函数代码示例发布时间:2022-05-23
下一篇:
PHP string_prepare_header函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap