21 parent::__construct($a_title, $a_postvar);
38 $this->open_answer_indexes = $a_indexes;
46 $this->open_answer_indexes[] = $a_idx;
56 return in_array($a_idx,(
array) $this->open_answer_indexes);
73 if (is_array($foundvalues))
75 foreach ($foundvalues as $idx =>
$value)
80 $this->
setAlert($lng->txt(
"msg_input_is_required"));
88 $this->
setAlert($lng->txt(
"msg_wrong_format"));
96 $this->
setAlert($lng->txt(
"msg_input_is_required"));
111 parent::setValueByArray($a_values);
128 $tpl =
new ilTemplate(
"tpl.prop_selectbuilder.html",
true,
true,
"Services/Form");
130 foreach ($this->values as
$value)
132 if(!is_string($value))
137 if (strlen((
string) $value))
139 $tpl->setCurrentBlock(
"prop_text_propval");
141 $tpl->parseCurrentBlock();
145 $tpl->setCurrentBlock(
"move");
146 $tpl->setVariable(
"CMD_UP",
"cmd[up" . $this->
getFieldId() .
"][$i]");
147 $tpl->setVariable(
"CMD_DOWN",
"cmd[down" . $this->
getFieldId() .
"][$i]");
149 include_once(
"./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
153 $tpl->parseCurrentBlock();
155 $tpl->setCurrentBlock(
"row");
157 #$tpl->setVariable('POST_VAR_OPEN',$this->getPostVar().'[open]'.'['.$i.']'); 158 $tpl->setVariable(
'POST_VAR_OPEN',$this->
getPostVar().
'_open'.
'['.$i.
']');
159 $tpl->setVariable(
'POST_VAR_OPEN_ID', $this->
getPostVar().
'_open['.$i.
']');
160 $tpl->setVariable(
'TXT_OPEN', $lng->txt(
"form_open_answer"));
164 $tpl->setVariable(
'PROP_OPEN_CHECKED',
'checked="checked"');
168 $tpl->setVariable(
'PROP_OPEN_DISABLED',
'disabled="disabled"');
172 $tpl->setVariable(
"CMD_ADD",
"cmd[add" . $this->
getFieldId() .
"][$i]");
173 $tpl->setVariable(
"CMD_REMOVE",
"cmd[remove" . $this->
getFieldId() .
"][$i]");
178 $tpl->setVariable(
"DISABLED",
179 " disabled=\"disabled\"");
181 include_once(
"./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
184 $tpl->parseCurrentBlock();
189 $a_tpl->setCurrentBlock(
"prop_generic");
190 $a_tpl->setVariable(
"PROP_GENERIC",
$tpl->get());
191 $a_tpl->parseCurrentBlock();
194 $tpl->addJavascript(
"./Services/Form/js/ServiceFormWizardInput.js");
195 $tpl->addJavascript(
"./Services/Form/templates/default/textwizard.js");
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
getMaxLength()
Get Max Length.
static get($a_glyph, $a_text="")
Get glyph html.
getAllowMove()
Get allow move.
getValidationRegexp()
Get validation regexp.
special template class to simplify handling of ITX/PEAR
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
Create styles array
The data for the language used.
This class represents a text wizard property in a property form.