* Code for cmmi.

This commit is contained in:
Yagami
2019-11-01 15:25:29 +08:00
parent d5a4b32848
commit fc0f30c34c
+15
View File
@@ -833,6 +833,21 @@ class treeModel extends model
return html::a(helper::createLink('project', 'story', "projectID={$projectID}&orderBy=&type=byModule&param={$module->id}"), $module->name, '_self', "id='module{$module->id}'");
}
/**
* Create link of requirement for cmmi.
*
* @param string $type
* @param object $module
* @param array $extra
* @access public
* @return string
*/
public function createRequirementLink($type, $module, $extra)
{
$projectID = $extra['projectID'];
return html::a(helper::createLink('project', 'requirement', "projectID={$projectID}&orderBy=&type=byModule&param={$module->id}"), $module->name, '_self', "id='module{$module->id}'");
}
/**
* Create link of a doc.
*