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

PHP project_get_name函数代码示例

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

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



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

示例1: wiki_xwiki_get_page_id_for_project

function wiki_xwiki_get_page_id_for_project($p_project_id)
{
    if ($p_project_id == ALL_PROJECTS) {
        return config_get('wiki_root_namespace');
    } else {
        $t_project_name = project_get_name($p_project_id);
        return $t_project_name;
    }
}
开发者ID:amjadtbssm,项目名称:website,代码行数:9,代码来源:wiki_xwiki_api.php


示例2: wiki_dokuwiki_get_page_id_for_project

function wiki_dokuwiki_get_page_id_for_project($p_project_id)
{
    $t_home = 'start';
    if ($p_project_id == ALL_PROJECTS) {
        return $t_home;
    } else {
        $t_project_name = project_get_name($p_project_id);
        return $t_project_name . ':' . $t_home;
    }
}
开发者ID:jin255ff,项目名称:company_website,代码行数:10,代码来源:wiki_dokuwiki_api.php


示例3: addExtraBugData

function addExtraBugData($bug)
{
    $bug["project_name"] = project_get_name($bug["project_id"]);
    if ($bug["reporter_id"] != "") {
        $bug["reporter_name"] = user_get_field($bug["reporter_id"], 'username');
    }
    $bug["severity_name"] = get_enum_element('severity', $bug["severity"]);
    $bug["priority_name"] = get_enum_element('priority', $bug["priority"]);
    $bug["status_name"] = get_enum_element('status', $bug["status"]);
    $bug["reproducibility_name"] = get_enum_element('reproducibility', $bug["reproducibility"]);
    if ($bug["handler_id"] == "") {
        $bug["handler_name"] = user_get_field($bug["handler_id"], 'username');
    }
    $bug["projection_name"] = get_enum_element('projection', $bug["projection"]);
    $bug["eta_name"] = get_enum_element('eta', $bug["eta"]);
    $bug["resolution_name"] = get_enum_element('resolution', $bug["resolution"]);
    $bug["description"] = bug_get_text_field($bug["id"], 'description');
    return $bug;
}
开发者ID:n2i,项目名称:xvnkb,代码行数:19,代码来源:mantishelper.php


示例4: print_column_project_id

/**
 * Print column content for column project id
 *
 * @param BugData $p_bug bug object
 * @param int $p_columns_target see COLUMNS_TARGET_* in constant_inc.php
 * @return null
 * @access public
 */
function print_column_project_id($p_bug, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE)
{
    echo '<td class="column-project-id">';
    echo string_display_line(project_get_name($p_bug->project_id));
    echo '</td>';
}
开发者ID:N0ctrnl,项目名称:mantisbt,代码行数:14,代码来源:columns_api.php


示例5: filter_draw_selection_area2


//.........这里部分代码省略.........
<?php 
        if ('advanced' == $t_view_type) {
            ?>
			<!-- Project -->
			<td class="small-caption category2" colspan="2">
				<a href="<?php 
            echo $t_filters_url . FILTER_PROPERTY_PROJECT_ID;
            ?>
" id="project_id_filter"<?php 
            echo $t_dynamic_filter_expander_class;
            ?>
>
					<?php 
            echo lang_get('email_project_label');
            ?>
				</a>
			</td>
			<td class="small-caption" id="project_id_filter_target">
<?php 
            $t_output = '';
            if (!is_array($t_filter[FILTER_PROPERTY_PROJECT_ID])) {
                $t_filter[FILTER_PROPERTY_PROJECT_ID] = array($t_filter[FILTER_PROPERTY_PROJECT_ID]);
            }
            if (count($t_filter[FILTER_PROPERTY_PROJECT_ID]) == 0) {
                echo lang_get('current');
            } else {
                $t_first_flag = true;
                foreach ($t_filter[FILTER_PROPERTY_PROJECT_ID] as $t_current) {
                    echo '<input type="hidden" name="', FILTER_PROPERTY_PROJECT_ID, '[]" value="', string_attribute($t_current), '" />';
                    $t_this_name = '';
                    if (META_FILTER_CURRENT == $t_current) {
                        $t_this_name = '[' . lang_get('current') . ']';
                    } else {
                        $t_this_name = project_get_name($t_current, false);
                    }
                    if ($t_first_flag != true) {
                        $t_output = $t_output . '<br />';
                    } else {
                        $t_first_flag = false;
                    }
                    $t_output = $t_output . string_display_line($t_this_name);
                }
                echo $t_output;
            }
            ?>
			</td>
<?php 
            if ($t_filter_cols > 6) {
                echo '<td class="small-caption" colspan="' . ($t_filter_cols - 5) . '">&#160;</td>';
            }
        } else {
            if ($t_filter_cols > 3) {
                echo '<td class="small-caption" colspan="' . ($t_filter_cols - 2) . '">&#160;</td>';
            }
        }
        ?>
		</tr>

		<!-- Match Type -->
		<tr class="row-1">
			<td class="small-caption category2"><a href="<?php 
        echo $t_filters_url . FILTER_PROPERTY_MATCH_TYPE;
        ?>
