51 $this->lng = $DIC->language();
52 $this->tpl = $DIC[
"tpl"];
53 parent::__construct($a_title, $a_postvar);
54 $this->validationRegexp =
"";
64 $this->values = $a_values;
74 $this->values = $a_value;
94 $this->allowMove = $a_allow_move;
117 if (is_array($foundvalues)) {
118 foreach ($foundvalues as $idx =>
$value) {
146 $a_tpl->setCurrentBlock(
"prop_generic");
147 $a_tpl->setVariable(
"PROP_GENERIC", $this->
render());
148 $a_tpl->parseCurrentBlock();
153 $tpl =
new ilTemplate(
"tpl.prop_textwizardinput.html",
true,
true,
"Services/Form");
155 foreach ($this->values as
$value) {
156 if (strlen($value)) {
157 $tpl->setCurrentBlock(
"prop_text_propval");
159 $tpl->parseCurrentBlock();
162 $tpl->setCurrentBlock(
"move");
163 $tpl->setVariable(
"CMD_UP",
"cmd[up" . $this->
getFieldId() .
"][$i]");
164 $tpl->setVariable(
"CMD_DOWN",
"cmd[down" . $this->
getFieldId() .
"][$i]");
168 $tpl->parseCurrentBlock();
170 $tpl->setCurrentBlock(
"row");
179 " disabled=\"disabled\"" 182 $tpl->setVariable(
"CMD_ADD",
"cmd[add" . $this->
getFieldId() .
"][$i]");
183 $tpl->setVariable(
"CMD_REMOVE",
"cmd[remove" . $this->
getFieldId() .
"][$i]");
188 $tpl->parseCurrentBlock();
195 $this->tpl->addJavascript(
"./Services/Form/js/ServiceFormWizardInput.js");
196 $this->tpl->addJavascript(
"./Services/Form/templates/default/textwizard.js");
setAllowMove($a_allow_move)
Set allow move.
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
getMaxLength()
Get Max Length.
setValues($a_values)
Set Values.
static get($a_glyph, $a_text="")
Get glyph html.
checkInput()
Check input, strip slashes etc.
__construct($a_title="", $a_postvar="")
Constructor.
getAllowMove()
Get allow move.
setValue($a_value)
Set Value.
getValidationRegexp()
Get validation regexp.
special template class to simplify handling of ITX/PEAR
This class represents a text property in a property form.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
insert($a_tpl)
Insert property html.
This class represents a text wizard property in a property form.