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


PHP testproject::get_all_testplans方法代码示例

本文整理汇总了PHP中testproject::get_all_testplans方法的典型用法代码示例。如果您正苦于以下问题:PHP testproject::get_all_testplans方法的具体用法?PHP testproject::get_all_testplans怎么用?PHP testproject::get_all_testplans使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在testproject的用法示例。


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

示例1: init_args

/**
 * init_args
 *
 */
function init_args(&$dbHandler)
{
    $args = new stdClass();
    $args->tproject_id = isset($_REQUEST['tproject_id']) ? intval($_REQUEST['tproject_id']) : 0;
    $args->tplans = null;
    if ($args->tproject_id > 0) {
        $tprojectMgr = new testproject($dbHandler);
        $dummy = $tprojectMgr->tree_manager->get_node_hierarchy_info($args->tproject_id);
        $args->tproject_name = $dummy['name'];
        $args->tplans = $tprojectMgr->get_all_testplans($args->tproject_id);
    }
    $args->grants = new stdClass();
    $args->grants->testplan_create = $_SESSION['currentUser']->hasRight($dbHandler, "mgt_testplan_create", $args->tproject_id);
    return $args;
}
开发者ID:moraesmv,项目名称:testlink-code,代码行数:19,代码来源:planView.php

示例2: doCopyToTestPlans

function doCopyToTestPlans(&$argsObj, &$buildMgr, &$tplanMgr)
{
    $tprojectMgr = new testproject($tplanMgr->db);
    // exclude this testplan
    $filters = array('tplan2exclude' => $argsObj->tplan_id);
    $tplanset = $tprojectMgr->get_all_testplans($argsObj->tproject_id, $filters);
    if (!is_null($tplanset)) {
        foreach ($tplanset as $id => $info) {
            if (!$tplanMgr->check_build_name_existence($id, $argsObj->build_name)) {
                $buildMgr->create($id, $argsObj->build_name, $argsObj->notes, $argsObj->is_active, $argsObj->is_open);
            }
        }
    }
}
开发者ID:moraesmv,项目名称:testlink-code,代码行数:14,代码来源:buildEdit.php

