You are here

function CourseObject::getInstanceId in Course 7.2

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

Get the instance ID. This could be the external component ID, a Node ID...

Return value

string

16 calls to CourseObject::getInstanceId()
CourseObject::save in includes/CourseObject.inc
Let objects create their instances before saving the course object.
CourseObjectBook::grade in modules/course_book/course_book.classes.inc
Grade (track) the book based on the fulfillment data.
CourseObjectContent::optionsForm in modules/course_content/course_content.classes.inc
Set the default content type to be created.
CourseObjectNode::delete in includes/CourseObjectNode.inc
Destroy the node instance.
CourseObjectNode::freeze in includes/CourseObjectNode.inc
Freeze data to persist over cloning/exporting.

... See full list

File

includes/CourseObject.inc, line 792

Class

CourseObject
Parent abstract base class of all course objects.

Code

function getInstanceId() {
  return $this
    ->getOption('instance');
}