public function no_questions_message($canedit, $editurl) {
        $output = '';
        $output .= $this->notification(get_string('noquestions', 'quiz'));
        if ($canedit) {
            $output .= $this->single_button($editurl, get_string('editquiz', 'quiz'), 'get');
        }

        return $output;
    }
public function no_questions_message($canedit, $editurl) {
        $output = '';
        $output .= $this->notification(get_string('noquestions', 'quiz'));
        if ($canedit) {
            $output .= $this->single_button($editurl, get_string('editquiz', 'quiz'), 'get');
        }

        return $output;
    }
public function no_questions_message ( $ canedit , $ editurl ) { $ output = '' ; $ output .= $ this -> notification ( get_string ( 'noquestions' , 'quiz' ) ) ; if ( $ canedit ) { $ output .= $ this -> single_button ( $ editurl , get_string ( 'editquiz' , 'quiz' ) , 'get' ) ; } return $ output ; }
Generate a message saying that this quiz has no questions, with a button to
go to the edit page, if the user has the right capability.
@param object $quiz the quiz settings.
@param object $cm the course_module object.
@param object $context the quiz context.
@return string HTML to output.
Generate a message saying that this quiz has no questions with a button to go to the edit page if the user has the right capability .