ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
save_question_post_data.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
chdir(
"../.."
);
6
require_once
"./include/inc.header.php"
;
7
include_once
"./webservice/soap/include/inc.soap_functions.php"
;
8
$results
= array();
9
foreach
($_POST as
$key
=> $value) {
10
if
(preg_match(
"/value_(\d+)_1/"
,
$key
, $matches)) {
11
array_push(
$results
, $_POST[
"value_"
. $matches[1] .
"_1"
]);
12
array_push(
$results
, $_POST[
"value_"
. $matches[1] .
"_2"
]);
13
array_push(
$results
, $_POST[
"points_"
. $matches[1]]);
14
}
15
}
16
$res
=
ilSoapFunctions::saveQuestion
($_POST[
"session_id"
] .
"::"
. $_POST[
"client"
], $_POST[
"active_id"
], $_POST[
"question_id"
], $_POST[
"pass"
],
$results
);
17
if
(
$res
===
true
) {
18
global
$DIC
;
19
$lng
= $DIC[
'lng'
];
20
$lng
->loadLanguageModule(
"assessment"
);
21
echo
$lng
->txt(
"result_successful_saved"
);
22
}
else
{
23
global
$DIC
;
24
$lng
= $DIC[
'lng'
];
25
$lng
->loadLanguageModule(
"assessment"
);
26
echo
$lng
->txt(
"result_unsuccessful_saved"
);
27
}
$lng
$lng
Definition:
save_question_post_data.php:24
$DIC
global $DIC
Definition:
feed.php:28
$res
foreach($_POST as $key=> $value) $res
Definition:
save_question_post_data.php:16
ILIAS\LTI\ToolProvider\$key
string $key
Consumer key/client ID value.
Definition:
System.php:193
$results
$results
Definition:
save_question_post_data.php:8
ilSoapFunctions\saveQuestion
static saveQuestion(string $sid, int $active_id, int $question_id, int $pass, array $solution)
Definition:
inc.soap_functions.php:483
Modules
TestQuestionPool
save_question_post_data.php
Generated on Tue Apr 1 2025 22:01:43 for ILIAS by
1.8.13 (using
Doxyfile
)