MDL-63277 qtype_ddwtos: removed unneeded qtype_classname method
This commit is contained in:
@@ -36,10 +36,6 @@ require_once($CFG->dirroot . '/question/type/gapselect/rendererbase.php');
|
||||
*/
|
||||
class qtype_ddwtos_renderer extends qtype_elements_embedded_in_question_text_renderer {
|
||||
|
||||
protected function qtext_classname() {
|
||||
return 'qtext ddwtos_questionid_for_javascript';
|
||||
}
|
||||
|
||||
public function formulation_and_controls(question_attempt $qa,
|
||||
question_display_options $options) {
|
||||
global $PAGE;
|
||||
|
||||
@@ -59,8 +59,7 @@ abstract class qtype_elements_embedded_in_question_text_renderer
|
||||
}
|
||||
|
||||
$result = '';
|
||||
$result .= html_writer::tag('div', $questiontext,
|
||||
array('class' => $this->qtext_classname(), 'id' => $this->qtext_id($qa)));
|
||||
$result .= html_writer::tag('div', $questiontext, array('class' => 'qtext'));
|
||||
|
||||
$result .= $this->post_qtext_elements($qa, $options);
|
||||
|
||||
@@ -99,10 +98,6 @@ abstract class qtype_elements_embedded_in_question_text_renderer
|
||||
return $glues;
|
||||
}
|
||||
|
||||
protected function qtext_classname() {
|
||||
return 'qtext';
|
||||
}
|
||||
|
||||
protected function qtext_id($qa) {
|
||||
return str_replace(':', '_', $qa->get_qt_field_name(''));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user