22        if (is_array($a_value)) {
 
   23            if (is_array($a_value[
'points'])) {
 
   24                foreach ($a_value[
'points'] as $idx => $term) {
 
   25                    $this->pairs[$idx]->points = $a_value[
'points'][$idx];
 
   40        if (is_array($foundvalues)) {
 
   42            foreach ($foundvalues[
'points'] as $val) {
 
   52                $this->
setAlert(
$lng->txt(
"enter_enough_positive_points"));
 
   70        $tpl = 
new ilTemplate(
"tpl.prop_matchingpaircorrection_input.html", 
true, 
true, 
"Modules/TestQuestionPool");
 
   73        foreach ($this->pairs as $pair) {
 
   74            $tpl->setCurrentBlock(
"row");
 
   76            foreach ($this->terms as $term) {
 
   77                if ($pair->term->identifier == $term->identifier) {
 
   78                    $tpl->setVariable(
'TERM', $term->text);
 
   81            foreach ($this->definitions as $definition) {
 
   82                if ($pair->definition->identifier == $definition->identifier) {
 
   83                    $tpl->setVariable(
'DEFINITION', $definition->text);
 
   87            $tpl->setVariable(
'POINTS_VALUE', $pair->points);
 
   88            $tpl->setVariable(
"ROW_NUMBER", 
$i);
 
   93            $tpl->parseCurrentBlock();
 
   98        $tpl->setCurrentBlock(
'term_ids');
 
  100        foreach ($this->terms as $term) {
 
  101            array_push($ids, $term->identifier);
 
  104        $tpl->setVariable(
"TERM_IDS", join(
",", $ids));
 
  105        $tpl->parseCurrentBlock();
 
  107        $tpl->setCurrentBlock(
'definition_ids');
 
  109        foreach ($this->definitions as $definition) {
 
  110            array_push($ids, $definition->identifier);
 
  113        $tpl->setVariable(
"DEFINITION_IDS", join(
",", $ids));
 
  114        $tpl->parseCurrentBlock();
 
  117        $tpl->setVariable(
"TEXT_POINTS", 
$lng->txt(
'points'));
 
  118        $tpl->setVariable(
"TEXT_DEFINITION", 
$lng->txt(
'definition'));
 
  119        $tpl->setVariable(
"TEXT_TERM", 
$lng->txt(
'term'));
 
  120        $tpl->setVariable(
"TEXT_ACTIONS", 
$lng->txt(
'actions'));
 
  122        $a_tpl->setCurrentBlock(
"prop_generic");
 
  123        $a_tpl->setVariable(
"PROP_GENERIC", 
$tpl->get());
 
  124        $a_tpl->parseCurrentBlock();
 
An exception for terminatinating execution or to throw for unit testing.
special template class to simplify handling of ITX/PEAR
static stripSlashesRecursive($a_data, $a_strip_html=true, $a_allow="")
Strip slashes from array and sub-arrays.