You are here

public function Course::getNext in Course 7

Same name and namespace in other branches
  1. 6 includes/course.core.inc \Course::getNext()
  2. 7.2 includes/Course.inc \Course::getNext()

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

Return value

CourseObject

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

File

includes/Course.inc, line 113

Class

Course
An object that holds CourseObjects and tracker functions?

Code

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