3 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
18 public function __construct($a_parent_obj, $a_parent_cmd, $a_ref_id)
21 $this->ref_id = $a_ref_id;
22 $this->
setId(
'repository_object_search_result_' . $this->ref_id);
23 parent::__construct($a_parent_obj, $a_parent_cmd);
32 $this->search_term = $a_term;
59 $this->results = $a_result;
79 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject()));
94 $lng->loadLanguageModule(
'search');
95 #$this->addColumn($lng->txt("title"), "title", "80%"); 96 #$this->addColumn($lng->txt("lucene_relevance_short"), "relevance", "20%"); 97 $this->
addColumn($lng->txt(
"title"),
"",
"80%");
98 $this->
addColumn($lng->txt(
"lucene_relevance_short"),
"",
"20%");
100 $this->
addColumn($lng->txt(
"title"),
"",
"100%");
109 $this->
setRowTemplate(
'tpl.repository_object_search_result_row.html',
'Services/Search');
116 abstract public function parse();
124 $tpl =
new ilTemplate(
'tpl.lucene_relevance.html',
true,
true,
'Services/Search');
126 include_once
"Services/UIComponent/ProgressBar/classes/class.ilProgressBar.php";
128 $pbar->setCurrent($a_rel);
130 $tpl->setCurrentBlock(
'relevance');
131 $tpl->setVariable(
'REL_PBAR', $pbar->render());
132 $tpl->parseCurrentBlock();
getSettings()
Get search settings.
setSearchTerm($a_term)
Set search term.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
static getInstance()
Factory.
getRelevanceHTML($a_rel)
Get relevance html.
special template class to simplify handling of ITX/PEAR
getSearchTerm()
Get search term.
initColumns()
Init columns.
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.
parse()
Parse search result set and call set data.
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.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
setEnableHeader($a_enableheader)
Set Enable Header.
setResults(ilRepositoryObjectDetailSearchResult $a_result)
Set result object.
setLimit($a_limit=0, $a_default_limit=0)
initRowTemplate()
init row template
__construct($a_parent_obj, $a_parent_cmd, $a_ref_id)
Constructor.