5 include_once(
"./Services/Form/classes/class.ilFormPropertyGUI.php");
6 include_once
'Services/UIComponent/Toolbar/interfaces/interface.ilToolbarItem.php';
31 parent::__construct($a_title, $a_postvar);
41 $this->value = $a_value;
72 $this->letters = $a_val;
97 $this->
setAlert($lng->txt(
"msg_input_is_required"));
110 die(
"only implemented for toolbar usage");
133 $this->parent_object = $a_obj;
134 $this->parent_cmd = $a_cmd;
145 $this->highlight =
true;
146 $this->highlight_letter = $a_high_letter;
158 $lng->loadLanguageModule(
"form");
160 $tpl =
new ilTemplate(
"tpl.prop_alphabet.html",
true,
true,
"Services/Form");
163 $tpl->setCurrentBlock(
"letter");
164 $tpl->setVariable(
"TXT_LET", $l);
165 $ilCtrl->setParameter($this->parent_object,
"letter", rawurlencode($l));
166 $tpl->setVariable(
"TXT_LET", $l);
167 $tpl->setVariable(
"HREF_LET", $ilCtrl->getLinkTarget($this->parent_object, $this->parent_cmd));
168 if ($this->highlight && $this->highlight_letter !== null && $this->highlight_letter == $l)
170 $tpl->setVariable(
"CLASS",
' class="ilHighlighted" ');
172 $tpl->parseCurrentBlock();
174 $ilCtrl->setParameter($this->parent_object,
"letter",
"");
175 $tpl->setVariable(
"TXT_ALL", $lng->txt(
"form_alphabet_all"));
176 $tpl->setVariable(
"HREF_ALL", $ilCtrl->getLinkTarget($this->parent_object, $this->parent_cmd));
177 if ($this->highlight && $this->highlight_letter === null)
179 $tpl->setVariable(
"CLASSA",
' class="ilHighlighted" ');
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.