" id="match_type_filter"><?php 
        echo lang_get('filter_match_type');
        ?>
开发者ID:vipjaven,项目名称:mantisbt,代码行数:67,代码来源:filter_api.php


示例6: config_get_access

    } else {
        echo '<td>' . MantisEnum::getLabel(lang_get('access_levels_enum_string'), config_get_access($p_threshold)) . '&nbsp;</td>';
    }
    echo '</tr>' . "\n";
}
function get_section_end()
{
    echo '</table><br />' . "\n";
}
$t_colour_project = config_get('colour_project');
$t_colour_global = config_get('colour_global');
echo "<br /><br />\n";
if (ALL_PROJECTS == $t_project_id) {
    $t_project_title = lang_get('config_all_projects');
} else {
    $t_project_title = sprintf(lang_get('config_project'), string_display(project_get_name($t_project_id)));
}
echo '<p class="bold">' . $t_project_title . '</p>' . "\n";
echo '<p>' . lang_get('colour_coding') . '<br />';
if (ALL_PROJECTS != $t_project_id) {
    echo '<span style="background-color:' . $t_colour_project . '">' . lang_get('colour_project') . '</span><br />';
}
echo '<span style="background-color:' . $t_colour_global . '">' . lang_get('colour_global') . '</span></p>';
echo "<form name=\"mail_config_action\" method=\"post\" action=\"manage_config_work_threshold_set.php\">\n";
echo form_security_field('manage_config_work_threshold_set');
# Issues
get_section_begin_mcwt(lang_get('issues'));
get_capability_row(lang_get('report_issue'), 'report_bug_threshold');
get_capability_enum(lang_get('submit_status'), 'bug_submit_status', 'status');
get_capability_row(lang_get('update_issue'), 'update_bug_threshold');
get_capability_boolean(lang_get('allow_reporter_close'), 'allow_reporter_close');
开发者ID:kaos,项目名称:mantisbt,代码行数:31,代码来源:manage_config_work_threshold_page.php


示例7: require_api

 * @uses print_api.php
 * @uses project_api.php
 */
require_once 'core.php';
require_api('access_api.php');
require_api('authentication_api.php');
require_api('config_api.php');
require_api('form_api.php');
require_api('gpc_api.php');
require_api('helper_api.php');
require_api('html_api.php');
require_api('lang_api.php');
require_api('print_api.php');
require_api('project_api.php');
form_security_validate('manage_user_proj_delete');
auth_reauthenticate();
$f_project_id = gpc_get_int('project_id');
$f_user_id = gpc_get_int('user_id');
user_ensure_exists($f_user_id);
$t_user = user_get_row($f_user_id);
access_ensure_project_level(config_get('project_user_threshold'), $f_project_id);
access_ensure_project_level($t_user['access_level'], $f_project_id);
$t_project_name = project_get_name($f_project_id);
# Confirm with the user
helper_ensure_confirmed(lang_get('remove_user_sure_msg') . '<br/>' . lang_get('project_name_label') . lang_get('word_separator') . $t_project_name, lang_get('remove_user_button'));
project_remove_user($f_project_id, $f_user_id);
form_security_purge('manage_user_proj_delete');
$t_redirect_url = 'manage_user_edit_page.php?user_id=' . $f_user_id;
html_page_top(null, $t_redirect_url);
html_operation_successful($t_redirect_url);
html_page_bottom();
开发者ID:gtn,项目名称:mantisbt,代码行数:31,代码来源:manage_user_proj_delete.php


