Пример #1
0
 /**
  * was: setStatusForMember($a_member_id,$a_status)
  */
 function updateStatusOfUser($a_ass_id, $a_user_id, $a_status)
 {
     global $ilDB;
     $ilDB->manipulateF("UPDATE exc_mem_ass_status " . "SET status = %s, status_time= %s " . " WHERE ass_id = %s AND usr_id = %s AND status <> %s ", array("text", "timestamp", "integer", "integer", "text"), array($a_status, ilUtil::now(), $a_ass_id, $a_user_id, $a_status));
     $ass = new ilExAssignment($a_ass_id);
     $exc = new ilObjExercise($ass->getExerciseId(), false);
     $exc->updateUserStatus($a_user_id);
 }