当前位置: 首页>>代码示例>>PHP>>正文


PHP project_get_name函数代码示例

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


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


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