47 $next_class = $ilCtrl->getNextClass($this);
48 $cmd = $ilCtrl->getCmd();
80 $this->title = $a_title;
100 $this->postvar = $a_postvar;
120 $id = str_replace(
"[",
"__", $this->
getPostVar());
121 $id = str_replace(
"]",
"__", $id);
133 $this->info = $a_info;
153 $this->alert = $a_alert;
173 $this->required = $a_required;
193 $this->disabled = $a_disabled;
203 return $this->disabled;
243 $this->parent_gui = $a_val;
253 return $this->parent_gui;
281 $this->hidden_title = $a_val;
314 return serialize($this->getValue());
322 $data = unserialize($a_data);
326 $this->setValue(
$data);
330 $this->setValue(
false);
340 if (!is_object($parent))
342 die(
"You must set parent for ".get_class($this).
" to use serialize feature.");
354 if (!is_object($parent))
356 die(
"You must set parent for ".get_class($this).
" to use serialize feature.");
367 if (!is_object($parent))
369 die(
"You must set parent for ".get_class($this).
" to use serialize feature.");
387 public function setMulti($a_multi, $a_sortable =
false, $a_addremove =
true)
391 require_once
'Services/Form/exceptions/class.ilFormException.php';
393 "%s not supported for form property type %s",
394 __FUNCTION__, get_class($this)
398 $this->multi = (bool)$a_multi;
399 $this->multi_sortable = (bool)$a_sortable;
400 $this->multi_addremove = (bool)$a_addremove;
420 $this->multi_values = array_unique($a_values);
445 $tpl =
new ilTemplate(
"tpl.multi_icons.html",
true,
true,
"Services/Form");
448 if ($this->multi_addremove)
450 $tpl->setCurrentBlock(
"addremove");
451 $tpl->setVariable(
"ID", $id);
452 $tpl->setVariable(
"TXT_ADD", $lng->txt(
"add"));
453 $tpl->setVariable(
"TXT_REMOVE", $lng->txt(
"remove"));
454 include_once(
"./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
457 $tpl->parseCurrentBlock();
460 if ($this->multi_sortable)
463 $tpl->setCurrentBlock(
"sortable");
464 $tpl->setVariable(
"ID", $id);
465 $tpl->setVariable(
"TXT_DOWN", $lng->txt(
"down"));
466 $tpl->setVariable(
"TXT_UP", $lng->txt(
"up"));
467 include_once(
"./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
470 $tpl->parseCurrentBlock();
495 return str_replace(
"\x0B",
"", $a_text);
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
static get($a_glyph, $a_text="")
Get glyph html.
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.
Interface for multi values support.