示例3: foreach

    foreach ($tcase_all_info as $tcversion_info) {
        if ($tcversion_info['id'] == $args->tcversion_id) {
            $version = $tcversion_info['version'];
            $gui->pageTitle = lang_get('test_case') . ':' . $tcversion_info['name'];
            $gui->tcaseIdentity = $tproject_mgr->getTestCasePrefix($args->tproject_id);
            $gui->tcaseIdentity .= $glue . $tcversion_info['tc_external_id'] . ':' . $tcversion_info['name'];
            break;
        }
    }
}
// 20100514 - franciscom
// Why I'm filter on NOT_EXECUTED ??? -> this causes BUGID 3189
// $link_info = $tcase_mgr->get_linked_versions($args->tcase_id,'NOT_EXECUTED');
$link_info = $tcase_mgr->get_linked_versions($args->tcase_id);
// 20100124 - work only on ACTIVE TEST PLANS => array('plan_status' => 1)
if (!is_null($tplanSet = $tproject_mgr->get_all_testplans($args->tproject_id, array('plan_status' => 1)))) {
    $has_links = array_fill_keys(array_keys($tplanSet), false);
    $linked_tplans = null;
    if (!is_null($link_info)) {
        foreach ($link_info as $tcversion_id => $info) {
            foreach ($info as $tplan_id => $platform_info) {
                $has_links[$tplan_id] = true;
                foreach ($platform_info as $platform_id => $value) {
                    // $gui->tplans[$tplan_id][$platform_id]['tcversion_id']=$value['id'];
                    $linked_tplans[$tplan_id][$platform_id]['tcversion_id'] = $value['tcversion_id'];
                    $linked_tplans[$tplan_id][$platform_id]['version'] = $value['version'];
                    $linked_tplans[$tplan_id][$platform_id]['draw_checkbox'] = false;
                }
            }
        }
    }
开发者ID:tamtrong,项目名称:testlink,代码行数:31,代码来源:tcAssign2Tplan.php

示例4: init_args

*/
require_once '../../config.inc.php';
require_once "common.php";
testlinkInitPage($db, false, false, "checkRights");
$templateCfg = templateConfiguration();
$args = init_args();
$gui = new stdClass();
$gui->tproject_id = $args->tproject_id;
$gui->tplans = null;
$gui->user_feedback = '';
$gui->grants = new stdClass();
$gui->grants->testplan_create = has_rights($db, "mgt_testplan_create");
$gui->main_descr = lang_get('testplan_title_tp_management') . " - " . lang_get('testproject') . ' ' . $args->tproject_name;
if ($args->tproject_id) {
    $tproject_mgr = new testproject($db);
    $gui->tplans = $tproject_mgr->get_all_testplans($args->tproject_id);
}
$smarty = new TLSmarty();
$smarty->assign('gui', $gui);
$smarty->display($templateCfg->template_dir . $templateCfg->default_template);
/**
 * init_args
 *
 */
function init_args()
{
    $args = new stdClass();
    $args->tproject_id = isset($_SESSION['testprojectID']) ? intval($_SESSION['testprojectID']) : 0;
    $args->tproject_name = isset($_SESSION['testprojectName']) ? trim($_SESSION['testprojectName']) : '';
    return $args;
}
开发者ID:tamtrong,项目名称:testlink,代码行数:31,代码来源:planView.php

示例5: getGrants

$gui->grants = getGrants($db, $user, $userIsBlindFolded);
$gui->hasTestCases = false;
if ($gui->grants['view_tc']) {
    $gui->hasTestCases = $tproject_mgr->count_testcases($testprojectID) > 0 ? 1 : 0;
}
$gui->hasKeywords = false;
if ($gui->hasTestCases) {
    $gui->hasKeywords = $tproject_mgr->hasKeywords($testprojectID);
}
// ----- Test Plan Section --------------------------------------------------------------
/** 
 * @TODO - franciscom - we must understand if these two calls are really needed,
 * or is enough just call to getAccessibleTestPlans()
 */
$filters = array('plan_status' => ACTIVE);
$gui->num_active_tplans = sizeof($tproject_mgr->get_all_testplans($testprojectID, $filters));
// get Test Plans available for the user
$arrPlans = $currentUser->getAccessibleTestPlans($db, $testprojectID);
if ($testplanID > 0) {
    // if this test plan is present on $arrPlans
    //	  OK we will set it on $arrPlans as selected one.
    // else
    //    need to set test plan on session
    //
    $index = 0;
    $found = 0;
    $loop2do = count($arrPlans);
    for ($idx = 0; $idx < $loop2do; $idx++) {
        if ($arrPlans[$idx]['id'] == $testplanID) {
            $found = 1;
            $index = $idx;
开发者ID:mokal,项目名称:DCN_TestLink,代码行数:31,代码来源:mainPage.php

示例6: init_args

    $gui->do_report['status_ok'] = 0;
    $gui->do_report['msg'] = lang_get('report_tplan_has_no_build');
}
// -----------------------------------------------------------------------------
// get navigation data
$gui->menuItems = array();
$gui->tplans = array();
if ($gui->do_report['status_ok']) {
    // create a list or reports
    $gui->menuItems = $reports_mgr->get_list_reports($btsEnabled, $args->optReqs, $tlCfg->reports_formats[$args->format]);
}
// BUGID 3370
// get All test Plans for combobox
$filters = array('plan_status' => $args->show_only_active_tplans ? 1 : null);
$options = array('outputType' => 'forHMLSelect');
$gui->tplans = $tproject_mgr->get_all_testplans($args->tproject_id, $filters, $options);
$smarty = new TLSmarty();
$smarty->assign('gui', $gui);
$smarty->assign('arrReportTypes', localize_array($tlCfg->reports_formats));
$smarty->assign('selectedReportType', $args->format);
$smarty->display($templateCfg->template_dir . $templateCfg->default_template);
/**
 * 
 *
 */
function init_args()
{
    // BUGID 3370
    $iParams = array("format" => array(tlInputParameter::INT_N), "tplan_id" => array(tlInputParameter::INT_N), "show_inactive_tplans" => array(tlInputParameter::CB_BOOL));
    $args = new stdClass();
    R_PARAMS($iParams, $args);
开发者ID:tamtrong,项目名称:testlink,代码行数:31,代码来源:resultsNavigator.php


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