4include_once 
"./Modules/TestQuestionPool/classes/class.ilSingleChoiceWizardInputGUI.php";
 
   15        $this->values = array();
 
   16        if (is_array($a_value)) {
 
   17            if (is_array($a_value[
'answer'])) {
 
   19                    include_once 
"./Modules/TestQuestionPool/classes/class.assAnswerMultipleResponseImage.php";
 
   21                    array_push($this->values, $answer);
 
   37        include_once 
"./Services/AdvancedEditing/classes/class.ilObjAdvancedEditing.php";
 
   48        if (is_array($foundvalues)) {
 
   50            if (is_array($foundvalues[
'answer'])) {
 
   51                foreach ($foundvalues[
'answer'] as $aidx => $answervalue) {
 
   52                    if (((strlen($answervalue)) == 0) && (strlen($foundvalues[
'imagename'][$aidx]) == 0)) {
 
   60            if (is_array($foundvalues[
'points'])) {
 
   61                foreach ($foundvalues[
'points'] as $points) {
 
   65                    if (((strlen($points)) == 0) || (!is_numeric($points))) {
 
   66                        $this->
setAlert(
$lng->txt(
"form_msg_numeric_value_required"));
 
   72                $this->
setAlert(
$lng->txt(
"enter_enough_positive_points"));
 
   93        $tpl = 
new ilTemplate(
"tpl.prop_essaykeywordswizardinput.html", 
true, 
true, 
"Modules/TestQuestionPool");
 
   95        foreach ($this->values as 
$value) {
 
   98                    $tpl->setCurrentBlock(
"prop_text_propval");
 
  100                    $tpl->parseCurrentBlock();
 
  101                    $tpl->setCurrentBlock(
"prop_points_propval");
 
  103                    $tpl->parseCurrentBlock();
 
  105                $tpl->setCurrentBlock(
'singleline');
 
  107                $tpl->setVariable(
"SINGLELINE_ID", $this->
getPostVar() . 
"[answer][$i]");
 
  108                $tpl->setVariable(
"SINGLELINE_ROW_NUMBER", 
$i);
 
  112                    $tpl->setVariable(
"DISABLED_SINGLELINE", 
" disabled=\"disabled\"");
 
  114                $tpl->parseCurrentBlock();
 
  118                        $tpl->setCurrentBlock(
"prop_points_propval");
 
  120                        $tpl->parseCurrentBlock();
 
  125            $tpl->setCurrentBlock(
"row");
 
  127            $tpl->setVariable(
"ROW_NUMBER", 
$i);
 
  129            $tpl->setVariable(
"POINTS_ID", $this->
getPostVar() . 
"[points][$i]");
 
  130            $tpl->setVariable(
"CMD_ADD", 
"cmd[add" . $this->
getFieldId() . 
"][$i]");
 
  131            $tpl->setVariable(
"CMD_REMOVE", 
"cmd[remove" . $this->
getFieldId() . 
"][$i]");
 
  133                $tpl->setVariable(
"DISABLED_POINTS", 
" disabled=\"disabled\"");
 
  137            $tpl->parseCurrentBlock();
 
  142        $tpl->setVariable(
"TEXT_YES", 
$lng->txt(
'yes'));
 
  143        $tpl->setVariable(
"TEXT_NO", 
$lng->txt(
'no'));
 
  144        $tpl->setVariable(
"DELETE_IMAGE_HEADER", 
$lng->txt(
'delete_image_header'));
 
  145        $tpl->setVariable(
"DELETE_IMAGE_QUESTION", 
$lng->txt(
'delete_image_question'));
 
  146        $tpl->setVariable(
"ANSWER_TEXT", 
$lng->txt(
'answer_text'));
 
  147        $tpl->setVariable(
"POINTS_TEXT", 
$lng->txt(
'points'));
 
  148        $tpl->setVariable(
"COMMANDS_TEXT", 
$lng->txt(
'actions'));
 
  149        $tpl->setVariable(
"POINTS_CHECKED_TEXT", 
$lng->txt(
'checkbox_checked'));
 
  151        $a_tpl->setCurrentBlock(
"prop_generic");
 
  152        $a_tpl->setVariable(
"PROP_GENERIC", 
$tpl->get());
 
  153        $a_tpl->parseCurrentBlock();
 
  157        $tpl->addJavascript(
"./Services/Form/js/ServiceFormWizardInput.js");
 
  158        $tpl->addJavascript(
"./Modules/TestQuestionPool/templates/default/essaykeywordwizard.js");
 
ASS_AnswerBinaryStateImage is a class for answers with a binary state indicator (checked/unchecked,...
An exception for terminatinating execution or to throw for unit testing.
static get($a_glyph, $a_text="")
Get glyph html.
static _getUsedHTMLTagsAsString($a_module="")
Returns a string of all allowed HTML tags for text editing.
special template class to simplify handling of ITX/PEAR
getMaxLength()
Get Max Length.
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