24 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
25 include_once
'./Services/Search/classes/Lucene/class.ilLuceneAdvancedSearchFields.php';
52 parent::__construct($a_parent_obj,$a_parent_cmd);
54 $this->
addColumn($this->lng->txt(
'title'),
'title',
'60%');
55 $this->
addColumn($this->lng->txt(
'type'),
'type',
'40%');
56 $this->
setRowTemplate(
'tpl.lucene_activation_row.html',
'Services/Search');
60 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj));
61 $this->
addMultiCommand(
'saveAdvancedLuceneSettings',$this->lng->txt(
'lucene_activate_field'));
69 $this->tpl->setVariable(
'VAL_ID',$a_set[
'id']);
70 $this->tpl->setVariable(
'VAL_CHECKED',$a_set[
'active'] ?
'checked="checked"' :
'');
71 $this->tpl->setVariable(
'VAL_TITLE',$a_set[
'title']);
72 $this->tpl->setVariable(
'VAL_TYPE',$a_set[
'type']);
80 $tmp_arr[
'id'] = $field;
81 $tmp_arr[
'active'] = $settings->
isActive($field);
82 $tmp_arr[
'title'] = $translation;
84 $tmp_arr[
'type'] = (substr($field,0,3) ==
'lom') ?
85 $this->lng->txt(
'search_lom') :
86 $this->lng->txt(
'search_adv_md');
88 $content[] = $tmp_arr;
__construct($a_parent_obj, $a_parent_cmd='')
constructor
fillRow($a_set)
Fill template row.
isActive($a_field)
check if field is active
En/disable single lom/advanced meta data fields.
addMultiCommand($a_cmd, $a_text)
Add Command button.
Activation of meta data fields.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
disable($a_module_name)
diesables particular modules of table
static getFields()
Return an array of all meta data fields.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setLimit($a_limit=0, $a_default_limit=0)
parse(ilLuceneAdvancedSearchSettings $settings)