24 include_once
"./Services/Form/classes/class.ilSubEnabledFormPropertyGUI.php";
60 $this->options = $a_options;
80 $this->value = $a_value;
100 $this->intlink = $a_value;
120 $this->intlinktext = $a_value;
140 $this->addCommand = $a_add_command;
150 return ($this->addCommand) ? $this->addCommand :
"addInternalLink";
176 $this->
setAlert($lng->txt(
"msg_input_is_required"));
192 $template =
new ilTemplate(
"tpl.prop_suggestedsolutionselector.html", TRUE, TRUE,
"Modules/TestQuestionPool");
194 foreach($this->
getOptions() as $option_value => $option_text)
196 $template->setCurrentBlock(
"prop_intlink_select_option");
197 $template->setVariable(
"VAL_SELECT_OPTION", $option_value);
198 if ($option_value == $this->
getValue())
200 $template->setVariable(
"CHK_SEL_OPTION",
201 'selected="selected"');
203 $template->setVariable(
"TXT_SELECT_OPTION", $option_text);
204 $template->parseCurrentBlock();
208 $template->setCurrentBlock(
"delete_internallink");
209 $template->setVariable(
"TEXT_DELETE_INTERNALLINK", $lng->txt(
"remove_solution"));
210 $template->setVariable(
"POST_VAR", $this->
getPostVar());
211 $template->parseCurrentBlock();
212 $template->setCurrentBlock(
"internal_link");
215 $template->parseCurrentBlock();
217 $template->setCurrentBlock(
"prop_internallink_selector");
218 $template->setVariable(
"POST_VAR", $this->
getPostVar());
221 $template->setVariable(
"DISABLED",
222 " disabled=\"disabled\"");
224 $template->setVariable(
"TEXT_ADD_INTERNALLINK", ($this->
getInternalLink()) ? $lng->txt(
"change") : $lng->txt(
"add"));
225 $template->setVariable(
"CMD_ADD_INTERNALLINK", $this->
getAddCommand());
226 $template->parseCurrentBlock();
227 $a_tpl->setCurrentBlock(
"prop_generic");
228 $a_tpl->setVariable(
"PROP_GENERIC", $template->get());
229 $a_tpl->parseCurrentBlock();