35         if (is_array($a_value)) {
    36             if (is_array($a_value[
'points'])) {
    37                 foreach ($a_value[
'points'] as $index => 
$value) {
    38                     $this->values[$index]->setPoints(
$value);
    50         if (is_array($foundvalues)) {
    53             if (is_array($foundvalues[
'points'])) {
    54                 foreach ($foundvalues[
'points'] as $points) {
    55                     $points = str_replace(
',', 
'.', $points);
    59                     if (((strlen($points)) == 0) || (!is_numeric($points))) {
    80         $lng = $DIC->language();
    82         $tpl = 
new ilTemplate(
"tpl.prop_singlechoicecorrection_input.html", 
true, 
true, 
"Modules/TestQuestionPool");
    86         if ($this->values === null) {
    90         foreach ($this->values as 
$value) {
    91             if ($this->qstObject->isSingleline()) {
    92                 if ($value->hasImage()) {
    93                     $imagename = $this->qstObject->getImagePathWeb() . $value->getImage();
    94                     if (($this->
getSingleline()) && ($this->qstObject->getThumbSize())) {
    95                         if (@file_exists($this->qstObject->getImagePath() . $this->qstObject->getThumbPrefix() . $value->getImage())) {
    96                             $imagename = $this->qstObject->getImagePathWeb() . $this->qstObject->getThumbPrefix() . $value->getImage();
   100                     $tpl->setCurrentBlock(
'image');
   101                     $tpl->setVariable(
'SRC_IMAGE', $imagename);
   102                     $tpl->setVariable(
'IMAGE_NAME', $value->getImage());
   104                     $tpl->parseCurrentBlock();
   106                     $tpl->setCurrentBlock(
'image');
   107                     $tpl->touchBlock(
'image');
   108                     $tpl->parseCurrentBlock();
   112             $tpl->setCurrentBlock(
"answer");
   113             $tpl->setVariable(
"ANSWER", $value->getAnswertext());
   114             $tpl->parseCurrentBlock();
   116             $tpl->setCurrentBlock(
"prop_points_propval");
   117             $tpl->setVariable(
"POINTS_POST_VAR", $this->
getPostVar());
   119             $tpl->parseCurrentBlock();
   121             $tpl->setCurrentBlock(
"row");
   122             $tpl->parseCurrentBlock();
   125         if ($this->qstObject->isSingleline()) {
   126             $tpl->setCurrentBlock(
"image_heading");
   127             $tpl->setVariable(
"ANSWER_IMAGE", 
$lng->
txt(
'answer_image'));
   129             $tpl->parseCurrentBlock();
   132         $tpl->setCurrentBlock(
"points_heading");
   133         $tpl->setVariable(
"POINTS_TEXT", 
$lng->
txt(
'points'));
   134         $tpl->parseCurrentBlock();
   136         $tpl->setVariable(
"ELEMENT_ID", $this->
getPostVar());
   137         $tpl->setVariable(
"ANSWER_TEXT", 
$lng->
txt(
'answer_text'));
 parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
setVariable($variable, $value='')
Sets a variable value. 
 
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)