From b2aee1f85c2e15b6e4a1cdd2aaeb10b3e3117c3a Mon Sep 17 00:00:00 2001 From: mayue Date: Thu, 31 Aug 2023 09:58:21 +0800 Subject: [PATCH] * Add module link to practice. --- module/tree/model.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/module/tree/model.php b/module/tree/model.php index 4d2239c363..6e4942835d 100644 --- a/module/tree/model.php +++ b/module/tree/model.php @@ -1354,6 +1354,19 @@ class treeModel extends model return html::a(helper::createLink('ticket', $this->app->methodName, "type=byModule¶m={$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. *