5 include_once(
"./Services/Form/classes/class.ilFormPropertyGUI.php");
6 include_once
'Services/UIComponent/Toolbar/interfaces/interface.ilToolbarItem.php';
48 $this->lng = $DIC->language();
49 $this->ctrl = $DIC->ctrl();
50 parent::__construct($a_title, $a_postvar);
60 $this->value = $a_value;
91 $this->letters = $a_val;
130 $this->fix_db_umlauts = $a_val;
152 $l = str_replace(array(
"Ä",
"Ö",
"Ü",
"ä",
"ö",
"ü"), array(
"A",
"O",
"U",
"a",
"o",
"u"),
$l);
163 die(
"only implemented for toolbar usage");
186 $this->parent_object = $a_obj;
187 $this->parent_cmd = $a_cmd;
198 $this->highlight =
true;
199 $this->highlight_letter = $a_high_letter;
210 $lng->loadLanguageModule(
"form");
212 $tpl =
new ilTemplate(
"tpl.prop_alphabet.html",
true,
true,
"Services/Form");
215 $tpl->setCurrentBlock(
"letter");
216 $tpl->setVariable(
"TXT_LET", $l);
217 $ilCtrl->setParameter($this->parent_object,
"letter", rawurlencode($l));
218 $tpl->setVariable(
"TXT_LET", $l);
219 $tpl->setVariable(
"HREF_LET",
$ilCtrl->getLinkTarget($this->parent_object, $this->parent_cmd));
220 if ($this->highlight && $this->highlight_letter !== null && $this->highlight_letter == $l) {
221 $tpl->setVariable(
"CLASS",
' class="ilHighlighted" ');
223 $tpl->parseCurrentBlock();
225 $ilCtrl->setParameter($this->parent_object,
"letter",
"");
226 $tpl->setVariable(
"TXT_ALL",
$lng->txt(
"form_alphabet_all"));
227 $tpl->setVariable(
"HREF_ALL",
$ilCtrl->getLinkTarget($this->parent_object, $this->parent_cmd));
228 if ($this->highlight && $this->highlight_letter === null) {
229 $tpl->setVariable(
"CLASSA",
' class="ilHighlighted" ');
static dbSupportsDisctinctUmlauts()
Only temp fix for #8603, should go to db classes.
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