You are here

public function CourseObjectCertificate::take in Course 6

Same name and namespace in other branches
  1. 7.2 modules/course_certificate/course_certificate.classes.inc \CourseObjectCertificate::take()
  2. 7 modules/course_certificate/course_certificate.classes.inc \CourseObjectCertificate::take()

Overrides CourseObject::take

File

modules/course_certificate/course_certificate.classes.inc, line 5

Class

CourseObjectCertificate

Code

public function take() {

  // Fulfill immediately.
  $this
    ->getFulfillment()
    ->setComplete(1)
    ->save();
  return l('Download certificate', "node/" . $this
    ->getCourseNid() . "/certificate");
}