-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI check updates and a fwe minor changes.
- Loading branch information
1 parent
0de6d99
commit ef5b2c6
Showing
95 changed files
with
1,608 additions
and
1,286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,21 +25,28 @@ | |
|
||
namespace local_assessfreq\output; | ||
|
||
use local_assessfreq\form\course_search; | ||
use local_assessfreq\report_base; | ||
use plugin_renderer_base; | ||
|
||
/** | ||
* Renderer. | ||
* | ||
* @package local_assessfreq | ||
* @author Simon Thornett <[email protected]> | ||
* @copyright Catalyst IT, 2024 | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
class renderer extends plugin_renderer_base { | ||
/** | ||
* Render each of the assessfreqreport subplugins as tabs to display. | ||
* | ||
* @return void | ||
*/ | ||
public function render_reports() : void { | ||
$reports = get_reports(); | ||
public function render_reports(): void { | ||
$reports = local_assessfreq_get_reports(); | ||
$reportoutputs = []; | ||
foreach ($reports as $report) { | ||
/* @var $report report_base */ | ||
/* @var $report report_base for accessing the report class */ | ||
$reportoutputs[] = [ | ||
'tablink' => $report->get_tablink(), // Plugin name. | ||
'tabname' => $report->get_name(), // Display name. | ||
|
@@ -55,7 +62,7 @@ public function render_reports() : void { | |
$output .= $this->render_from_template( | ||
'local_assessfreq/index', | ||
[ | ||
'reports' => $reportoutputs | ||
'reports' => $reportoutputs, | ||
] | ||
); | ||
$output .= $this->output->footer(); | ||
|
Oops, something went wrong.