ILIAS
Release_4_0_x_branch Revision 61816
|
Presentation of search results using object list gui. More...
Public Member Functions | |
__construct ($container=null, $a_mode=self::MODE_LUCENE) | |
Constructor. | |
getContainer () | |
Get container gui. | |
getMode () | |
setResults ($a_result_data) | |
Set result array. | |
getResults () | |
get results | |
setSubitemIds ($a_subids) | |
Set subitem ids Used for like and fulltext search. | |
getSubitemIds () | |
Get subitem ids. | |
getSubitemIdsByObject ($a_obj_id) | |
Get subitem ids for an object. | |
getHTML ($a_new=false) | |
Get HTML. | |
setSearcher ($a_searcher) | |
set searcher | |
render () | |
Parse results. | |
setPreviousNext ($a_p, $a_n) | |
Set previous next. | |
getRelevance ($a_obj_id) | |
get relevance | |
lookupTitle ($a_obj_id, $a_sub_id) | |
lookupDescription ($a_obj_id, $a_sub_id) | |
lookupContent ($a_obj_id, $a_sub_id) | |
get content | |
appendAdditionalInformation ($item_list_gui, $ref_id, $obj_id, $type) | |
Append path, relevance information. |
Data Fields | |
const | MODE_LUCENE = 1 |
const | MODE_STANDARD = 2 |
Protected Member Functions | |
parseResultReferences () | |
Check if more than one reference is visible. | |
hasMoreReferences ($a_ref_id) | |
getAllReferences ($a_ref_id) | |
renderItemList () | |
Render item list. | |
appendPath ($a_ref_id) | |
Append path. | |
appendMorePathes ($a_ref_id) | |
Append more occurences link. | |
appendRelevance ($a_obj_id) | |
Append relevance. | |
appendSubItems ($item_list_gui, $ref_id, $obj_id, $a_type) | |
Append subitems. | |
initReferences () |
Protected Attributes | |
$mode | |
$tpl | |
$lng |
Private Attributes | |
$results = array() | |
$subitem_ids = array() | |
$has_more_ref_ids = array() | |
$all_references = null | |
$searcher = null | |
$container = null |
Presentation of search results using object list gui.
Definition at line 33 of file class.ilSearchResultPresentation.php.
ilSearchResultPresentation::__construct | ( | $container = null , |
|
$a_mode = self::MODE_LUCENE |
|||
) |
Constructor.
object | $container | container gui object |
Definition at line 55 of file class.ilSearchResultPresentation.php.
References $_GET, $container, $ilCtrl, $lng, $tpl, initReferences(), and ilSubItemListGUI\setShowDetails().
ilSearchResultPresentation::appendAdditionalInformation | ( | $item_list_gui, | |
$ref_id, | |||
$obj_id, | |||
$type | |||
) |
Append path, relevance information.
Definition at line 358 of file class.ilSearchResultPresentation.php.
References $ref_id, $tpl, $type, appendMorePathes(), appendPath(), and appendSubItems().
|
protected |
Append more occurences link.
Definition at line 409 of file class.ilSearchResultPresentation.php.
References $tpl, getContainer(), getMode(), and hasMoreReferences().
Referenced by appendAdditionalInformation().
|
protected |
Append path.
Definition at line 393 of file class.ilSearchResultPresentation.php.
References $tpl.
Referenced by appendAdditionalInformation().
|
protected |
Append relevance.
Definition at line 434 of file class.ilSearchResultPresentation.php.
References $tpl, ilUtil\getImagePath(), ilSearchSettings\getInstance(), getMode(), and getRelevance().
|
protected |
Append subitems.
Definition at line 472 of file class.ilSearchResultPresentation.php.
References $ref_id, $subitem_ids, elseif(), getContainer(), ilLuceneSubItemListGUIFactory\getInstanceByType(), getMode(), and getSubitemIdsByObject().
Referenced by appendAdditionalInformation().
|
protected |
Definition at line 178 of file class.ilSearchResultPresentation.php.
References $_SESSION.
Referenced by renderItemList().
ilSearchResultPresentation::getContainer | ( | ) |
Get container gui.
Definition at line 76 of file class.ilSearchResultPresentation.php.
References $container.
Referenced by appendMorePathes(), and appendSubItems().
ilSearchResultPresentation::getHTML | ( | $a_new = false | ) |
Get HTML.
Definition at line 194 of file class.ilSearchResultPresentation.php.
ilSearchResultPresentation::getMode | ( | ) |
Definition at line 81 of file class.ilSearchResultPresentation.php.
References $mode.
Referenced by appendMorePathes(), appendRelevance(), appendSubItems(), getRelevance(), lookupContent(), lookupDescription(), and lookupTitle().
ilSearchResultPresentation::getRelevance | ( | $a_obj_id | ) |
get relevance
@return |
Definition at line 296 of file class.ilSearchResultPresentation.php.
References getMode().
Referenced by appendRelevance(), and renderItemList().
ilSearchResultPresentation::getResults | ( | ) |
get results
Definition at line 99 of file class.ilSearchResultPresentation.php.
Referenced by parseResultReferences(), and renderItemList().
ilSearchResultPresentation::getSubitemIds | ( | ) |
Get subitem ids.
Definition at line 119 of file class.ilSearchResultPresentation.php.
ilSearchResultPresentation::getSubitemIdsByObject | ( | $a_obj_id | ) |
Get subitem ids for an object.
int | $a_obj_id |
Definition at line 129 of file class.ilSearchResultPresentation.php.
Referenced by appendSubItems().
|
protected |
Definition at line 166 of file class.ilSearchResultPresentation.php.
References $_SESSION.
Referenced by appendMorePathes().
|
protected |
Definition at line 500 of file class.ilSearchResultPresentation.php.
References $_SESSION.
Referenced by __construct().
ilSearchResultPresentation::lookupContent | ( | $a_obj_id, | |
$a_sub_id | |||
) |
get content
@return |
Definition at line 346 of file class.ilSearchResultPresentation.php.
References getMode().
ilSearchResultPresentation::lookupDescription | ( | $a_obj_id, | |
$a_sub_id | |||
) |
@return |
Definition at line 328 of file class.ilSearchResultPresentation.php.
References $title, ilObject\_lookupDescription(), and getMode().
Referenced by renderItemList().
ilSearchResultPresentation::lookupTitle | ( | $a_obj_id, | |
$a_sub_id | |||
) |
@return |
Definition at line 310 of file class.ilSearchResultPresentation.php.
References $title, ilObject\_lookupTitle(), and getMode().
Referenced by renderItemList().
|
protected |
Check if more than one reference is visible.
Definition at line 141 of file class.ilSearchResultPresentation.php.
References $ref_id, ilObject\_getAllReferences(), and getResults().
Referenced by renderItemList().
ilSearchResultPresentation::render | ( | ) |
Parse results.
void |
Definition at line 214 of file class.ilSearchResultPresentation.php.
References renderItemList().
|
protected |
Render item list.
Definition at line 233 of file class.ilSearchResultPresentation.php.
References $ilBench, $ref_id, ilObject\_lookupTitle(), ilObject\_lookupType(), getAllReferences(), getRelevance(), getResults(), lookupDescription(), lookupTitle(), and parseResultReferences().
Referenced by render().
ilSearchResultPresentation::setPreviousNext | ( | $a_p, | |
$a_n | |||
) |
Set previous next.
Definition at line 222 of file class.ilSearchResultPresentation.php.
ilSearchResultPresentation::setResults | ( | $a_result_data | ) |
Set result array.
array | $a_result_data | result array |
Definition at line 90 of file class.ilSearchResultPresentation.php.
ilSearchResultPresentation::setSearcher | ( | $a_searcher | ) |
set searcher
@return |
Definition at line 204 of file class.ilSearchResultPresentation.php.
ilSearchResultPresentation::setSubitemIds | ( | $a_subids | ) |
Set subitem ids Used for like and fulltext search.
array | $a_subids | array ($obj_id => array(page1_id,page2_id); |
Definition at line 110 of file class.ilSearchResultPresentation.php.
|
private |
Definition at line 46 of file class.ilSearchResultPresentation.php.
|
private |
Definition at line 49 of file class.ilSearchResultPresentation.php.
Referenced by __construct(), and getContainer().
|
private |
Definition at line 45 of file class.ilSearchResultPresentation.php.
|
protected |
Definition at line 41 of file class.ilSearchResultPresentation.php.
Referenced by __construct().
|
protected |
Definition at line 38 of file class.ilSearchResultPresentation.php.
Referenced by getMode().
|
private |
Definition at line 43 of file class.ilSearchResultPresentation.php.
|
private |
Definition at line 47 of file class.ilSearchResultPresentation.php.
|
private |
Definition at line 44 of file class.ilSearchResultPresentation.php.
Referenced by appendSubItems().
|
protected |
Definition at line 40 of file class.ilSearchResultPresentation.php.
Referenced by __construct(), appendAdditionalInformation(), appendMorePathes(), appendPath(), and appendRelevance().
const ilSearchResultPresentation::MODE_LUCENE = 1 |
Definition at line 35 of file class.ilSearchResultPresentation.php.
const ilSearchResultPresentation::MODE_STANDARD = 2 |
Definition at line 36 of file class.ilSearchResultPresentation.php.
Referenced by ilAdvancedSearchGUI\performAdvMDSearch(), ilAdvancedSearchGUI\performSearch(), ilSearchGUI\performSearch(), ilAdvancedSearchGUI\showSavedAdvMDResults(), ilSearchGUI\showSavedResults(), and ilAdvancedSearchGUI\showSavedResults().