You are here

public function CourseObject::getTakeType in Course 7

Same name and namespace in other branches
  1. 6 includes/course_object.core.inc \CourseObject::getTakeType()
  2. 7.2 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/CourseObject.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/CourseObjectNode.inc
Simple node course object behavior is to just redirect to the node.

File

includes/CourseObject.inc, line 610

Class

CourseObject
Parent abstract base class of all course objects.

Code

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