* Add module link to practice.

This commit is contained in:
mayue
2023-08-31 09:58:21 +08:00
parent b7fa5788e0
commit b2aee1f85c
+13
View File
@@ -1354,6 +1354,19 @@ class treeModel extends model
return html::a(helper::createLink('ticket', $this->app->methodName, "type=byModule&param={$module->id}"), $module->name, '_self', "id='module{$module->id}' title='{$module->name}'");
}
/**
* Create link of practice.
*
* @param string $type
* @param object $module
* @access public
* @return string
*/
public function createPracticeLink($type, $module)
{
return html::a(helper::createLink('traincourse', $this->app->methodName, "module={$module->id}"), $module->name, '_self', "id='module{$module->id}' title='{$module->name}'");
}
/**
* Create link of trainskill.
*