You are here

function CourseObject::setInstanceId in Course 7

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

Set this object's instance ID.

Parameters

mixed $id The external ID of this course object.:

2 calls to CourseObject::setInstanceId()
CourseObject::save in includes/CourseObject.inc
Let objects create their instances before saving the course object.
CourseObjectNode::setInstanceId in includes/CourseObjectNode.inc
When setting our instance ID, also set the node.
1 method overrides CourseObject::setInstanceId()
CourseObjectNode::setInstanceId in includes/CourseObjectNode.inc
When setting our instance ID, also set the node.

File

includes/CourseObject.inc, line 738

Class

CourseObject
Parent abstract base class of all course objects.

Code

function setInstanceId($id) {
  return $this
    ->setOption('instance', $id);
}