24 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
25 include_once
'./Services/Search/classes/Lucene/class.ilLuceneAdvancedSearchFields.php';
45 public function __construct($a_parent_obj, $a_parent_cmd =
'')
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));
63 if ($access->checkAccess(
'write',
'', $this->getParentObject()->object->getRefId())) {
64 $this->
addMultiCommand(
'saveAdvancedLuceneSettings', $this->lng->txt(
'lucene_activate_field'));
73 $this->tpl->setVariable(
'VAL_ID', $a_set[
'id']);
74 $this->tpl->setVariable(
'VAL_CHECKED', $a_set[
'active'] ?
'checked="checked"' :
'');
75 $this->tpl->setVariable(
'VAL_TITLE', $a_set[
'title']);
76 $this->tpl->setVariable(
'VAL_TYPE', $a_set[
'type']);
82 $tmp_arr[
'id'] = $field;
83 $tmp_arr[
'active'] = $settings->
isActive($field);
84 $tmp_arr[
'title'] = $translation;
86 $tmp_arr[
'type'] = (substr($field, 0, 3) ==
'lom') ?
87 $this->lng->txt(
'search_lom') :
88 $this->lng->txt(
'search_adv_md');
90 $content[] = $tmp_arr;
__construct($a_parent_obj, $a_parent_cmd='')
constructor
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
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
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.
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.
setLimit($a_limit=0, $a_default_limit=0)
parse(ilLuceneAdvancedSearchSettings $settings)