/** * Returns the main module page link for a given module with given parameters. * @param String $module name of the module. * @param Array $args arguments for the module main page. * @param String $basedir a relative path to be prefixed to the module page (for inclusion in different contexts). */ public static function pageLinkForModule($module, $args, $basedir = "") { return $basedir . "modulepage.php?module_name=" . urlencode($module) . "&args=" . \creamy\ModuleHandler::encodeModuleArguments($args); }