75 $attribs = array(
"obj_id" =>
"il_" .
IL_INST_ID .
"_exc_" . $this->exercise->getId() );
77 if ($this->exercise->getOwner() !== 0) {
78 $attribs [
"owner"] =
"il_" .
IL_INST_ID .
"_usr_" . $this->exercise->getOwner();
84 $this->
xmlElement(
"Title",
null, $this->exercise->getTitle());
85 $this->
xmlElement(
"Description",
null, $this->exercise->getDescription());
93 if (count($assignments) > 0) {
94 foreach ($assignments as $assignment) {
96 $this->
xmlElement(
"Instruction",
null, $assignment [
"instruction"]);
97 $this->
xmlElement(
"DueDate",
null, $assignment [
"deadline"]);
100 if ($this->attachMembers) {
136 $this->attachMembers = $value;
149 $astatus = $ass->getMemberStatus(
$user_id)->getStatus();
150 $acomment = $ass->getMemberStatus(
$user_id)->getComment();
151 $anotice = $ass->getMemberStatus(
$user_id)->getNotice();
154 if ($astatus ==
"notgraded") {
156 } elseif ($astatus ==
"failed") {
162 $this->
xmlStartTag(
"Marking", array(
"status" => $status ));
165 $this->
xmlElement(
"Comment",
null, $acomment);
178 private function handleAssignmentMembers(
182 $this->xmlStartTag(
"Members");
184 if (count($members)) {
185 foreach ($members as $member_id) {
186 $this->xmlStartTag(
"Member", array(
"usr_id" =>
"il_" .
IL_INST_ID .
"_usr_" . $member_id ));
190 $this->xmlElement(
"Firstname", array(), $name[
'firstname']);
191 $this->xmlElement(
"Lastname", array(), $name[
'lastname']);
192 $this->xmlElement(
"Login", array(), $name[
'login']);
193 $this->attachMarking($member_id, $assignment_id);
194 $this->xmlEndTag(
"Member");
197 $this->xmlEndTag(
"Members");
static getAssignmentDataOfExercise(int $a_exc_id)
getMemberStatus(?int $a_user_id=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static int $ID_DEFLATE_METHOD_MISMATCH
static _getMembers(int $a_obj_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static int $CONTENT_ATTACH_ENCODED
attachMarking(int $user_id, int $assignment_id)
attach marking tag to member for given assignment
setAttachFileContents(int $attachFileContents)
set attachment content mode
handleAssignmentMembers(int $ex_id, int $assignment_id)
create xml for files per assignment
static string $STATUS_PASSED
handleAssignmentFiles(int $ex_id, int $as_id)
setAttachMembers(bool $value)
write access to property attchMarkings
static int $CONTENT_ATTACH_NO
static string $STATUS_FAILED
static int $CONTENT_ATTACH_ZLIB_ENCODED
static int $CONTENT_ATTACH_GZIP_ENCODED
setExercise(ilObjExercise $exercise)
static string $STATUS_NOT_GRADED
static _lookupName(int $a_user_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
xmlSetGenCmt(string $genCmt)
Sets generated comment.
xmlElement(string $tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content)
xmlHeader()
Writes xml header.
xmlEndTag(string $tag)
Writes an endtag.
xmlDumpMem(bool $format=true)
Returns xml document from memory.
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc