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


PHP testproject::getKeywords方法代码示例

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


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

示例1: initializeGui

function initializeGui(&$dbHandler, &$argsObj)
{
    $tproject_mgr = new testproject($dbHandler);
    $gui = new stdClass();
    $gui->tcasePrefix = $tproject_mgr->getTestCasePrefix($argsObj->tprojectID) . config_get('testcase_cfg')->glue_character;
    $gui->mainCaption = lang_get('testproject') . " " . $argsObj->tprojectName;
    $gui->importance = config_get('testcase_importance_default');
    $gui->creation_date_from = null;
    $gui->creation_date_to = null;
    $gui->modification_date_from = null;
    $gui->modification_date_to = null;
    $gui->search_important_notice = sprintf(lang_get('search_important_notice'), $argsObj->tprojectName);
    $gui->design_cf = $tproject_mgr->cfield_mgr->get_linked_cfields_at_design($argsObj->tprojectID, cfield_mgr::ENABLED, null, 'testcase');
    $gui->keywords = $tproject_mgr->getKeywords($argsObj->tprojectID);
    $gui->filter_by['design_scope_custom_fields'] = !is_null($gui->design_cf);
    $gui->filter_by['keyword'] = !is_null($gui->keywords);
    $reqSpecSet = $tproject_mgr->genComboReqSpec($argsObj->tprojectID);
    $gui->filter_by['requirement_doc_id'] = !is_null($reqSpecSet);
    $gui->option_importance = array(0 => '', HIGH => lang_get('high_importance'), MEDIUM => lang_get('medium_importance'), LOW => lang_get('low_importance'));
    return $gui;
}
开发者ID:mokal,项目名称:DCN_TestLink,代码行数:21,代码来源:tcSearchForm.php

示例2: dBug

//$tproject_mgr->update($new_id, $name, $color, $options->requirement_mgmt,
//                      $options->priority_mgmt, $options->automated_execution,
//                      $notes,$active,$tcasePrefix,$is_public);
//
//new dBug($tproject_mgr->get_by_id($new_id));
//die();
$new_id = 1157;
$tproject_mgr->copy_as(9, $new_id, 1);
die;
// getKeywords($testproject_id,$keywordID = null)
$tproject_id = 1;
echo "<pre> testproject - getKeywords(\$testproject_id,\$keywordID = null)";
echo "</pre>";
echo "<pre>               getKeywords({$tproject_id})";
echo "</pre>";
$keywords = $tproject_mgr->getKeywords($tproject_id);
new dBug($keywords);
$tproject_id = 1;
echo "<pre> testproject - get_first_level_test_suites({$tproject_id},{$mode}='simple')";
echo "</pre>";
echo "<pre>               get_first_level_test_suites({$tproject_id},{$mode}='simple')";
echo "</pre>";
$info = $tproject_mgr->get_first_level_test_suites($tproject_id, $mode = 'simple');
new dBug($info);
die;
echo "<pre> testproject - get_keywords_map(\$testproject_id)";
echo "</pre>";
$tproject_id = 1;
echo "<pre>               get_keywords_map({$tproject_id})";
echo "</pre>";
$keywords_map = $tproject_mgr->get_keywords_map($tproject_id);
开发者ID:CristianOspinaOspina,项目名称:testlinkpruebas,代码行数:31,代码来源:testproject.class.test.php

示例3: templateConfiguration

