/** * Assign a user to the ephorus * * @param int $a_user_id user id */ function assignMember($a_user_id) { global $ilDB; $tmp_user = ilObjectFactory::getInstanceByObjId($a_user_id); $tmp_user->addDesktopItem($this->getRefId(), "eph"); $ilDB->manipulate("DELETE FROM rep_robj_xeph_members " . "WHERE obj_id = " . $ilDB->quote($this->getObjId(), "integer") . " " . "AND user_id = " . $ilDB->quote($a_user_id, "integer") . " "); // @todo: some of this fields may not be needed anymore $ilDB->manipulateF("INSERT INTO rep_robj_xeph_members (obj_id, user_id, status, sent, feedback) " . " VALUES (%s,%s,%s,%s,%s)", array("integer", "integer", "text", "integer", "integer"), array($this->getObjId(), $a_user_id, 'notgraded', 0, 0)); include_once "./Customizing/global/plugins/Services/Repository/RepositoryObject/Ephorus/classes/class.ilEphAssignment.php"; ilEphAssignment::createNewUserRecords($a_user_id, $this->getObjId()); $this->read(); //include_once("./Services/Tracking/classes/class.ilLPStatusWrapper.php"); //ilLPStatusWrapper::_updateStatus($this->getObjId(), $a_user_id); return true; }