diff --git a/module/tree/model.php b/module/tree/model.php index fdbbdff132..0a93d41ab4 100644 --- a/module/tree/model.php +++ b/module/tree/model.php @@ -1391,6 +1391,21 @@ class treeModel extends model return html::a(helper::createLink('dashboard', 'browse', "type=bymodule¶m={$module->id}"), $module->name, '', "id='module{$module->id}' title='{$module->name}'"); } + /** + * Create report link. + * + * @param string $type + * @param object $module + * @param array $extra + * @access public + * @return string + */ + public function createReportLink($type, $module, $extra) + { + $dimension = zget($extra, 'dimension', 0); + return html::a(helper::createLink('report', 'browsereport', "dimension={$dimension}&module={$module->id}"), $module->name, '', "id='module{$module->id}' title='{$module->name}'"); + } + /** * Get sons of a module. *