You are here

public function CourseObject::isActive in Course 7

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

File

includes/CourseObject.inc, line 174

Class

CourseObject
Parent abstract base class of all course objects.

Code

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