ILIAS
release_4-3 Revision
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
save_question_post_data.php
Go to the documentation of this file.
1
<?php
2
chdir(
"../.."
);
3
require_once
"./include/inc.header.php"
;
4
include_once
"./webservice/soap/include/inc.soap_functions.php"
;
5
$results
= array();
6
foreach
(
$_POST
as $key => $value)
7
{
8
if
(preg_match(
"/value_(\d+)_1/"
, $key, $matches))
9
{
10
array_push(
$results
,
$_POST
[
"value_"
. $matches[1] .
"_1"
]);
11
array_push(
$results
,
$_POST
[
"value_"
. $matches[1] .
"_2"
]);
12
array_push(
$results
,
$_POST
[
"points_"
. $matches[1]]);
13
}
14
}
15
$res
=
ilSoapFunctions::saveQuestion
(
$_POST
[
"session_id"
].
"::"
.
$_POST
[
"client"
],$_POST[
"active_id"
], $_POST[
"question_id"
], $_POST[
"pass"
],
$results
);
16
if
(
$res
===
true
)
17
{
18
global
$lng
;
19
$lng->loadLanguageModule(
"assessment"
);
20
echo $lng->txt(
"result_successful_saved"
);
21
}
22
else
23
{
24
global
$lng
;
25
$lng->loadLanguageModule(
"assessment"
);
26
echo $lng->txt(
"result_unsuccessful_saved"
);
27
}
28
?>
Modules
TestQuestionPool
save_question_post_data.php
Generated on Sat Apr 30 2016 19:00:48 for ILIAS by
1.8.1.2 (using
Doxyfile
)