Example #1
0
        } else {
            $content = TL_XMLEXPORT_HEADER;
            $content .= $tsuite_mgr->{$pfn}($args->container_id, $args->tproject_id, $optExport);
        }
        downloadContentsToFile($content, $gui->export_filename);
        exit;
    }
}
if ($args->useRecursion) {
    // we are working on a testsuite
    $obj_mgr = new testsuite($db);
} else {
    $obj_mgr = new testcase($db);
}
$gui->object_name = $node['name'];
$gui->exportTypes = $obj_mgr->get_export_file_types();
$gui->tproject_name = $args->tproject_name;
$gui->tproject_id = $args->tproject_id;
$gui->tcID = $args->tcase_id;
$gui->useRecursion = $args->useRecursion ? 1 : 0;
$gui->tcVersionID = $args->tcversion_id;
$gui->containerID = $args->container_id;
$smarty = new TLSmarty();
$smarty->assign('gui', $gui);
$smarty->display($templateCfg->template_dir . $templateCfg->default_template);
/*
  function: init_args
  args:
  
  returns: 
*/