37 string $a_postvar =
"" 41 $this->
lng = $DIC->language();
42 $this->tpl = $DIC[
"tpl"];
43 $lng = $DIC->language();
47 $this->show_wizard =
false;
48 $this->show_save_phrase =
false;
49 $this->categorytext =
$lng->
txt(
'row_text');
50 $this->use_other_answer =
false;
62 $this->use_other_answer = $a_value;
71 if (is_array($a_value) && is_array($a_value[
'answer'])) {
73 $this->values->addCategory(
$value, $a_value[
'other'][
$index] ?? 0);
80 $this->values = $a_values;
90 $this->allowMove = $a_allow_move;
100 $this->show_wizard = $a_value;
110 $this->categorytext = $a_text;
120 $this->labeltext = $a_text;
130 $this->show_save_phrase = $a_value;
142 if (count($foundvalues) > 0) {
144 if (is_array($foundvalues[
'answer'])) {
145 foreach ($foundvalues[
'answer'] as $idx => $answervalue) {
146 if (((strlen($answervalue)) == 0) && ($this->
getRequired() && (!$foundvalues[
'other'][$idx]))) {
171 $tpl =
new ilTemplate(
"tpl.prop_matrixrowwizardinput.html",
true,
true,
"Modules/SurveyQuestionPool");
172 if (is_object($this->values)) {
173 for (
$i = 0;
$i < $this->values->getCategoryCount();
$i++) {
174 $cat = $this->values->getCategory(
$i);
188 $tpl->
setVariable(
"CHECKED_OTHER",
' checked="checked"');
212 $tpl->
setVariable(
"DISABLED",
" disabled=\"disabled\"");
213 $tpl->
setVariable(
"DISABLED_LABEL",
" disabled=\"disabled\"");
255 $tpl->
addJavaScript(
"./Services/Form/js/ServiceFormWizardInput.js");
256 $tpl->
addJavaScript(
"./Modules/SurveyQuestionPool/js/matrixrowwizard.js");
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
static stripSlashesRecursive($a_data, bool $a_strip_html=true, string $a_allow="")
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...
static get(string $a_glyph, string $a_text="")
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string.
setVariable(string $variable, $value='')
Sets the given variable to the given value.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setVariable($variable, $value='')
Sets a variable value.
addJavaScript(string $a_js_file, bool $a_add_version_parameter=true, int $a_batch=2)
Add a javascript file that should be included in the header.
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block.
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
setMaxLength(?int $a_maxlength)
__construct(Container $dic, ilPlugin $plugin)
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block.