MDL-29481: start implementing rubric editor
[moodle.git] / grade / grading / form / rubric / renderer.php
CommitLineData
c586d2bf
MG
1<?php
2
3// This file is part of Moodle - http://moodle.org/
4//
5// Moodle is free software: you can redistribute it and/or modify
6// it under the terms of the GNU General Public License as published by
7// the Free Software Foundation, either version 3 of the License, or
8// (at your option) any later version.
9//
10// Moodle is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// You should have received a copy of the GNU General Public License
16// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
17
18/**
19 * @package gradingform
20 * @subpackage rubric
21 * @copyright 2011 Marina Glancy
22 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
23 */
24
25
26defined('MOODLE_INTERNAL') || die();
27
28/**
29 * Grading method plugin renderer
30 */
31class gradingform_rubric_renderer extends gradingform_renderer {
32
33 /**
34 * Renders grading widget
35 *
36 * @param gradingform_random_widget $widget
37 * @return string HTML
38 */
39 protected function render_gradingform_rubric_widget(gradingform_rubric_widget $widget) {
40
41 $button = html_writer::tag('button', 'Loading ...', array('type' => 'button', 'value' => 'Go'));
42 $span = html_writer::tag('span', '');
43
44 return $this->output->container($button.$span, 'gradingform_rubric-widget-wrapper', 1);
45 }
46}