76 $attribs = array(
"obj_id" =>
"il_" .
IL_INST_ID .
"_exc_" . $this->exercise->getId() );
78 if ($this->exercise->getOwner() !== 0) {
79 $attribs [
"owner"] =
"il_" .
IL_INST_ID .
"_usr_" . $this->exercise->getOwner();
85 $this->
xmlElement(
"Title",
null, $this->exercise->getTitle());
86 $this->
xmlElement(
"Description",
null, $this->exercise->getDescription());
94 if (count($assignments) > 0) {
95 foreach ($assignments as $assignment) {
97 $this->
xmlElement(
"Instruction",
null, $assignment [
"instruction"]);
98 $this->
xmlElement(
"DueDate",
null, $assignment [
"deadline"]);
101 if ($this->attachMembers) {
137 $this->attachMembers = $value;
150 $astatus = $ass->getMemberStatus(
$user_id)->getStatus();
151 $acomment = $ass->getMemberStatus(
$user_id)->getComment();
152 $anotice = $ass->getMemberStatus(
$user_id)->getNotice();
155 if ($astatus ==
"notgraded") {
157 } elseif ($astatus ==
"failed") {
163 $this->
xmlStartTag(
"Marking", array(
"status" => $status ));
166 $this->
xmlElement(
"Comment",
null, $acomment);
179 private function handleAssignmentMembers(
183 $this->xmlStartTag(
"Members");
185 if (count($members)) {
186 foreach ($members as $member_id) {
187 $this->xmlStartTag(
"Member", array(
"usr_id" =>
"il_" .
IL_INST_ID .
"_usr_" . $member_id ));
191 $this->xmlElement(
"Firstname", array(), $name[
'firstname']);
192 $this->xmlElement(
"Lastname", array(), $name[
'lastname']);
193 $this->xmlElement(
"Login", array(), $name[
'login']);
194 $this->attachMarking($member_id, $assignment_id);
195 $this->xmlEndTag(
"Member");
198 $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