本文整理汇总了PHP中testplan::report_get_builds方法的典型用法代码示例。如果您正苦于以下问题:PHP testplan::report_get_builds方法的具体用法?PHP testplan::report_get_builds怎么用?PHP testplan::report_get_builds使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类testplan
的用法示例。
在下文中一共展示了testplan::report_get_builds方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$gui->do_report['msg'] = lang_get('report_tplan_has_no_build');
}
// -----------------------------------------------------------------------------
// get navigation data
$gui->menuItems = array();
if ($gui->do_report['status_ok']) {
// create a list or reports
$context = new stdClass();
$context->tproject_id = $args->tproject_id;
$context->tplan_id = $args->tplan_id;
$tplan_mgr = new testplan($db);
$dmy = $tplan_mgr->get_by_id($context->tplan_id);
$gui->buildInfoSet = $tplan_mgr->get_builds($gui->tplan_id);
$report_plans = $tplan_mgr->report_get_plans($args->tproject_id);
$report_suites = $tplan_mgr->report_get_suites($args->tproject_id);
$report_builds = $tplan_mgr->report_get_builds();
$report_build_total = count($report_builds);
$report_devices = $tplan_mgr->report_get_devices($args->tproject_id);
$report_device_total = count($report_devices);
unset($tplan_mgr);
$context->apikey = $dmy['api_key'];
// $context->apikey = $_SESSION['currentUser']->userApiKey;
$context->imgSet = $smarty->getImages();
$gui->menuItems = $reports_mgr->get_list_reports($context, $gui->btsEnabled, $args->optReqs, $tlCfg->reports_formats[$args->format]);
}
$smarty->assign('gui', $gui);
$smarty->assign('report_plans', $report_plans);
$smarty->assign('report_suites', $report_suites);
$smarty->assign('report_builds', json_encode($report_builds));
$smarty->assign('report_build_total', $report_build_total);
$smarty->assign('report_devices', json_encode($report_devices));