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

PHP filter_encode_field_and_value函数代码示例

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

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



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

示例1: print_version_header

function print_version_header($p_version_row)
{
    $t_project_id = $p_version_row['project_id'];
    $t_version_id = $p_version_row['id'];
    $t_version_name = $p_version_row['version'];
    $t_project_name = project_get_field($t_project_id, 'name');
    $t_release_title = '<a href="roadmap_page.php?project_id=' . $t_project_id . '">' . string_display_line($t_project_name) . '</a> - <a href="roadmap_page.php?version_id=' . $t_version_id . '">' . string_display_line($t_version_name) . '</a>';
    if (config_get('show_roadmap_dates')) {
        $t_version_timestamp = $p_version_row['date_order'];
        $t_scheduled_release_date = ' (' . lang_get('scheduled_release') . ' ' . string_display_line(date(config_get('short_date_format'), $t_version_timestamp)) . ')';
    } else {
        $t_scheduled_release_date = '';
    }
    echo '<tt>';
    echo '<br />', $t_release_title, $t_scheduled_release_date, lang_get('word_separator'), print_bracket_link('view_all_set.php?type=1&temporary=y&' . FILTER_PROPERTY_PROJECT_ID . '=' . $t_project_id . '&' . filter_encode_field_and_value(FILTER_PROPERTY_TARGET_VERSION, $t_version_name), lang_get('view_bugs_link')), '<br />';
    $t_release_title_without_hyperlinks = $t_project_name . ' - ' . $t_version_name . $t_scheduled_release_date;
    echo utf8_str_pad('', utf8_strlen($t_release_title_without_hyperlinks), '='), '<br />';
}
开发者ID:nourchene-benslimane,项目名称:mantisV0,代码行数:18,代码来源:roadmap_page.php


示例2: print_version_header

/**
 * Print header for the specified project version.
 * @param int $p_version_id a valid version id
 * @return null
 */
function print_version_header($p_version_id)
{
    $t_project_id = version_get_field($p_version_id, 'project_id');
    $t_version_name = version_get_field($p_version_id, 'version');
    $t_project_name = project_get_field($t_project_id, 'name');
    $t_release_title = '<a href="changelog_page.php?project_id=' . $t_project_id . '">' . string_display_line($t_project_name) . '</a> - <a href="changelog_page.php?version_id=' . $p_version_id . '">' . string_display_line($t_version_name) . '</a>';
    if (config_get('show_changelog_dates')) {
        $t_version_released = version_get_field($p_version_id, 'released');
        $t_release_timestamp = version_get_field($p_version_id, 'date_order');
        if ((bool) $t_version_released) {
            $t_release_date = ' (' . lang_get('released') . ' ' . string_display_line(date(config_get('short_date_format'), $t_release_timestamp)) . ')';
        } else {
            $t_release_date = ' (' . lang_get('not_released') . ')';
        }
    } else {
        $t_release_date = '';
    }
    echo '<br />', $t_release_title, $t_release_date, lang_get('word_separator'), print_bracket_link('view_all_set.php?type=1&temporary=y&' . FILTER_PROPERTY_PROJECT_ID . '=' . $t_project_id . '&' . filter_encode_field_and_value(FILTER_PROPERTY_FIXED_IN_VERSION, $t_version_name), lang_get('view_bugs_link')), '<br />';
    $t_release_title_without_hyperlinks = $t_project_name . ' - ' . $t_version_name . $t_release_date;
    echo utf8_str_pad('', utf8_strlen($t_release_title_without_hyperlinks), '='), '<br />';
}
开发者ID:WebuddhaInc,项目名称:mantisbt-plugin-wbquickreport,代码行数:26,代码来源:changelog_page.php


示例3: filter_get_url

/**
 * Get a permanent link for the current active filter.  The results of using these fields by other users
 * can be inconsistent with the original results due to fields like "Myself", "Current Project",
 * and due to access level.
 * @param array $p_custom_filter Array containing a custom filter definition.
 * @return string the search.php?xxxx or an empty string if no criteria applied.
 */
