You are here

public function CourseObjectNode::setNode in Course 7

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

Set the node and instance ID (node ID) of this CourseObjectNode.

Parameters

mixed $node: A node or node ID.

2 calls to CourseObjectNode::setNode()
CourseObjectNode::create in includes/CourseObjectNode.inc
Create a node and set it as this course object's node.
CourseObjectNode::__construct in includes/CourseObjectNode.inc

File

includes/CourseObjectNode.inc, line 119

Class

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

Code

public function setNode($node) {
  $this->node = clone $node;
  $this
    ->setInstanceId($this->node->nid);
}