dirroot}/mod/techproject/lib.php"); // for parameter arrays require_once("{$CFG->dirroot}/mod/techproject/locallib.php"); // for parameter arrays // ...and fill the form if needed if (empty($form->name)) { $form->name = ""; } if (empty($form->description)) { $form->description = ""; } if (empty($form->format)) { $form->format = ""; } if (empty($form->projectstart)) { $form->projectstart = time(); } if (empty($form->assessmentstart)) { $form->assessmentstart = time(); } if (empty($form->projectend)) { $form->projectend = time(); } if (empty($form->timeunit)) { $form->timeunit = time(); } if (empty($form->guestsallowed)) { $form->guestsallowed = 1; } if (empty($form->guestscanuse)) { $form->guestscanuse = 0; } if (empty($form->ungroupedsees)) { $form->ungroupedsees = 0; } if (empty($form->allowdeletewhenassigned)) { $form->allowdeletewhenassigned = 1; } if (empty($form->projectusesrequs)) { $form->projectusesrequs = 1; } if (empty($form->projectusesspecs)) { $form->projectusesrequs = 1; } if (empty($form->teacherusescriteria)) { $form->teacherusescriteria = 0; } if (empty($form->allownotifications)) { $form->allownotifications = 0; } if (empty($form->autogradingenabled)) { $form->autogradingenabled = 0; } if (empty($form->autogradingweight)) { $form->autogradingweight = 0; } if (!isset($form->grade)) { $form->grade = 100; } if (empty($form->enablecvs)) { $form->enablecvs = 0; } ?>