+ [task#134151,doing,0.2h] add export xmind.

This commit is contained in:
liumengyi
2024-12-30 09:51:11 +08:00
committed by 刘刚
parent 6d7c259ccd
commit 6e92ce86c2
+26
View File
@@ -1694,6 +1694,32 @@ class testcase extends control
return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'load' => true));
}
/**
* 导出 xmind 格式的用例。
* Export xmind.
*
* @param int $productID
* @param int $moduleID
* @param string $branch
* @access public
* @return void
*/
public function exportXmind(int $productID, int $moduleID, string $branch)
{
if($_POST)
{
}
$product = $this->product->getByID($productID);
$this->view->settings = $this->testcase->getMindConfig('freemind');
$this->view->productName = $product->name;
$this->view->moduleID = $moduleID;
$this->view->moduleOptionMenu = $this->tree->getOptionMenu($productID, 'case', 0, ($branch === 'all' || !isset($branches[$branch])) ? '0' : $branch);
$this->display();
}
/**
* 导出 xmind 格式的用例。
* Export xmind.