• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

assessment/save_question_post_data.php

Go to the documentation of this file.
00001 <?php
00002 chdir("..");
00003 include_once "./webservice/soap/include/inc.soap_functions.php";
00004 $results = array();
00005 foreach ($_POST as $key => $value)
00006 {
00007         if (preg_match("/value_(\d+)_1/", $key, $matches))
00008         {
00009                 array_push($results, $_POST["value_" . $matches[1] . "_1"]);
00010                 array_push($results, $_POST["value_" . $matches[1] . "_2"]);
00011                 array_push($results, $_POST["points_" . $matches[1]]);
00012         }
00013 }
00014 $res = saveQuestionResult($_POST["session_id"]."::".$_POST["client"],$_POST["user_id"], $_POST["test_id"], $_POST["question_id"], $_POST["pass"], $results);
00015 if ($res === true)
00016 {
00017         global $lng;
00018         $lng->loadLanguageModule("assessment");
00019         echo $lng->txt("result_successful_saved");
00020 }
00021 else
00022 {
00023         global $lng;
00024         $lng->loadLanguageModule("assessment");
00025         echo $lng->txt("result_unsuccessful_saved");
00026 }
00027 ?>

Generated on Fri Dec 13 2013 13:52:06 for ILIAS Release_3_7_x_branch .rev 46817 by  doxygen 1.7.1