Esempio n. 1
0
 /**
  * add course admin after import file
  * @return 
  */
 protected function afterImport(ilObject $a_new_object)
 {
     global $ilUser;
     // #11895
     include_once './Modules/Course/classes/class.ilCourseParticipants.php';
     $part = ilCourseParticipants::_getInstanceByObjId($a_new_object->getId());
     $part->add($ilUser->getId(), ilCourseConstants::CRS_ADMIN);
     $part->updateNotification($ilUser->getId(), 1);
     parent::afterImport($a_new_object);
 }
 /**
  * add course admin after import file
  * @return 
  */
 protected function afterImport(ilObject $a_new_object)
 {
     global $ilUser;
     $part = new ilCourseParticipants($a_new_object->getId());
     $part->add($ilUser->getId(), ilCourseConstants::CRS_ADMIN);
     $part->updateNotification($ilUser->getId(), 1);
     parent::afterImport($a_new_object);
 }