本文整理匯總了PHP中testplan::getTestPlanAllResult方法的典型用法代碼示例。如果您正苦於以下問題:PHP testplan::getTestPlanAllResult方法的具體用法?PHP testplan::getTestPlanAllResult怎麽用?PHP testplan::getTestPlanAllResult使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類testplan
的用法示例。
在下文中一共展示了testplan::getTestPlanAllResult方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: init_args
<?php
require_once "../../config.inc.php";
require_once "common.php";
testlinkInitPage($db, false, false, "checkRights");
$templateCfg = templateConfiguration();
$args = init_args();
$gui = new stdClass();
$tplan_mgr = new testplan($db);
$tplanid = isset($_GET['tplanid']) ? $_GET['tplanid'] : 1;
$dcnresult = $tplan_mgr->getTestPlanAllResult($tplanid);
$smarty = new TLSmarty();
$smarty->assign('gui', $gui);
$smarty->assign('tplanid', $tplanid);
$smarty->assign('result', $dcnresult);
$smarty->display($templateCfg->template_dir . $templateCfg->default_template);
function init_args()
{
$args = new stdClass();
$args->testproject_id = isset($_SESSION['testprojectID']) ? $_SESSION['testprojectID'] : 0;
$args->currentUser = $_SESSION['currentUser'];
$args->username = $_SESSION['currentUser']->getDisplayName();
return $args;
}
function checkRights(&$db, &$user)
{
return True;
}