public function Course::getPrev in Course 7
Same name and namespace in other branches
- 6 includes/course.core.inc \Course::getPrev()
- 7.2 includes/Course.inc \Course::getPrev()
Get the previous course object, from the active course object.
Return value
1 call to Course::getPrev()
- Course::getNavigation in includes/
Course.inc - Generate navigation links.
File
- includes/
Course.inc, line 126
Class
- Course
- An object that holds CourseObjects and tracker functions?
Code
public function getPrev() {
if (!$this->active) {
$this
->setActive();
}
return $this->prev;
}