示例8: mc_project_update

/**
 * Update a project
 *
 * @param string $p_username  The name of the user
 * @param string $p_password  The password of the user
 * @param integer $p_project_id A project's id
 * @param Array $p_project A new ProjectData structure
 * @return bool returns true or false depending on the success of the update action
 */
function mc_project_update($p_username, $p_password, $p_project_id, $p_project)
{
    $t_user_id = mci_check_login($p_username, $p_password);
    if ($t_user_id === false) {
        return new soap_fault('Client', '', 'Access Denied', 'Username/password combination was incorrect');
    }
    if (!mci_has_administrator_access($t_user_id, $p_project_id)) {
        return new soap_fault('Client', '', 'Access Denied', 'User does not have administrator access');
    }
    if (!project_exists($p_project_id)) {
        return new soap_fault('Client', '', "Project '{$p_project_id}' does not exist.");
    }
    if (!isset($p_project['name'])) {
        return new soap_fault('Client', '', 'Missing Field', 'Required Field Missing');
    } else {
        $t_name = $p_project['name'];
    }
    // check to make sure project doesn't already exist
    if ($t_name != project_get_name($p_project_id)) {
        if (!project_is_name_unique($t_name)) {
            return new soap_fault('Client', '', 'Project name exists', 'The project name you attempted to add exists already');
        }
    }
    if (!isset($p_project['description'])) {
        $t_description = project_get_field($p_project_id, 'description');
    } else {
        $t_description = $p_project['description'];
    }
    if (!isset($p_project['status'])) {
        $t_status = project_get_field($p_project_id, 'status');
    } else {
        $t_status = $p_project['status'];
    }
    if (!isset($p_project['view_state'])) {
        $t_view_state = project_get_field($p_project_id, 'view_state');
    } else {
        $t_view_state = $p_project['view_state'];
    }
    if (!isset($p_project['file_path'])) {
        $t_file_path = project_get_field($p_project_id, 'file_path');
    } else {
        $t_file_path = $p_project['file_path'];
    }
    if (!isset($p_project['enabled'])) {
        $t_enabled = project_get_field($p_project_id, 'enabled');
    } else {
        $t_enabled = $p_project['enabled'];
    }
    if (!isset($p_project['inherit_global'])) {
        $t_inherit_global = project_get_field($p_project_id, 'inherit_global');
    } else {
        $t_inherit_global = $p_project['inherit_global'];
    }
    $t_project_status = mci_get_project_status_id($t_status);
    $t_project_view_state = mci_get_project_view_state_id($t_view_state);
    return project_update($p_project_id, $t_name, $t_description, $t_project_status, $t_project_view_state, $t_file_path, $t_enabled, $t_inherit_global);
}
开发者ID:kaos,项目名称:mantisbt,代码行数:66,代码来源:mc_project_api.php


示例9: access_ensure_project_level

if ($f_project_id != ALL_PROJECTS) {
    access_ensure_project_level(VIEWER, $f_project_id);
}
if ($f_sort === 'update') {
    $c_sort_field = 'last_updated';
} else {
    $c_sort_field = 'date_submitted';
}
$t_path = config_get('path');
# construct rss file
$encoding = 'utf-8';
$about = $t_path;
$title = config_get('window_title');
$image_link = $t_path . 'images/mantis_logo_button.gif';
# only rss 2.0
$category = project_get_name($f_project_id);
if ($f_project_id !== 0) {
    $title .= ' - ' . $category;
}
$title .= ' - ' . lang_get('issues');
if ($f_username !== null) {
    $title .= " - ({$f_username})";
}
if ($f_filter_id !== 0) {
    $title .= ' (' . filter_get_field($f_filter_id, 'name') . ')';
}
$description = $title;
# in minutes (only rss 2.0)
$cache = '10';
$rssfile = new RSSBuilder($encoding, $about, $title, $description, $image_link, $category, $cache);
# person, an organization, or a service
开发者ID:nourchene-benslimane,项目名称:mantisV0,代码行数:31,代码来源:issues_rss.php