function filter_get_url(array $p_custom_filter)
{
    $t_query = array();
    if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_PROJECT_ID])) {
        $t_project_id = $p_custom_filter[FILTER_PROPERTY_PROJECT_ID];
        if (count($t_project_id) == 1 && $t_project_id[0] == META_FILTER_CURRENT) {
            $t_project_id = array(helper_get_current_project());
        }
        $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_PROJECT_ID, $t_project_id);
    }
    if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_SEARCH])) {
        $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_SEARCH, $p_custom_filter[FILTER_PROPERTY_SEARCH]);
    }
    if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_CATEGORY_ID])) {
        $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_CATEGORY_ID, $p_custom_filter[FILTER_PROPERTY_CATEGORY_ID]);
    }
    if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_REPORTER_ID])) {
        $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_REPORTER_ID, $p_custom_filter[FILTER_PROPERTY_REPORTER_ID]);
    }
    if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_STATUS])) {
        $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_STATUS, $p_custom_filter[FILTER_PROPERTY_STATUS]);
    }
    if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_MONITOR_USER_ID])) {
        $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_MONITOR_USER_ID, $p_custom_filter[FILTER_PROPERTY_MONITOR_USER_ID]);
    }
    if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_HANDLER_ID])) {
        $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_HANDLER_ID, $p_custom_filter[FILTER_PROPERTY_HANDLER_ID]);
    }
    if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_NOTE_USER_ID])) {
        $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_NOTE_USER_ID, $p_custom_filter[FILTER_PROPERTY_NOTE_USER_ID]);
    }
    if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_SEVERITY])) {
        $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_SEVERITY, $p_custom_filter[FILTER_PROPERTY_SEVERITY]);
    }
    if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_RESOLUTION])) {
        $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_RESOLUTION, $p_custom_filter[FILTER_PROPERTY_RESOLUTION]);
    }
    if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_PRIORITY])) {
        $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_PRIORITY, $p_custom_filter[FILTER_PROPERTY_PRIORITY]);
    }
    if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_VIEW_STATE])) {
        $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_VIEW_STATE, $p_custom_filter[FILTER_PROPERTY_VIEW_STATE]);
    }
    if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_STICKY])) {
        $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_STICKY, $p_custom_filter[FILTER_PROPERTY_STICKY] ? 'on' : 'off');
    }
    if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_VERSION])) {
        $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_VERSION, $p_custom_filter[FILTER_PROPERTY_VERSION]);
    }
    if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_BUILD])) {
        $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_BUILD, $p_custom_filter[FILTER_PROPERTY_BUILD]);
    }
    if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_FIXED_IN_VERSION])) {
        $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_FIXED_IN_VERSION, $p_custom_filter[FILTER_PROPERTY_FIXED_IN_VERSION]);
    }
    if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_TARGET_VERSION])) {
        $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_TARGET_VERSION, $p_custom_filter[FILTER_PROPERTY_TARGET_VERSION]);
    }
    if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_SORT_FIELD_NAME])) {
        $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_SORT_FIELD_NAME, $p_custom_filter[FILTER_PROPERTY_SORT_FIELD_NAME]);
    }
    if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_SORT_DIRECTION])) {
        $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_SORT_DIRECTION, $p_custom_filter[FILTER_PROPERTY_SORT_DIRECTION]);
    }
    if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_ISSUES_PER_PAGE])) {
        if ($p_custom_filter[FILTER_PROPERTY_ISSUES_PER_PAGE] != config_get('default_limit_view')) {
            $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_ISSUES_PER_PAGE, $p_custom_filter[FILTER_PROPERTY_ISSUES_PER_PAGE]);
        }
    }
    if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_HIGHLIGHT_CHANGED])) {
        if ($p_custom_filter[FILTER_PROPERTY_HIGHLIGHT_CHANGED] != config_get('default_show_changed')) {
            $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_HIGHLIGHT_CHANGED, $p_custom_filter[FILTER_PROPERTY_HIGHLIGHT_CHANGED]);
        }
    }
    if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_HIDE_STATUS])) {
        $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_HIDE_STATUS, $p_custom_filter[FILTER_PROPERTY_HIDE_STATUS]);
    }
    if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_FILTER_BY_DATE])) {
        $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_FILTER_BY_DATE, $p_custom_filter[FILTER_PROPERTY_FILTER_BY_DATE] ? 'on' : 'off');
        # The start and end dates are only applicable if filter by date is set.
        if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_START_DAY])) {
            $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_START_DAY, $p_custom_filter[FILTER_PROPERTY_START_DAY]);
        }
        if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_END_DAY])) {
            $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_END_DAY, $p_custom_filter[FILTER_PROPERTY_END_DAY]);
        }
        if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_START_MONTH])) {
            $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_START_MONTH, $p_custom_filter[FILTER_PROPERTY_START_MONTH]);
        }
        if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_END_MONTH])) {
            $t_query[] = filter_encode_field_and_value(FILTER_PROPERTY_END_MONTH, $p_custom_filter[FILTER_PROPERTY_END_MONTH]);
        }
        if (!filter_field_is_any($p_custom_filter[FILTER_PROPERTY_START_YEAR])) {
//.........这里部分代码省略.........
开发者ID:vipjaven,项目名称:mantisbt,代码行数:101,代码来源:filter_api.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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