38 if (is_array($a_value)) {
39 if (is_array($a_value[
'points'])) {
41 $this->values[
$index]->setPoints($a_value[
'points'][
$index]);
58 if (is_array($foundvalues)) {
61 if (is_array($foundvalues[
'points'])) {
62 foreach ($foundvalues[
'points'] as $points) {
66 if (((strlen($points)) == 0) || (!is_numeric($points))) {
67 $this->
setAlert(
$lng->txt(
"form_msg_numeric_value_required"));
71 if (trim($points) !=
"" &&
79 if (trim($points) !=
"" &&
90 $this->
setAlert(
$lng->txt(
"enter_enough_positive_points"));
106 $tpl =
new ilTemplate(
"tpl.prop_textsubsetcorrection_input.html",
true,
true,
"Modules/TestQuestionPool");
108 foreach ($this->values as
$value) {
110 $tpl->setCurrentBlock(
"points");
112 $tpl->setVariable(
"ROW_NUMBER",
$i);
113 $tpl->setVariable(
"POINTS_ID", $this->
getPostVar() .
"[points][$i]");
115 $tpl->parseCurrentBlock();
118 $tpl->setCurrentBlock(
"row");
120 $tpl->parseCurrentBlock();
131 $a_tpl->setCurrentBlock(
"prop_generic");
132 $a_tpl->setVariable(
"PROP_GENERIC",
$tpl->get());
133 $a_tpl->parseCurrentBlock();
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
special template class to simplify handling of ITX/PEAR