22        if (is_array($a_value)) {
 
   23            if (is_array($a_value[
'points'])) {
 
   36        include_once 
"./Services/AdvancedEditing/classes/class.ilObjAdvancedEditing.php";
 
   42        if (is_array($foundvalues)) {
 
   45            if (is_array($foundvalues[
'points'])) {
 
   46                foreach ($foundvalues[
'points'] as $points) {
 
   50                    if (((strlen($points)) == 0) || (!is_numeric($points))) {
 
   51                        $this->
setAlert(
$lng->txt(
"form_msg_numeric_value_required"));
 
   57                $this->
setAlert(
$lng->txt(
"enter_enough_positive_points"));
 
   73        $tpl = 
new ilTemplate(
"tpl.prop_singlechoicecorrection_input.html", 
true, 
true, 
"Modules/TestQuestionPool");
 
   77        if ($this->values === 
null) {
 
   81        foreach ($this->values as 
$value) {
 
   82            if ($this->qstObject->isSingleline) {
 
   83                if (strlen(
$value->getImage())) {
 
   84                    $imagename = $this->qstObject->getImagePathWeb() . 
$value->getImage();
 
   85                    if (($this->
getSingleline()) && ($this->qstObject->getThumbSize())) {
 
   86                        if (@file_exists($this->qstObject->getImagePath() . $this->qstObject->getThumbPrefix() . 
$value->getImage())) {
 
   87                            $imagename = $this->qstObject->getImagePathWeb() . $this->qstObject->getThumbPrefix() . 
$value->getImage();
 
   91                    $tpl->setCurrentBlock(
'image');
 
   92                    $tpl->setVariable(
'SRC_IMAGE', $imagename);
 
   93                    $tpl->setVariable(
'IMAGE_NAME', 
$value->getImage());
 
   95                    $tpl->parseCurrentBlock();
 
   97                    $tpl->setCurrentBlock(
'image');
 
   98                    $tpl->touchBlock(
'image');
 
   99                    $tpl->parseCurrentBlock();
 
  103            $tpl->setCurrentBlock(
"answer");
 
  104            $tpl->setVariable(
"ANSWER", 
$value->getAnswertext());
 
  105            $tpl->parseCurrentBlock();
 
  107            $tpl->setCurrentBlock(
"prop_points_propval");
 
  110            $tpl->parseCurrentBlock();
 
  112            $tpl->setCurrentBlock(
"row");
 
  113            $tpl->parseCurrentBlock();
 
  116        if ($this->qstObject->isSingleline) {
 
  117            $tpl->setCurrentBlock(
"image_heading");
 
  118            $tpl->setVariable(
"ANSWER_IMAGE", 
$lng->txt(
'answer_image'));
 
  120            $tpl->parseCurrentBlock();
 
  123        $tpl->setCurrentBlock(
"points_heading");
 
  124        $tpl->setVariable(
"POINTS_TEXT", 
$lng->txt(
'points'));
 
  125        $tpl->parseCurrentBlock();
 
  128        $tpl->setVariable(
"ANSWER_TEXT", 
$lng->txt(
'answer_text'));
 
  130        $a_tpl->setCurrentBlock(
"prop_generic");
 
  131        $a_tpl->setVariable(
"PROP_GENERIC", 
$tpl->get());
 
  132        $a_tpl->parseCurrentBlock();
 
An exception for terminatinating execution or to throw for unit testing.
static _getUsedHTMLTagsAsString($a_module="")
Returns a string of all allowed HTML tags for text editing.
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.
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public