19 declare(strict_types=1);
    41         $this->
user = $DIC->user();
    42         $this->presenter = $a_presenter;
    43         $this->objDefinition = $DIC[
'objDefinition'];
    45         $this->
setId(
"ilSearchResultsTable");
    47         $this->
setId(
'search_' . $this->
user->getId());
    52         $this->
addColumn($this->
lng->txt(
"search_title_description"), 
"title");
    56             $this->
addColumn($all_cols[$col][
'txt'], $col, 
'50px');
    60             $this->
addColumn($this->
lng->txt(
'lucene_relevance_short'), 
'relevance', 
'50px');
    66         $this->
addColumn($this->
lng->txt(
"actions"), 
"", 
"10px");
    70         $this->
setRowTemplate(
"tpl.search_result_row.html", 
"Services/Search");
    82         return parent::numericOrdering($a_field);
    91         return array(
'create_date' =>
    93                             'txt' => $this->
lng->txt(
'create_date'),
   103     protected function fillRow(array $a_set): void
   105         $obj_id = $a_set[
"obj_id"];
   107         $type = $a_set[
'type'];
   110         $relevance = $a_set[
'relevance'];
   112         if (!$type || $this->objDefinition->isSideBlock($type)) {
   116         $item_list_gui = ilLuceneSearchObjectListGUIFactory::factory($type);
   118         $item_list_gui->setContainerObject($this->parent_obj);
   119         $item_list_gui->setSearchFragment($this->presenter->lookupContent($obj_id, 0));
   120         $item_list_gui->setSeparateCommands(
true);
   124         $this->presenter->appendAdditionalInformation($item_list_gui, 
$ref_id, $obj_id, $type);
   126         $this->tpl->setVariable(
"ACTION_HTML", $item_list_gui->getCommandsHTML());
   128         if ($html = $item_list_gui->getListItemHTML(
$ref_id, $obj_id, 
'#SRC_HIGHLIGHT_TITLE', 
'#SRC_HIGHLIGHT_DESC')) {
   132                     '#SRC_HIGHLIGHT_TITLE',
   133                     '#SRC_HIGHLIGHT_DESC'   144             $item_html[
$ref_id][
'html'] = $html;
   145             $item_html[
$ref_id][
'type'] = $type;
   151             $pbar->setCurrent((
int) $relevance);
   153             $this->tpl->setCurrentBlock(
'relev');
   154             $this->tpl->setVariable(
'REL_PBAR', $pbar->render());
   155             $this->tpl->parseCurrentBlock();
   159         $this->tpl->setVariable(
"ITEM_HTML", $html);
   164                     $this->tpl->setCurrentBlock(
'creation');
   166                     $this->tpl->parseCurrentBlock();
   172         if (!$this->objDefinition->isPlugin($type)) {
   173             $type_txt = $this->
lng->txt(
'icon') . 
' ' . $this->
lng->txt(
'obj_' . $type);
   180         $this->tpl->setVariable(
 
numericOrdering(string $a_field)
 
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item. 
 
setFormAction(string $a_form_action, bool $a_multipart=false)
 
setEnableTitle(bool $a_enabletitle)
 
getSelectableColumns()
Get selectable columns. 
 
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
 
TableGUI class for search results. 
 
static img(string $a_src, ?string $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag. 
 
parses the objects.xml it handles the xml-description of all ilias objects 
 
setShowRowsSelector(bool $a_value)
Toggle rows-per-page selector. 
 
setDefaultOrderField(string $a_defaultorderfield)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
setDefaultOrderDirection(string $a_defaultorderdirection)
 
static addListGUIActivationProperty(ilObjectListGUI $list_gui, array &$item)
Get timing details for list gui. 
 
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
 
static lookupTxtById(string $plugin_id, string $lang_var)
 
ilObjectDefinition $objDefinition
 
fillRow(array $a_set)
Fill table row. 
 
setEnableNumInfo(bool $a_val)
 
static _lookupCreationDate(int $obj_id)
 
setLimit(int $a_limit=0, int $a_default_limit=0)
 
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
 
ilSearchResultPresentation $presenter
 
__construct($a_parent_obj, $a_parent_cmd, ilSearchResultPresentation $a_presenter)
Constructor. 
 
setEnableHeader(bool $a_enableheader)