You are here

public function Course::getNext in Course 6

Same name and namespace in other branches
  1. 7.2 includes/Course.inc \Course::getNext()
  2. 7 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.core.inc
Generate navigation links.

File

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

Class

Course
An object that holds CourseObjects and tracker functions?

Code

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