You are here

public function Course::getPrev in Course 6

Same name and namespace in other branches
  1. 7.2 includes/Course.inc \Course::getPrev()
  2. 7 includes/Course.inc \Course::getPrev()

Get the previous course object, from the active course object.

Return value

CourseObject

1 call to Course::getPrev()
Course::getNavigation in includes/course.core.inc
Generate navigation links.

File

includes/course.core.inc, line 496
course.core.inc File for main Course class.

Class

Course
An object that holds CourseObjects and tracker functions?

Code

public function getPrev() {
  if (!$this->active) {
    $this
      ->setActive();
  }
  return $this->prev;
}