本文整理汇总了PHP中testproject::getActiveTestPlansCount方法的典型用法代码示例。如果您正苦于以下问题:PHP testproject::getActiveTestPlansCount方法的具体用法?PHP testproject::getActiveTestPlansCount怎么用?PHP testproject::getActiveTestPlansCount使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类testproject
的用法示例。
在下文中一共展示了testproject::getActiveTestPlansCount方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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 = $tproject_mgr->getActiveTestPlansCount($testprojectID);
//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;