Beispiel #1
0
 /**
  * Constructs with course-module details.
  *
  * @global moodle_database $DB
  * @uses CONDITION_MISSING_NOTHING
  * @param object $section Moodle section object. May have extra fields
  *   ->conditionsgrade, ->conditionscompletion. Should have ->availablefrom,
  *   ->availableuntil, and ->showavailability, ->course; but the only
  *   required thing is ->id.
  * @param int $expectingmissing Used to control whether or not a developer
  *   debugging message (performance warning) will be displayed if some of
  *   the above data is missing and needs to be retrieved; a
  *   CONDITION_MISSING_xx constant
  * @param bool $loaddata If you need a 'write-only' object, set this value
  *   to false to prevent database access from constructor
  */
 public function __construct($section, $expectingmissing = CONDITION_MISSING_NOTHING, $loaddata = true)
 {
     parent::__construct($section, 'course_sections', 'coursesectionid', $expectingmissing, $loaddata);
 }