4include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
 
    5require_once(
'./Services/Repository/classes/class.ilObjectPlugin.php');
 
   21        function __construct($a_parent_obj, $a_parent_cmd, $a_presenter)
 
   25                $this->
setId(
"ilSearchResultsTable");
 
   27                $this->presenter = $a_presenter;
 
   29                parent::__construct($a_parent_obj, $a_parent_cmd);
 
   30                $this->
setTitle($lng->txt(
"search_results"));
 
   35                #$this->addColumn($this->lng->txt("type"), "type", "1");
 
   36                #$this->addColumn($this->lng->txt("search_title_description"), "title_sort");
 
   37                $this->
addColumn($this->lng->txt(
"type"), 
"type", 
"1");
 
   38                $this->
addColumn($this->lng->txt(
"search_title_description"), 
"title");
 
   43                        $this->
addColumn($all_cols[$col][
'txt'], $col,
'50px');
 
   48                        #$this->addColumn($this->lng->txt('lucene_relevance_short'),'s_relevance','50px'); 
   49                        $this->
addColumn($this->lng->txt(
'lucene_relevance_short'),
'relevance',
'50px');
 
   55                $this->
addColumn($this->lng->txt(
"actions"), 
"", 
"10px");
 
   59                $this->
setRowTemplate(
"tpl.search_result_row.html", 
"Services/Search");
 
   65                include_once 
"Services/Object/classes/class.ilObjectActivation.php";
 
   77                return parent::numericOrdering($a_field);
 
   89                return array(
'create_date' =>
 
   91                                                        'txt' => $this->lng->txt(
'create_date'),
 
  103                global 
$lng, $objDefinition;
 
  105                $obj_id = $a_set[
"obj_id"];
 
  107                $type   = $a_set[
'type'];
 
  109                $description = $a_set[
'description'];
 
  110                $relevance = $a_set[
'relevance'];
 
  117                include_once 
'./Services/Search/classes/Lucene/class.ilLuceneSearchObjectListGUIFactory.php';
 
  119                $item_list_gui->initItem(
$ref_id,$obj_id,
$title,$description);
 
  120                $item_list_gui->setContainerObject($this->parent_obj);
 
  121                $item_list_gui->setSearchFragment($this->presenter->lookupContent($obj_id,0));
 
  122                $item_list_gui->setSeparateCommands(
true);              
 
  126                $this->presenter->appendAdditionalInformation($item_list_gui,
$ref_id,$obj_id,$type);
 
  128                $this->tpl->setVariable(
"ACTION_HTML", $item_list_gui->getCommandsHTML());                              
 
  133                        $item_html[
$ref_id][
'type'] = $type;
 
  136                $this->tpl->setVariable(
"HREF_IMG", $item_list_gui->default_command[
"link"]);           
 
  142                        include_once 
"Services/UIComponent/ProgressBar/classes/class.ilProgressBar.php";
 
  144                        $pbar->setCurrent($relevance); 
 
  146                        $this->tpl->setCurrentBlock(
'relev');
 
  147                        $this->tpl->setVariable(
'REL_PBAR', $pbar->render());                           
 
  148                        $this->tpl->parseCurrentBlock();
 
  152                $this->tpl->setVariable(
"ITEM_HTML", 
$html);
 
  159                                        $this->tpl->setCurrentBlock(
'creation');
 
  161                                        $this->tpl->parseCurrentBlock();
 
  167                if(!$objDefinition->isPlugin($type))
 
  169                        $type_txt = 
$lng->txt(
'icon').
' '.
$lng->txt(
'obj_'.$type);
 
  174                        include_once(
"./Services/Component/classes/class.ilPlugin.php");
 
  179                $this->tpl->setVariable(
 
An exception for terminatinating execution or to throw for unit testing.
static formatDate(ilDateTime $date)
Format a date @access public.
@classDescription Date and time handling
static factory($a_type)
Get list gui by type This method caches all the returned list guis.
static addListGUIActivationProperty(ilObjectListGUI $a_list_gui, array &$a_item)
Get timing details for list gui.
static lookupTxtById($plugin_id, $lang_var)
static _lookupCreationDate($a_id)
Lookup creation date.
static _getIcon($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
static getInstance()
Factory.
TableGUI class for search results.
fillRow($a_set)
Fill table row.
enabledRelevance()
Check if relevance is visible.
getSelectableColumns()
Get selectable columns.
numericOrdering($a_field)
Should this field be sorted numeric?
__construct($a_parent_obj, $a_parent_cmd, $a_presenter)
Constructor.
getSelectedColumns()
Get selected columns.
setEnableHeader($a_enableheader)
Set Enable Header.
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.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setEnableTitle($a_enabletitle)
Set Enable Title.
setEnableNumInfo($a_val)
Set enable num info.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setLimit($a_limit=0, $a_default_limit=0)
set max.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
static img($a_src, $a_alt="", $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.