本文整理匯總了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;