You are here

public function CourseObject::getTakeType in Course 6

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

How should this course object be executed?

  • iframe: display an iframe with getTakeUrl() in it
  • popup: launch getTakeUrl() in a popup
  • modal: launch getTakeUrl() in a modal
  • content: print the value from take() (or do whatever the module wants to do)
1 call to CourseObject::getTakeType()
CourseObject::takeCourseObject in includes/course_object.core.inc
Take a course object.
2 methods override CourseObject::getTakeType()
CourseObjectCertificate::getTakeType in modules/course_certificate/course_certificate.classes.inc
How should this course object be executed?
CourseObjectNode::getTakeType in includes/course_object.core.inc
Simple node course object behavior is to just redirect to the node.

File

includes/course_object.core.inc, line 587

Class

CourseObject
Parent abstract base class of all course objects.

Code

public function getTakeType() {
  return 'content';
}