ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct () | |
setExercise (ilObjExercise $exercise) | |
setAttachFileContents (int $attachFileContents) | |
set attachment content mode More... | |
start () | |
getXML () | |
__buildHeader () | |
__buildFooter () | |
setAttachMembers (bool $value) | |
write access to property attchMarkings More... | |
![]() | |
__construct (string $version="1.0", string $outEnc="utf-8", string $inEnc="utf-8") | |
xmlSetDtdDef (string $dtdDef) | |
Sets dtd definition. More... | |
xmlSetGenCmt (string $genCmt) | |
Sets generated comment. More... | |
xmlFormatData (string $data) | |
Indents text for better reading. More... | |
xmlHeader () | |
Writes xml header. More... | |
xmlStartTag (string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true) | |
Writes a starttag. More... | |
xmlEndTag (string $tag) | |
Writes an endtag. More... | |
xmlData (string $data, bool $encode=true, bool $escape=true) | |
Writes data. More... | |
xmlElement (string $tag, $attrs=null, $data=null, $encode=true, $escape=true) | |
Writes a basic element (no children, just textual content) More... | |
xmlDumpFile (string $file, bool $format=true) | |
Dumps xml document from memory into a file. More... | |
xmlDumpMem (bool $format=true) | |
Returns xml document from memory. More... | |
appendXML (string $a_str) | |
append xml string to document More... | |
xmlClear () | |
clears xmlStr More... | |
Data Fields | |
bool | $attachFileContents |
bool | $attachMembers |
ilObjExercise | $exercise |
Static Public Attributes | |
static int | $CONTENT_ATTACH_NO = 0 |
static int | $CONTENT_ATTACH_ENCODED = 1 |
static int | $CONTENT_ATTACH_ZLIB_ENCODED = 2 |
static int | $CONTENT_ATTACH_GZIP_ENCODED = 3 |
static string | $STATUS_NOT_GRADED = "NOT_GRADED" |
static string | $STATUS_PASSED = "PASSED" |
static string | $STATUS_FAILED = "FAILED" |
Private Member Functions | |
attachMarking (int $user_id, int $assignment_id) | |
attach marking tag to member for given assignment More... | |
handleAssignmentFiles (int $ex_id, int $as_id) | |
handleAssignmentMembers (int $ex_id, int $assignment_id) | |
create xml for files per assignment More... | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning XML writer class Class to simplify manual writing of xml documents. It only supports writing xml sequentially, because the xml document is saved in a string with no additional structure information. The author is responsible for well-formedness and validity of the xml document.
Definition at line 27 of file class.ilExerciseXMLWriter.php.
ilExerciseXMLWriter::__construct | ( | ) |
Definition at line 42 of file class.ilExerciseXMLWriter.php.
References $CONTENT_ATTACH_NO, and ILIAS\GlobalScreen\Provider\__construct().
ilExerciseXMLWriter::__buildFooter | ( | ) |
Definition at line 127 of file class.ilExerciseXMLWriter.php.
Referenced by start().
ilExerciseXMLWriter::__buildHeader | ( | ) |
Definition at line 119 of file class.ilExerciseXMLWriter.php.
References ilXmlWriter\xmlHeader(), and ilXmlWriter\xmlSetGenCmt().
Referenced by start().
|
private |
attach marking tag to member for given assignment
Definition at line 142 of file class.ilExerciseXMLWriter.php.
References $STATUS_FAILED, $STATUS_NOT_GRADED, $STATUS_PASSED, null, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by handleAssignmentMembers().
ilExerciseXMLWriter::getXML | ( | ) |
Definition at line 114 of file class.ilExerciseXMLWriter.php.
References ilXmlWriter\xmlDumpMem().
|
private |
Definition at line 169 of file class.ilExerciseXMLWriter.php.
Referenced by start().
|
private |
create xml for files per assignment
Definition at line 178 of file class.ilExerciseXMLWriter.php.
References ilExerciseMembers\_getMembers(), ilObjUser\_lookupName(), attachMarking(), IL_INST_ID, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by start().
ilExerciseXMLWriter::setAttachFileContents | ( | int | $attachFileContents | ) |
set attachment content mode
ilExerciseException | if mode is not supported |
Definition at line 59 of file class.ilExerciseXMLWriter.php.
References $attachFileContents, $CONTENT_ATTACH_GZIP_ENCODED, $CONTENT_ATTACH_ZLIB_ENCODED, and ilExerciseException\$ID_DEFLATE_METHOD_MISMATCH.
ilExerciseXMLWriter::setAttachMembers | ( | bool | $value | ) |
write access to property attchMarkings
Definition at line 134 of file class.ilExerciseXMLWriter.php.
ilExerciseXMLWriter::setExercise | ( | ilObjExercise | $exercise | ) |
ilExerciseXMLWriter::start | ( | ) |
Definition at line 71 of file class.ilExerciseXMLWriter.php.
References __buildFooter(), __buildHeader(), ilExAssignment\getAssignmentDataOfExercise(), handleAssignmentFiles(), handleAssignmentMembers(), IL_INST_ID, null, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
bool ilExerciseXMLWriter::$attachFileContents |
Definition at line 38 of file class.ilExerciseXMLWriter.php.
Referenced by setAttachFileContents().
bool ilExerciseXMLWriter::$attachMembers |
Definition at line 39 of file class.ilExerciseXMLWriter.php.
|
static |
Definition at line 30 of file class.ilExerciseXMLWriter.php.
|
static |
Definition at line 32 of file class.ilExerciseXMLWriter.php.
Referenced by setAttachFileContents().
|
static |
Definition at line 29 of file class.ilExerciseXMLWriter.php.
Referenced by __construct().
|
static |
Definition at line 31 of file class.ilExerciseXMLWriter.php.
Referenced by setAttachFileContents().
ilObjExercise ilExerciseXMLWriter::$exercise |
Definition at line 40 of file class.ilExerciseXMLWriter.php.
Referenced by setExercise().
|
static |
Definition at line 36 of file class.ilExerciseXMLWriter.php.
Referenced by attachMarking().
|
static |
Definition at line 34 of file class.ilExerciseXMLWriter.php.
Referenced by attachMarking(), and ilExerciseXMLParser\handlerBeginTag().
|
static |
Definition at line 35 of file class.ilExerciseXMLWriter.php.
Referenced by attachMarking(), and ilExerciseXMLParser\handlerBeginTag().