當前位置: 首頁>>代碼示例>>PHP>>正文


PHP testcase::get_assigned_to_user方法代碼示例

本文整理匯總了PHP中testcase::get_assigned_to_user方法的典型用法代碼示例。如果您正苦於以下問題:PHP testcase::get_assigned_to_user方法的具體用法?PHP testcase::get_assigned_to_user怎麽用?PHP testcase::get_assigned_to_user使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在testcase的用法示例。


在下文中一共展示了testcase::get_assigned_to_user方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: templateConfiguration

require_once "common.php";
require_once "exttable.class.php";
testlinkInitPage($db);
$templateCfg = templateConfiguration();
$smarty = new TLSmarty();
$imgSet = $smarty->getImages();
$args = init_args($db);
$gui = initializeGui($db, $args);
$statusGui = getStatusGuiCfg();
// Get all test cases assigned to user without filtering by execution status
$options = new stdClass();
$options->mode = 'full_path';
$filters = initFilters($args);
$tplan_param = $args->tplan_id ? array($args->tplan_id) : testcase::ALL_TESTPLANS;
$tcase_mgr = new testcase($db);
$gui->resultSet = $tcase_mgr->get_assigned_to_user($args->user_id, $args->tproject_id, $tplan_param, $options, $filters);
$doIt = !is_null($gui->resultSet);
if ($doIt) {
    $tables = tlObjectWithDB::getDBTables(array('nodes_hierarchy'));
    $tplanSet = array_keys($gui->resultSet);
    $sql = "SELECT name,id FROM {$tables['nodes_hierarchy']} " . "WHERE id IN (" . implode(',', $tplanSet) . ")";
    $gui->tplanNames = $db->fetchRowsIntoMap($sql, 'id');
    $optColumns = array('user' => $args->show_user_column, 'priority' => $args->priority_enabled);
    $whoiam = $args->show_all_users ? 'tcAssignedToUser' : 'tcAssignedToMe';
    foreach ($gui->resultSet as $tplan_id => $tcase_set) {
        list($columns, $sortByColumn, $show_platforms) = getColumnsDefinition($db, $tplan_id, $optColumns);
        $rows = array();
        foreach ($tcase_set as $tcase_platform) {
            foreach ($tcase_platform as $tcase) {
                $current_row = array();
                $tcase_id = $tcase['testcase_id'];
開發者ID:mokal,項目名稱:DCN_TestLink,代碼行數:31,代碼來源:tcAssignedToUser.php


注:本文中的testcase::get_assigned_to_user方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。