示例10: access_denied

if (OFF == config_get('allow_anonymous_login')) {
    access_denied();
}
# Make sure that the user selected either all projects or a public one.
$f_project_id = gpc_get_int('project_id', 0);
if ($f_project_id != 0 && VS_PRIVATE == project_get_field($f_project_id, 'view_state')) {
    access_denied();
}
# construct rss file
$encoding = lang_get('charset');
$about = config_get('path');
$title = string_rss_links(config_get('window_title') . ' - ' . lang_get('news'));
$description = $title;
$image_link = config_get('path') . 'images/mantis_logo_button.gif';
# only rss 2.0
$category = string_rss_links(project_get_name($f_project_id));
# in minutes (only rss 2.0)
$cache = '60';
$rssfile = new RSSBuilder($encoding, $about, $title, $description, $image_link, $category, $cache);
# person, an organization, or a service
$publisher = '';
# person, an organization, or a service
$creator = '';
$date = (string) date('r');
$language = lang_get('phpmailer_language');
$rights = '';
# spatial location , temporal period or jurisdiction
$coverage = (string) '';
# person, an organization, or a service
$contributor = (string) '';
$rssfile->setPublisher($publisher);
开发者ID:centaurustech,项目名称:BenFund,代码行数:31,代码来源:news_rss.php


示例11: lang_get

<?php 
    if ($t_cost_col) {
        ?>
		<td class="small-caption bold right">
			<?php 
        echo lang_get('time_tracking_cost');
        ?>
		</td>
<?php 
    }
    ?>

	</tr>
