25 include_once
'./Services/Search/classes/class.ilSearchSettings.php';
72 $this->ctrl = $DIC->ctrl();
73 $this->lng = $DIC->language();
75 $this->cmdClass = $a_cmd_class;
90 $_SESSION[
'lucene_search'][
'details'][$a_obj_id] =
true;
115 return isset(
$_SESSION[
'lucene_search'][
'details'][$a_obj_id]) and
$_SESSION[
'lucene_search'][
'details'][$a_obj_id];
135 $this->highlighter = $a_highlighter;
182 if ($a_limited and !self::enabledDetails($this->
getObjId())) {
183 return array_slice($this->subitem_ids, 0, self::$MAX_SUBITEMS);
205 $this->tpl =
new ilTemplate(
'tpl.subitem_list.html',
true,
true,
'Services/Object');
207 $this->ref_id = $a_ref_id;
211 $this->subitem_ids = $a_subitem_ids;
226 if (self::enabledDetails($this->
getObjId())) {
236 $this->tpl->setCurrentBlock(
'choose_details');
237 $this->tpl->setVariable(
'LUC_DETAILS_LINK', $link);
238 $this->tpl->setVariable(
'LUC_NUM_HITS', sprintf(
$lng->txt(
'lucene_more_hits_link'),
$additional));
239 $this->tpl->parseCurrentBlock();
254 include_once
"Services/UIComponent/ProgressBar/classes/class.ilProgressBar.php";
256 $pbar->setCurrent($relevance);
258 $this->tpl->setVariable(
'REL_PBAR', $pbar->render());
262 abstract public function getHTML();
__construct($a_cmd_class)
Constructor.
getHighlighter()
get highlighter
Base class for all sub item list gui's.
static resetDetails()
reset details As long as static::resetDetails is not possible this method is final ...
showDetailsLink()
show details link
static getInstance()
Factory.
static _lookupObjId($a_id)
getCmdClass()
get cmd class
special template class to simplify handling of ITX/PEAR
setHighlighter($a_highlighter)
set highlighter
static setShowDetails($a_obj_id)
set show details.
Create styles array
The data for the language used.
static _lookupType($a_id, $a_reference=false)
lookup object type
static enabledDetails($a_obj_id)
enabled show details As long as static::enableDetails is not possible this method is final ...
init($item_list_gui, $a_ref_id, $a_subitem_ids)
init
parseRelevance($sub_item)
getItemListGUI()
get item list gui
getSubItemIds($a_limited=false)
get sub item ids