4 include_once 
"./Services/Xml/classes/class.ilXmlWriter.php";
 
    5 include_once 
"./Modules/Exercise/classes/class.ilExAssignment.php";
 
   96                 $attribs = array (
"obj_id" => 
"il_" . IL_INST_ID . 
"_exc_" . $this->exercise->getId () );
 
   98                 if ($this->exercise->getOwner ())
 
   99                         $attribs [
"owner"] = 
"il_" . IL_INST_ID . 
"_usr_" . $this->exercise->getOwner ();
 
  113                 if (count ( $assignments ) > 0) {
 
  114                         foreach ( $assignments as $assignment ) {
 
  115                                 $this->
xmlElement ( 
"Title", null, $this->exercise->getTitle ());
 
  116                                 $this->
xmlElement ( 
"Description", null, $this->exercise->getDescription () );
 
  117                                 $this->
xmlElement ( 
"Instruction", null, $assignment [
"instruction"] );
 
  118                                 $this->
xmlElement ( 
"DueDate", null, $assignment [
"deadline"] );
 
  125                         $this->
xmlElement ( 
"Title", null, $this->exercise->getTitle () );
 
  126                         $this->
xmlElement ( 
"Description", null, $this->exercise->getDescription () );
 
  129                 if ($this->attachMembers) {                                     
 
  144                 $this->
xmlSetDtdDef ( 
"<!DOCTYPE Exercise PUBLIC \"-//ILIAS//DTD ExerciseAdministration//EN\" \"" . ILIAS_HTTP_PATH . 
"/xml/ilias_exercise_3_10.dtd\">" );
 
  161                 $this->attachMembers = $value ? 
true : 
false;
 
  178                 if ($astatus == 
"notgraded") {
 
  180                 } elseif ($astatus == 
"failed") {
 
  186                 $this->
xmlStartTag ( 
"Marking", array (
"status" => $status ) );
 
  188                 $this->
xmlElement ( 
"Notice", null, $anotice );
 
  189                 $this->
xmlElement ( 
"Comment", null, $acomment );
 
  195                 include_once (
"./Modules/Exercise/classes/class.ilFSStorageExercise.php");
 
  197                 $files = $storage->getFiles ();
 
  201                                 $this->
xmlStartTag ( 
"File", array (
"size" => $file [
"size"] ) );
 
  202                                 $this->
xmlElement ( 
"Filename", null, $file [
"name"] );
 
  203                                 if ($this->attachFileContents) {
 
  206                                                 $content = @file_get_contents ( 
$filename );
 
  207                                                 $attribs = array (
"mode" => 
"PLAIN" );
 
  209                                                         $attribs = array (
"mode" => 
"ZLIB" );
 
  210                                                         $content = gzcompress ( $content, 9 );
 
  212                                                         $attribs = array (
"mode" => 
"GZIP" );
 
  213                                                         $content = gzencode ( $content, 9 );
 
  215                                                 $content = base64_encode ( $content );
 
  216                                                 $this->
xmlElement ( 
"Content", $attribs, $content );
 
  233                 include_once (
"./Modules/Exercise/classes/class.ilExerciseMembers.php");
 
  235                 if (count ( $members )) {
 
  236                         foreach ( $members as $member_id ) {
 
  237                                 $this->
xmlStartTag ( 
"Member", array (
"usr_id" => 
"il_" . IL_INST_ID . 
"_usr_" . $member_id  ) );
 
  238                                 if (count ($assignments) > 0) {
 
  239                                         foreach($assignments as $assignment) {