You are here

public function CourseObject::isActive in Course 6

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

File

includes/course_object.core.inc, line 203

Class

CourseObject
Parent abstract base class of all course objects.

Code

public function isActive() {
  return $this
    ->getCourse()
    ->current()
    ->getId() == $this
    ->getId();
}