5 include_once(
"./Services/Table/interfaces/interface.ilTableFilterItem.php");
6 include_once(
"./Services/Form/classes/class.ilSubEnabledFormPropertyGUI.php");
7 include_once
'Services/UIComponent/Toolbar/interfaces/interface.ilToolbarItem.php';
41 $this->options = $a_options;
51 return $this->options ? $this->options : array();
61 if($this->
getMulti() && is_array($a_value))
64 $a_value = array_shift($a_value);
66 $this->value = $a_value;
81 $this->multi = (bool)$a_multi;
127 $this->
setAlert($lng->txt(
"msg_input_is_required"));
135 $this->cust_attr[] = $a_attr;
148 $tpl =
new ilTemplate(
"tpl.prop_select.html",
true,
true,
"Services/Form");
152 $tpl->setCurrentBlock(
'cust_attr');
153 $tpl->setVariable(
'CUSTOM_ATTR',$attr);
154 $tpl->parseCurrentBlock();
160 foreach($this->
getOptions() as $option_value => $option_text)
164 $sel_value = $option_value;
167 if ((
string) $option_value == (
string) $this->
getValue())
169 $sel_value = $option_value;
172 foreach($this->
getOptions() as $option_value => $option_text)
174 $tpl->setCurrentBlock(
"prop_select_option");
176 if((
string) $sel_value == (
string) $option_value)
178 $tpl->setVariable(
"CHK_SEL_OPTION",
179 'selected="selected"');
181 $tpl->setVariable(
"TXT_SELECT_OPTION", $option_text);
182 $tpl->parseCurrentBlock();
212 $tpl->setVariable(
"DISABLED",
" disabled=\"disabled\"");
213 $tpl->setVariable(
"HIDDEN_INPUT", $hidden);
237 $a_tpl->setCurrentBlock(
"prop_generic");
238 $a_tpl->setVariable(
"PROP_GENERIC", $this->
render());
239 $a_tpl->parseCurrentBlock();
256 $html = $this->
render(
"toolbar");