You are here

public function CourseObjectNode::__construct in Course 7

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

Overrides CourseHandler::__construct

File

includes/CourseObjectNode.inc, line 10

Class

CourseObjectNode
A course object that uses a node as a base.

Code

public function __construct($values, $entityType) {
  parent::__construct($values, $entityType);
  if ($this
    ->getInstanceId()) {
    if ($node = node_load($this
      ->getInstanceId())) {
      $this
        ->setNode($node);
    }
  }
}