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';
8 include_once
'Services/Form/interfaces/interface.ilMultiValuesItem.php';
42 $this->options = $a_options;
52 return $this->options ? $this->options : array();
62 if($this->
getMulti() && is_array($a_value))
65 $a_value = array_shift($a_value);
67 $this->value = $a_value;
124 $this->
setAlert($lng->txt(
"msg_input_is_required"));
132 $this->cust_attr[] = $a_attr;
145 $tpl =
new ilTemplate(
"tpl.prop_select.html",
true,
true,
"Services/Form");
149 $tpl->setCurrentBlock(
'cust_attr');
150 $tpl->setVariable(
'CUSTOM_ATTR',$attr);
151 $tpl->parseCurrentBlock();
157 foreach($this->
getOptions() as $option_value => $option_text)
161 $sel_value = $option_value;
164 if ((
string) $option_value == (
string) $this->
getValue())
166 $sel_value = $option_value;
169 foreach($this->
getOptions() as $option_value => $option_text)
171 $tpl->setCurrentBlock(
"prop_select_option");
173 if((
string) $sel_value == (
string) $option_value)
175 $tpl->setVariable(
"CHK_SEL_OPTION",
176 'selected="selected"');
178 $tpl->setVariable(
"TXT_SELECT_OPTION", $option_text);
179 $tpl->parseCurrentBlock();
209 $tpl->setVariable(
"DISABLED",
" disabled=\"disabled\"");
210 $tpl->setVariable(
"HIDDEN_INPUT", $hidden);
234 $a_tpl->setCurrentBlock(
"prop_generic");
235 $a_tpl->setVariable(
"PROP_GENERIC", $this->
render());
236 $a_tpl->parseCurrentBlock();
253 $html = $this->
render(
"toolbar");