You are here

function CourseObject::getReport in Course 7

Same name and namespace in other branches
  1. 6 includes/course_object.core.inc \CourseObject::getReport()
  2. 7.2 includes/CourseObject.inc \CourseObject::getReport()

Let the course object provide its own reports.

Return value

array An array containing:

  • title: The title of this report as show on the page
  • content: Content to be displayed.
  • url: URL to be loaded in an iframe.

Reports should return either 'content' or 'url'.

See also

CourseObjectQuiz::getReports()

4 calls to CourseObject::getReport()
CourseObjectPoll::getReport in modules/course_poll/course_poll.classes.inc
Let the course object provide its own reports.
CourseObjectQuiz::getReport in modules/course_quiz/course_quiz.classes.inc
Let the course object provide its own reports.
CourseObjectSignup::getReport in modules/course_signup/course_signup.classes.inc
Let the course object provide its own reports.
CourseObjectWebform::getReport in modules/course_webform/course_webform.classes.inc
Let the course object provide its own reports.
4 methods override CourseObject::getReport()
CourseObjectPoll::getReport in modules/course_poll/course_poll.classes.inc
Let the course object provide its own reports.
CourseObjectQuiz::getReport in modules/course_quiz/course_quiz.classes.inc
Let the course object provide its own reports.
CourseObjectSignup::getReport in modules/course_signup/course_signup.classes.inc
Let the course object provide its own reports.
CourseObjectWebform::getReport in modules/course_webform/course_webform.classes.inc
Let the course object provide its own reports.

File

includes/CourseObject.inc, line 946

Class

CourseObject
Parent abstract base class of all course objects.

Code

function getReport($key) {
  if ($key == 'default') {
    return array(
      'title' => 'Overview',
      'content' => views_embed_view('course_object_report', 'default', $this
        ->getCourseNid(), $this
        ->getId()),
    );
  }
}