<?php 
    foreach ($t_bugnote_stats['issues'] as $t_issue_id => $t_issue) {
        $t_project_info = !isset($f_bug_id) && $f_project_id == ALL_PROJECTS ? '[' . project_get_name($t_issue['project_id']) . ']' . lang_get('word_separator') : '';
        $t_link = sprintf(lang_get('label'), string_get_bug_view_link($t_issue_id)) . lang_get('word_separator') . $t_project_info . string_display($t_issue['summary']);
        echo '<tr class="row-category-history"><td colspan="4">' . $t_link . '</td></tr>';
        foreach ($t_issue['users'] as $t_username => $t_user_info) {
            ?>
	<tr>
		<td class="small-caption">
			<?php 
            echo $t_username;
            ?>
		</td>
		<td class="small-caption">
			<?php 
            echo db_minutes_to_hhmm($t_user_info['minutes']);
            ?>
		</td>
开发者ID:martijnveen,项目名称:mantisbt,代码行数:31,代码来源:billing_inc.php


示例12: lang_get

###############################################
if (empty($a_userProject_ids)) {
    echo lang_get('plugin_mite_no_projets_assigned');
    exit;
}
$o_userMiteData = $o_pluginController->getMiteUserData();
$a_userMiteRsrces[Mantis2mitePlugin::API_RSRC_P] = $o_userMiteData->getProjects();
$a_userMiteRsrces[Mantis2mitePlugin::API_RSRC_S] = $o_userMiteData->getServices();
$a_userMiteBindings = $o_userMiteData->getBindings();
# build form with configured values
###################################
$s_output .= "\n\t\t<hr size='1' />\n\t\t<form id='frm_mite_mantis_bindings'>\n\t\t<h2>" . lang_get('plugin_mite_header_preferences') . "</h2>";
$s_quickLinksList = "<ul>";
# gather Mantis project names accessible for the user
foreach ($a_userProject_ids as $i_project_id) {
    $s_projectName = project_get_name($i_project_id);
    # create select boxes for all MITE resources of the user
    #######################################################
    foreach (Mantis2mitePlugin::$a_rsrcTypes as $s_type) {
        $a_selectBoxesRsrc[$s_type] = '';
        $s_selectBoxRsrc = '';
        $i_sizeSelectBox = 0;
        if ($s_type == Mantis2mitePlugin::API_RSRC_P) {
            $s_selectBoxRsrc .= "<option value=''>" . lang_get('plugin_mite_please_select') . "</option>";
        }
        foreach ($a_userMiteRsrces[$s_type] as $i_miteRsrc_id => $a_rsrc) {
            $s_selectBoxRsrc .= "<option value='{$i_miteRsrc_id}'";
            # mark as selected if it is binded
            if (isset($a_userMiteBindings[$s_type][$i_miteRsrc_id]) && in_array($i_project_id, $a_userMiteBindings[$s_type][$i_miteRsrc_id])) {
                $s_selectBoxRsrc .= " selected='selected'";
            }
开发者ID:01-Scripts,项目名称:Mantis2mite,代码行数:31,代码来源:user_account_bindings_display.php


示例13: base_url

 function base_url($p_project_id = null)
 {
     $t_base = plugin_config_get('engine_url');
     if (!is_null($p_project_id) && $p_project_id != ALL_PROJECTS) {
         $t_base .= urlencode(project_get_name($p_project_id)) . '/';
     } else {
         $t_base .= urlencode(plugin_config_get('root_namespace'));
     }
     return $t_base;
 }
开发者ID:Tarendai,项目名称:spring-website,代码行数:10,代码来源:MantisCoreWikiPlugin.class.php


示例14: mc_project_update

/**
 * Update a project
 *
 * @param string   $p_username   The name of the user.
 * @param string   $p_password   The password of the user.
 * @param integer  $p_project_id A project's identifier.
 * @param stdClass $p_project    A new ProjectData structure.
 * @return boolean returns true or false depending on the success of the update action
 */
function mc_project_update($p_username, $p_password, $p_project_id, stdClass $p_project)
{
    global $g_project_override;
    $t_user_id = mci_check_login($p_username, $p_password);
    if ($t_user_id === false) {
        return mci_soap_fault_access_denied();
    }
    if (!mci_has_administrator_access($t_user_id, $p_project_id)) {
        return mci_soap_fault_access_denied($t_user_id);
    }
    if (!project_exists($p_project_id)) {
        return SoapObjectsFactory::newSoapFault('Client', 'Project \'' . $p_project_id . '\' does not exist.');
    }
    $g_project_override = $p_project_id;
    $p_project = SoapObjectsFactory::unwrapObject($p_project);
    if (!isset($p_project['name'])) {
        return SoapObjectsFactory::newSoapFault('Client', 'Missing required field \'name\'.');
    } else {
        $t_name = $p_project['name'];
    }
    # check to make sure project doesn't already exist
    if ($t_name != project_get_name($p_project_id)) {
        if (!project_is_name_unique($t_name)) {
            return SoapObjectsFactory::newSoapFault('Client', 'Project name exists');
        }
    }
    if (!isset($p_project['description'])) {
        $t_description = project_get_field($p_project_id, 'description');
    } else {
        $t_description = $p_project['description'];
    }
    if (!isset($p_project['status'])) {
        $t_status = project_get_field($p_project_id, 'status');
    } else {
        $t_status = $p_project['status'];
    }
    if (!isset($p_project['view_state'])) {
        $t_view_state = project_get_field($p_project_id, 'view_state');
    } else {
        $t_view_state = $p_project['view_state'];
    }
    if (!isset($p_project['file_path'])) {
        $t_file_path = project_get_field($p_project_id, 'file_path');
    } else {
        $t_file_path = $p_project['file_path'];
    }
    if (!isset($p_project['enabled'])) {
        $t_enabled = project_get_field($p_project_id, 'enabled');
    } else {
        $t_enabled = $p_project['enabled'];
    }
    if (!isset($p_project['inherit_global'])) {
        $t_inherit_global = project_get_field($p_project_id, 'inherit_global');
    } else {
        $t_inherit_global = $p_project['inherit_global'];
    }
    $t_project_status = mci_get_project_status_id($t_status);
    $t_project_view_state = mci_get_project_view_state_id($t_view_state);
    project_update($p_project_id, $t_name, $t_description, $t_project_status, $t_project_view_state, $t_file_path, $t_enabled, $t_inherit_global);
    return true;
}
开发者ID:derrickweaver,项目名称:mantisbt,代码行数:70,代码来源:mc_project_api.php


示例15: excel_format_project_id

/**
 * Gets the formatted project id value.
 * @param object $p_bug the bug
 * @returns The project name.
 */
function excel_format_project_id($p_bug)
{
    return excel_prepare_string(project_get_name($p_bug->project_id));
}
开发者ID:fur81,项目名称:zofaxiopeu,代码行数:9,代码来源:excel_api.php


示例16: config_obsolete

/**
 * Checks if an obsolete configuration variable is still in use.  If so, an error
 * will be generated and the script will exit.
 *
 * @param string $p_var     Old configuration option.
 * @param string $p_replace New configuration option.
 * @return void
 */
function config_obsolete($p_var, $p_replace = '')
{
    global $g_cache_config;
    # @@@ we could trigger a WARNING here, once we have errors that can
    #     have extra data plugged into them (we need to give the old and
    #     new config option names in the warning text)
    if (config_is_set($p_var)) {
        $t_description = 'The configuration option <em>' . $p_var . '</em> is now obsolete';
        $t_info = '';
        # Check if set in the database
        if (is_array($g_cache_config) && array_key_exists($p_var, $g_cache_config)) {
            $t_info .= 'it is currently defined in ';
            if (isset($GLOBALS['g_' . $p_var])) {
                $t_info .= 'config_inc.php, as well as in ';
            }
            $t_info .= 'the database configuration for: <ul>';
            foreach ($g_cache_config[$p_var] as $t_user_id => $t_user) {
                $t_info .= '<li>' . ($t_user_id == 0 ? lang_get('all_users') : user_get_name($t_user_id)) . ': ';
                foreach ($t_user as $t_project_id => $t_project) {
                    $t_info .= project_get_name($t_project_id) . ', ';
                }
                $t_info = rtrim($t_info, ', ') . '</li>';
            }
            $t_info .= '</ul>';
        }
        # Replacement defined
        if (is_array($p_replace)) {
            $t_info .= 'please see the following options: <ul>';
            foreach ($p_replace as $t_option) {
                $t_info .= '<li>' . $t_option . '</li>';
            }
            $t_info .= '</ul>';
        } else {
            if (!is_blank($p_replace)) {
                $t_info .= 'please use ' . $p_replace . ' instead.';
            }
        }
        check_print_test_warn_row($t_description, false, $t_info);
    }
}
开发者ID:derrickweaver,项目名称:mantisbt,代码行数:48,代码来源:config_api.php


示例17: in_array

$t_show_projection = in_array('projection', $t_fields);
$t_show_eta = in_array('eta', $t_fields);
$t_show_versions = version_should_show_product_version($t_bug->project_id);
$t_show_product_version = $t_show_versions && in_array('product_version', $t_fields);
$t_show_product_build = $t_show_versions && in_array('product_build', $t_fields) && config_get('enable_product_build');
$t_show_fixed_in_version = $t_show_versions && in_array('fixed_in_version', $t_fields);
$t_show_target_version = $t_show_versions && in_array('target_version', $t_fields) && access_has_bug_level(config_get('roadmap_view_threshold'), $f_bug_id);
$t_show_summary = in_array('summary', $t_fields);
$t_show_description = in_array('description', $t_fields);
$t_show_steps_to_reproduce = in_array('steps_to_reproduce', $t_fields);
$t_show_additional_information = in_array('additional_info', $t_fields);
$t_show_tags = in_array('tags', $t_fields);
$t_show_attachments = in_array('attachments', $t_fields);
$t_show_history = access_has_bug_level(config_get('view_history_threshold'), $f_bug_id);
$t_window_title = string_display_line(config_get('window_title'));
$t_project_name = $t_show_project ? string_display_line(project_get_name($t_bug->project_id)) : '';
$t_formatted_bug_id = $t_show_id ? bug_format_id($f_bug_id) : '';
$t_category_name = $t_show_category ? string_display_line(category_full_name($t_bug->category_id)) : '';
$t_severity = string_display_line(get_enum_element('severity', $t_bug->severity));
$t_reproducibility = string_display_line(get_enum_element('reproducibility', $t_bug->reproducibility));
$t_date_submitted = $t_show_date_submitted ? string_display_line(date(config_get('normal_date_format'), $t_bug->date_submitted)) : '';
$t_last_updated = $t_show_last_updated ? string_display_line(date(config_get('normal_date_format'), $t_bug->last_updated)) : '';
$t_platform = string_display_line($t_bug->platform);
$t_os = string_display_line($t_bug->os);
$t_os_version = string_display_line($t_bug->os_build);
$t_is = string_display_line($t_bug->os);
$t_status = string_display_line(get_enum_element('status', $t_bug->status));
$t_priority = string_display_line(get_enum_element('priority', $t_bug->priority));
$t_resolution = string_display_line(get_enum_element('resolution', $t_bug->resolution));
$t_product_build = string_display_line($t_bug->build);
$t_projection = string_display_line(get_enum_element('projection', $t_bug->projection));
开发者ID:derrickweaver,项目名称:mantisbt,代码行数:31,代码来源:print_bug_page.php


示例18: helper_get_current_project

$p_projects = null;
$p_level = 0;
$p_cache = null;
if (null == $p_projects) {
    $t_project_id = helper_get_current_project();
    if (ALL_PROJECTS == $t_project_id) {
        $p_projects = current_user_get_accessible_projects();
    } else {
        $p_projects = array($t_project_id);
    }
}
foreach ($p_projects as $t_project) {
    ?>
        <!-- PROJECTS -->
<?php 
    $t_project_name = str_repeat("&raquo; ", $p_level) . project_get_name($t_project);
    ?>
        <tr valign="top">
          <td class="category"><?php 
    echo $t_project_name;
    ?>
</td>
          <td>
            <table>
        <!-- PROJECT VERSIONS -->

<?php 
    $t_versions = version_get_all_rows($t_project, null, null);
    if (count($t_versions) > 0) {
        foreach ($t_versions as $t_version) {
            if ($t_version['project_id'] != $t_project) {
开发者ID:martijnveen,项目名称:GanttChart,代码行数:31,代码来源:summary_gantt_table_page.php


示例19: mci_project_as_array_by_id

/**
 * Get a project definition.
 *
 * @param integer $p_project_id  The id of the project to retrieve.
 * @return Array an Array containing the id and the name of the project.
 */
function mci_project_as_array_by_id($p_project_id)
{
    $t_result = array();
    $t_result['id'] = $p_project_id;
    $t_result['name'] = project_get_name($p_project_id);
    return $t_result;
}
开发者ID:amjadtbssm,项目名称:website,代码行数:13,代码来源:mc_project_api.php


示例20: version_full_name

/**
 * Gets the full name of a version.  This may include the project name as a prefix (e.g. '[MantisBT] 1.2.0')
 *
 * @param int $p_version_id  The version id.
 * @param bool $p_show_project  Whether to include the project or not, null means include the project if different from current.
 * @param int $p_current_project_id  The current project id or null to use the cookie.
 * @return string The full name of the version.
 */
function version_full_name($p_version_id, $p_show_project = null, $p_current_project_id = null)
{
    if (0 == $p_version_id) {
        # No Version
        return '';
    } else {
        $t_row = version_cache_row($p_version_id);
        $t_project_id = $t_row['project_id'];
        $t_current_project_id = is_null($p_current_project_id) ? helper_get_current_project() : $p_current_project_id;
        if ($p_show_project === null) {
            $t_show_project = $t_project_id != $t_current_project_id;
        } else {
            $t_show_project = $p_show_project;
        }
        if ($t_show_project && $t_project_id != $t_current_project_id) {
            return '[' . project_get_name($t_project_id) . '] ' . $t_row['version'];
        }
        return $t_row['version'];
    }
}
开发者ID:kaos,项目名称:mantisbt,代码行数:28,代码来源:version_api.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP project_get_row函数代码示例发布时间:2022-05-15
下一篇:
PHP project_get_id_by_name函数代码示例发布时间: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