function CourseObject::setInstanceId in Course 6
Same name and namespace in other branches
- 7.2 includes/CourseObject.inc \CourseObject::setInstanceId()
- 7 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/
course_object.core.inc - Let objects create their instances before saving the course object.
- CourseObjectNode::setNode in includes/
course_object.core.inc - Set the node and instance ID (node ID) of this CourseObjectNode.
File
- includes/
course_object.core.inc, line 680
Class
- CourseObject
- Parent abstract base class of all course objects.
Code
function setInstanceId($id) {
return $this
->setOption('instance', $id);
}