53        $this->options = $a_options;
 
   73        $this->value = $a_value;
 
   93        $this->intlink = $a_value;
 
  113        $this->intlinktext = $a_value;
 
  133        $this->addCommand = $a_add_command;
 
  143        return ($this->addCommand) ? $this->addCommand : 
"addInternalLink";
 
  180        $template = 
new ilTemplate(
"tpl.prop_suggestedsolutionselector.html", 
true, 
true, 
"Modules/TestQuestionPool");
 
  182        foreach ($this->
getOptions() as $option_value => $option_text) {
 
  183            $template->setCurrentBlock(
"prop_intlink_select_option");
 
  184            $template->setVariable(
"VAL_SELECT_OPTION", $option_value);
 
  185            if ($option_value == $this->
getValue()) {
 
  186                $template->setVariable(
 
  188                    'selected="selected"' 
  191            $template->setVariable(
"TXT_SELECT_OPTION", $option_text);
 
  192            $template->parseCurrentBlock();
 
  195            $template->setCurrentBlock(
"delete_internallink");
 
  196            $template->setVariable(
"TEXT_DELETE_INTERNALLINK", 
$lng->
txt(
"remove_solution"));
 
  197            $template->setVariable(
"POST_VAR", $this->
getPostVar());
 
  198            $template->parseCurrentBlock();
 
  199            $template->setCurrentBlock(
"internal_link");
 
  202            $template->parseCurrentBlock();
 
  204        $template->setCurrentBlock(
"prop_internallink_selector");
 
  205        $template->setVariable(
"POST_VAR", $this->
getPostVar());
 
  207            $template->setVariable(
 
  209                " disabled=\"disabled\"" 
  213        $template->setVariable(
"CMD_ADD_INTERNALLINK", $this->
getAddCommand());
 
  214        $template->parseCurrentBlock();
 
  215        $a_tpl->setCurrentBlock(
"prop_generic");
 
  216        $a_tpl->setVariable(
"PROP_GENERIC", $template->get());
 
  217        $a_tpl->parseCurrentBlock();
 
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...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
getInternalLink()
Get internal linnk.
 
getInternalLinkText()
Get internal link text.
 
setAddCommand($a_add_command)
Set add command.
 
setValueByArray($a_values)
Set value by array.
 
setOptions($a_options)
Set Options.
 
__construct($a_title="", $a_postvar="")
Constructor.
 
checkInput()
Check input, strip slashes etc.
 
setInternalLink($a_value)
Set internal link.
 
getAddCommand()
Get add command.
 
setValue($a_value)
Set Value.
 
setInternalLinkText($a_value)
Set internal link.text.
 
special template class to simplify handling of ITX/PEAR
 
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
 
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc