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;
91 $item->setValueByArray($a_values);
128 $this->
setAlert($lng->txt(
"msg_input_is_required"));
136 $this->cust_attr[] = $a_attr;
149 $tpl =
new ilTemplate(
"tpl.prop_select.html",
true,
true,
"Services/Form");
153 $tpl->setCurrentBlock(
'cust_attr');
154 $tpl->setVariable(
'CUSTOM_ATTR',$attr);
155 $tpl->parseCurrentBlock();
161 foreach($this->
getOptions() as $option_value => $option_text)
165 $sel_value = $option_value;
168 if ((
string) $option_value == (
string) $this->
getValue())
170 $sel_value = $option_value;
173 foreach($this->
getOptions() as $option_value => $option_text)
175 $tpl->setCurrentBlock(
"prop_select_option");
177 if((
string) $sel_value == (
string) $option_value)
179 $tpl->setVariable(
"CHK_SEL_OPTION",
180 'selected="selected"');
182 $tpl->setVariable(
"TXT_SELECT_OPTION", $option_text);
183 $tpl->parseCurrentBlock();
213 $tpl->setVariable(
"DISABLED",
" disabled=\"disabled\"");
214 $tpl->setVariable(
"HIDDEN_INPUT", $hidden);
225 $tpl->touchBlock(
"inline_in_bl");
239 $a_tpl->setCurrentBlock(
"prop_generic");
240 $a_tpl->setVariable(
"PROP_GENERIC", $this->
render());
241 $a_tpl->parseCurrentBlock();
258 $html = $this->
render(
"toolbar");
271 $this->hide_sub = (bool)$a_value;
276 ' { il.Form.showSubForm(\'subform_'.$this->getFieldId().
'\', \
'il_prop_cont_'.$this->getFieldId().
'\'); }
'.
277 ' else { il.Form.hideSubForm(\
'subform_'.$this->
getFieldId().
'\'); };
"');
281 function hideSubForm()
283 return (bool)$this->hide_sub;