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


PHP testplan::countLinkedTCVersionsByPlatform方法代码示例

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


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

示例1: stdClass

$gui = new stdClass();
$gui->platform_assignment_subtitle = null;
$gui->tplan_id = $args->tplan_id;
$gui->tproject_id = $args->tproject_id;
$gui->can_do = isset($args->tplan_id);
$gui->mainTitle = lang_get('add_remove_platforms');
$gui->warning = '';
if (isset($args->tplan_id)) {
    // do following check to give warning to user
    // if test plan has test case versions with platform_id=0
    // this means that right now there are not platforms linked to test plan.
    // Give message to user with following info:
    // Till you are not going to assign a platform to this linked tcversions
    // and it's execution results he/she will not be able to execute
    //
    $qtyByPlatform = $tplan_mgr->countLinkedTCVersionsByPlatform($args->tplan_id);
    $qtyLinked2Unknown = isset($qtyByPlatform[0]['qty']) ? $qtyByPlatform[0]['qty'] : 0;
    if ($fix_needed = $qtyLinked2Unknown > 0) {
        $gui->warning = lang_get('unknown_platform');
    }
    $opt_cfg->global_lbl = '';
    $opt_cfg->additional_global_lbl = null;
    $opt_cfg->from->lbl = lang_get('available_platforms');
    $opt_cfg->to->lbl = lang_get('assigned_platforms');
    $gui->platform_count_js = init_option_panels($tplan_mgr, $platform_mgr, $opt_cfg, $args);
    $tplanData = $tplan_mgr->get_by_id($args->tplan_id);
    if (isset($tplanData)) {
        $gui->mainTitle = sprintf($gui->mainTitle, $tplanData['name']);
    }
    if ($args->doAction == 'doAssignPlatforms') {
        $platform_mgr->linkToTestplan($args->platformsToAdd, $args->tplan_id);
开发者ID:moraesmv,项目名称:testlink-code,代码行数:31,代码来源:platformsAssign.php


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