You are here

public function CourseObjectNode::setNode in Course 6

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

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

Parameters

mixed $node: A node or node ID.

6 calls to CourseObjectNode::setNode()
CourseObjectBook::create in modules/course_book/course_book.classes.inc
Make the book.
CourseObjectNode::create in includes/course_object.core.inc
Creates a course object.
CourseObjectPoll::create in modules/course_poll/course_poll.classes.inc
Creates a course object.
CourseObjectQuiz::create in modules/course_quiz/course_quiz.classes.inc
Create the quiz node and set it as this object's instance.
CourseObjectScorm::create in modules/course_scorm/course_scorm.classes.inc
Creates a course object.

... See full list

File

includes/course_object.core.inc, line 1125

Class

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

Code

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