You are here

function CourseObjectQuiz::getStatus in Course 7.2

Same name and namespace in other branches
  1. 7 modules/course_quiz/course_quiz.classes.inc \CourseObjectQuiz::getStatus()

Get the status of this quiz for the requirements list.

Overrides CourseObject::getStatus

File

modules/course_quiz/course_quiz.classes.inc, line 153

Class

CourseObjectQuiz

Code

function getStatus() {
  global $user;
  $grade = $this
    ->isGraded() ? t('Your grade: %grade_result%<br/>Pass grade: %passing_grade%', array(
    '%grade_result' => $this
      ->getFulfillment($user)
      ->getOption('grade_result'),
    '%passing_grade' => $this
      ->getOption('passing_grade'),
  )) : '';
  return $grade;
}