function CourseObject::setInstanceId in Course 7.2
Same name and namespace in other branches
- 6 includes/course_object.core.inc \CourseObject::setInstanceId()
- 7 includes/CourseObject.inc \CourseObject::setInstanceId()
Set this object's instance ID.
Parameters
string $id The external ID of this course object.:
4 calls to CourseObject::setInstanceId()
- CourseObject::save in includes/
CourseObject.inc - Let objects create their instances before saving the course object.
- CourseObjectNode::create in includes/
CourseObjectNode.inc - Create a node and set it as this course object's node.
- CourseObjectNode::save in includes/
CourseObjectNode.inc - On object write, set privacy on this node.
- CourseObjectNode::thaw in includes/
CourseObjectNode.inc - Thaw data frozen from an earlier export/clone.
File
- includes/
CourseObject.inc, line 801
Class
- CourseObject
- Parent abstract base class of all course objects.
Code
function setInstanceId($id) {
return $this
->setOption('instance', $id);
}