require_once "../../config.inc.php";
require_once "../functions/common.php";
testlinkInitPage($db);
$templateCfg = templateConfiguration();
$tproject_mgr = new testproject($db);
$req_mgr = new requirement_mgr($db);
$tcase_cfg = config_get('testcase_cfg');
$args = init_args();
$gui = new stdClass();
$gui->tcasePrefix = $tproject_mgr->getTestCasePrefix($args->tprojectID);
$gui->tcasePrefix .= $tcase_cfg->glue_character;
$gui->mainCaption = lang_get('testproject') . " " . $args->tprojectName;
$enabled = 1;
$no_filters = null;
$gui->design_cf = $tproject_mgr->cfield_mgr->get_linked_cfields_at_design($args->tprojectID, $enabled, $no_filters, 'requirement');
$gui->keywords = $tproject_mgr->getKeywords($args->tprojectID);
$reqSpecSet = $tproject_mgr->getOptionReqSpec($args->tprojectID, testproject::GET_NOT_EMPTY_REQSPEC);
$gui->filter_by['design_scope_custom_fields'] = !is_null($gui->design_cf);
$gui->filter_by['keyword'] = !is_null($gui->keywords);
$gui->filter_by['requirement_doc_id'] = !is_null($reqSpecSet);
$reqCfg = config_get('req_cfg');
$gui->types = init_labels($reqCfg->type_labels);
$coverageManagement = $reqCfg->expected_coverage_management;
$gui->filter_by['expected_coverage'] = !is_null($coverageManagement);
$gui->reqStatus = init_labels($reqCfg->status_labels);
//BUGID 1748
$gui->filter_by['relation_type'] = $reqCfg->relations->enable;
$gui->req_relation_select = $req_mgr->init_relation_type_select();
foreach ($gui->req_relation_select['equal_relations'] as $key => $oldkey) {
    // set new key in array and delete old one
    $new_key = (int) str_replace("_source", "", $oldkey);
开发者ID:tamtrong,项目名称:testlink,代码行数:31,代码来源:reqSearchForm.php

示例4: init_args

 * This script is distributed under the GNU General Public License 2 or later. 
 *
 * Filename $RCSfile: keywordsView.php,v $
 *
 * @version $Revision: 1.30 $
 * @modified $Date: 2009/08/24 19:18:45 $ by $Author: schlundus $
 *
 * allows users to manage keywords. 
 */
require_once "../../config.inc.php";
require_once "common.php";
testlinkInitPage($db, false, false, "checkRights");
$templateCfg = templateConfiguration();
$args = init_args();
$tproject = new testproject($db);
$keywords = $tproject->getKeywords($args->testproject_id);
$smarty = new TLSmarty();
$smarty->assign('action', null);
$smarty->assign('sqlResult', null);
$smarty->assign('keywords', $keywords);
$smarty->assign('canManage', has_rights($db, "mgt_modify_key"));
$smarty->display($templateCfg->template_dir . $templateCfg->default_template);
/**
 * @return object returns the arguments for the page
 */
function init_args()
{
    $args = new stdClass();
    $args->testproject_id = isset($_SESSION['testprojectID']) ? $_SESSION['testprojectID'] : 0;
    return $args;
}
开发者ID:tamtrong,项目名称:testlink,代码行数:31,代码来源:keywordsView.php

示例5: init_args

 *
 * allows users to manage keywords. 
 *
 * @internal revisions
 * 20110417 - franciscom - BUGID 4429: Code refactoring to remove global coupling as much as possible
 *
 */
require_once "../../config.inc.php";
require_once "common.php";
testlinkInitPage($db);
$templateCfg = templateConfiguration();
$args = init_args();
checkRights($db, $_SESSION['currentUser'], $args);
$tproject = new testproject($db);
$gui = new stdClass();
$gui->keywords = $tproject->getKeywords($args->tproject_id);
$gui->tproject_id = $args->tproject_id;
$gui->canManage = $_SESSION['currentUser']->hasRight($db, "mgt_modify_key", $args->tproject_id);
$smarty = new TLSmarty();
$smarty->assign('action', null);
$smarty->assign('sqlResult', null);
$smarty->assign('gui', $gui);
$smarty->display($templateCfg->template_dir . $templateCfg->default_template);
/**
 * @return object returns the arguments for the page
 */
function init_args()
{
    $args = new stdClass();
    $args->tproject_id = isset($_REQUEST['tproject_id']) ? intval($_REQUEST['tproject_id']) : 0;
    return $args;
开发者ID:moraesmv,项目名称:testlink-code,代码行数:31,代码来源:keywordsView.php


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