18 declare(strict_types=1);
33 public function __construct($a_parent_obj, $a_parent_cmd, $a_ref_id)
36 $this->ref_id = $a_ref_id;
37 $this->
setId(
'repository_object_search_result_' . $this->ref_id);
47 $this->search_term = $a_term;
74 $this->results = $a_result;
92 $ilCtrl = $DIC[
'ilCtrl'];
97 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject()));
115 $lng->loadLanguageModule(
'search');
116 #$this->addColumn($lng->txt("title"), "title", "80%"); 117 #$this->addColumn($lng->txt("lucene_relevance_short"), "relevance", "20%"); 119 $this->
addColumn(
$lng->txt(
"lucene_relevance_short"),
"",
"20%");
130 $this->
setRowTemplate(
'tpl.repository_object_search_result_row.html',
'Services/Search');
137 abstract public function parse();
145 $tpl =
new ilTemplate(
'tpl.lucene_relevance.html',
true,
true,
'Services/Search');
147 include_once
"Services/UIComponent/ProgressBar/classes/class.ilProgressBar.php";
149 $pbar->setCurrent($a_rel);
151 $tpl->setCurrentBlock(
'relevance');
152 $tpl->setVariable(
'REL_PBAR', $pbar->render());
153 $tpl->parseCurrentBlock();
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
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.
getSearchTerm()
Get search term.
initColumns()
Init columns.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
__construct(Container $dic, ilPlugin $plugin)
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.