Skip to content

Commit

Permalink
Update ci workflow and few codechecker errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AnupamaSarjoshi committed Oct 11, 2023
1 parent 2d70391 commit adfd8e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
6 changes: 6 additions & 0 deletions question.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ abstract class qtype_oumatrix_base extends question_graded_automatically {
/** @var array The order of the rows. */
protected $columnorder = null;

/** @var string Single choice or multiple response question type. */
public $inputtype;

/** @var string 'All or none' or 'partial' grading method for multiple response. */
public $grademethod;

abstract public function is_choice_selected($response, $rowkey, $colkey);

abstract public function is_same_response(array $prevresponse, array $newresponse);
Expand Down
10 changes: 0 additions & 10 deletions renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ abstract protected function get_input_value($value);

abstract protected function get_input_id(question_attempt $qa, $value, $columnnumber);

abstract protected function prompt();

/**
* Whether a choice should be considered right or wrong.
* @param question_definition $question the question
Expand Down Expand Up @@ -265,10 +263,6 @@ protected function get_input_id(question_attempt $qa, $value, $columnnumber) {
return $qa->get_qt_field_name('rowanswers' . $value . '_' . $columnnumber);
}

protected function prompt() {
return get_string('selectone', 'qtype_multichoice');
}

public function correct_response(question_attempt $qa) {
$question = $qa->get_question();
$right = [];
Expand Down Expand Up @@ -367,10 +361,6 @@ protected function get_input_id(question_attempt $qa, $value, $columnnumber) {
return $this->get_input_name($qa, $value, $columnnumber);
}

protected function prompt() {
return get_string('selectmulti', 'qtype_multichoice');
}

public function correct_response(question_attempt $qa) {
$question = $qa->get_question();
foreach ($question->rows as $row) {
Expand Down

0 comments on commit adfd8e7

Please sign in to comment.