ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
save_question_post_data.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
chdir(
"../.."
);
5
require_once
"./include/inc.header.php"
;
6
include_once
"./webservice/soap/include/inc.soap_functions.php"
;
7
$results
=
array
();
8
foreach
(
$_POST
as $key => $value)
9
{
10
if
(preg_match(
"/value_(\d+)_1/"
, $key, $matches))
11
{
12
array_push(
$results
,
$_POST
[
"value_"
. $matches[1] .
"_1"
]);
13
array_push(
$results
,
$_POST
[
"value_"
. $matches[1] .
"_2"
]);
14
array_push(
$results
,
$_POST
[
"points_"
. $matches[1]]);
15
}
16
}
17
$res
=
ilSoapFunctions::saveQuestion
(
$_POST
[
"session_id"
].
"::"
.
$_POST
[
"client"
],$_POST[
"active_id"
], $_POST[
"question_id"
], $_POST[
"pass"
],
$results
);
18
if
(
$res
===
true
)
19
{
20
global
$lng
;
21
$lng->loadLanguageModule(
"assessment"
);
22
echo
$lng->txt(
"result_successful_saved"
);
23
}
24
else
25
{
26
global
$lng
;
27
$lng->loadLanguageModule(
"assessment"
);
28
echo
$lng->txt(
"result_unsuccessful_saved"
);
29
}
30
?>
$res
foreach($_POST as $key=> $value) $res
Definition:
save_question_post_data.php:17
$results
$results
Definition:
save_question_post_data.php:7
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
ilSoapFunctions\saveQuestion
static saveQuestion($sid, $active_id, $question_id, $pass, $solution)
Definition:
inc.soap_functions.php:510
echo
$lng
global $lng
Definition:
privfeed.php:17
php
$_POST
$_POST["username"]
Definition:
cfg.phpunit.template.php:11
Modules
TestQuestionPool
save_question_post_data.php
Generated on Fri Jan 24 2025 19:01:03 for ILIAS by
1.8.13 (using
Doxyfile
)