|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilSearchResultPresentation:Public Member Functions | |
| __construct (object $container=null, int $a_mode=self::MODE_LUCENE) | |
| Constructor. More... | |
| getContainer () | |
| Get container gui. More... | |
| getMode () | |
| setResults (array $a_result_data) | |
| Set result array. More... | |
| getResults () | |
| get results More... | |
| setSubitemIds (array $a_subids) | |
| Set subitem ids Used for like and fulltext search. More... | |
| getSubitemIds () | |
| Get subitem ids. More... | |
| getSubitemIdsByObject (int $a_obj_id) | |
| Get subitem ids for an object. More... | |
| getHTML () | |
| Get HTML. More... | |
| setSearcher (ilLuceneSearcher $a_searcher) | |
| set searcher More... | |
| render () | |
| Parse results. More... | |
| setPreviousNext (string $a_p, string $a_n) | |
| Set previous next. More... | |
| getRelevance (int $a_obj_id) | |
| lookupTitle (int $a_obj_id, int $a_sub_id) | |
| lookupDescription (int $a_obj_id, int $a_sub_id) | |
| lookupContent (int $a_obj_id, int $a_sub_id) | |
| appendAdditionalInformation (ilObjectListGUI $item_list_gui, int $ref_id, int $obj_id, string $type) | |
| Append path, relevance information. More... | |
Data Fields | |
| const | MODE_LUCENE = 1 |
| const | MODE_STANDARD = 2 |
Protected Member Functions | |
| parseResultReferences () | |
| Check if more than one reference is visible. More... | |
| getMoreReferencesCounter (int $a_ref_id) | |
| getAllReferences (int $a_ref_id) | |
| renderItemList () | |
| Render item list. More... | |
| appendPath (int $a_ref_id) | |
| appendMorePathes (int $a_ref_id) | |
| appendSubItems (ilObjectListGUI $item_list_gui, int $ref_id, int $obj_id, string $a_type) | |
| initReferences () | |
Protected Attributes | |
| int | $mode |
| ilGlobalTemplateInterface | $tpl |
| ilLanguage | $lng |
| ilCtrl | $ctrl |
| ilAccess | $access |
| ilTree | $tree |
| GlobalHttpState | $http |
| Factory | $refinery |
| string | $prev |
| string | $next |
| string | $html |
| string | $thtml |
Private Attributes | |
| array | $results = [] |
| array | $subitem_ids = [] |
| array | $has_more_ref_ids = [] |
| array | $all_references = [] |
| ilLuceneSearcher | $searcher = null |
| object | $container = null |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Presentation of search results using object list gui
Definition at line 32 of file class.ilSearchResultPresentation.php.
| ilSearchResultPresentation::__construct | ( | object | $container = null, |
| int | $a_mode = self::MODE_LUCENE |
||
| ) |
Constructor.
| object | $container | container gui object |
Definition at line 64 of file class.ilSearchResultPresentation.php.
References $container, $DIC, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), initReferences(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ilSubItemListGUI\setShowDetails().
Here is the call graph for this function:| ilSearchResultPresentation::appendAdditionalInformation | ( | ilObjectListGUI | $item_list_gui, |
| int | $ref_id, | ||
| int | $obj_id, | ||
| string | $type | ||
| ) |
Append path, relevance information.
Definition at line 326 of file class.ilSearchResultPresentation.php.
|
protected |
Definition at line 365 of file class.ilSearchResultPresentation.php.
References $tpl, ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Here is the call graph for this function:
|
protected |
Definition at line 354 of file class.ilSearchResultPresentation.php.
References $tpl, and ROOT_FOLDER_ID.
|
protected |
Definition at line 385 of file class.ilSearchResultPresentation.php.
|
protected |
Definition at line 184 of file class.ilSearchResultPresentation.php.
References ilSession\get().
Referenced by renderItemList().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSearchResultPresentation::getContainer | ( | ) |
Get container gui.
Definition at line 93 of file class.ilSearchResultPresentation.php.
References $container.
| ilSearchResultPresentation::getHTML | ( | ) |
Get HTML.
Definition at line 198 of file class.ilSearchResultPresentation.php.
References $thtml.
| ilSearchResultPresentation::getMode | ( | ) |
Definition at line 98 of file class.ilSearchResultPresentation.php.
References $mode.
Referenced by getRelevance(), lookupContent(), lookupDescription(), and lookupTitle().
Here is the caller graph for this function:
|
protected |
Definition at line 173 of file class.ilSearchResultPresentation.php.
References ilSession\get().
Here is the call graph for this function:| ilSearchResultPresentation::getRelevance | ( | int | $a_obj_id | ) |
Definition at line 285 of file class.ilSearchResultPresentation.php.
References getMode().
Referenced by renderItemList().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSearchResultPresentation::getResults | ( | ) |
get results
Definition at line 114 of file class.ilSearchResultPresentation.php.
References $results.
Referenced by parseResultReferences(), and renderItemList().
Here is the caller graph for this function:| ilSearchResultPresentation::getSubitemIds | ( | ) |
Get subitem ids.
Definition at line 134 of file class.ilSearchResultPresentation.php.
References $subitem_ids.
| ilSearchResultPresentation::getSubitemIdsByObject | ( | int | $a_obj_id | ) |
Get subitem ids for an object.
Definition at line 142 of file class.ilSearchResultPresentation.php.
|
protected |
Definition at line 411 of file class.ilSearchResultPresentation.php.
References ilSession\get(), ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), and ilSession\set().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSearchResultPresentation::lookupContent | ( | int | $a_obj_id, |
| int | $a_sub_id | ||
| ) |
Definition at line 315 of file class.ilSearchResultPresentation.php.
References getMode().
Here is the call graph for this function:| ilSearchResultPresentation::lookupDescription | ( | int | $a_obj_id, |
| int | $a_sub_id | ||
| ) |
Definition at line 304 of file class.ilSearchResultPresentation.php.
References ilObject\_lookupDescription(), and getMode().
Referenced by renderItemList().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSearchResultPresentation::lookupTitle | ( | int | $a_obj_id, |
| int | $a_sub_id | ||
| ) |
Definition at line 293 of file class.ilSearchResultPresentation.php.
References ilObject\_lookupTitle(), and getMode().
Referenced by renderItemList().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Check if more than one reference is visible.
Definition at line 154 of file class.ilSearchResultPresentation.php.
References $ref_id, ilObject\_getAllReferences(), ILIAS\Repository\access(), and getResults().
Referenced by renderItemList().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSearchResultPresentation::render | ( | ) |
Parse results.
Definition at line 214 of file class.ilSearchResultPresentation.php.
References renderItemList().
Here is the call graph for this function:
|
protected |
Render item list.
Definition at line 232 of file class.ilSearchResultPresentation.php.
References $ref_id, ilObject\_lookupCreationDate(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilObjectListGUI\CONTEXT_SEARCH, getAllReferences(), getRelevance(), getResults(), ILIAS\Repository\html(), ILIAS\Repository\int(), ILIAS\Repository\lng(), lookupDescription(), lookupTitle(), and parseResultReferences().
Referenced by render().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSearchResultPresentation::setPreviousNext | ( | string | $a_p, |
| string | $a_n | ||
| ) |
Set previous next.
Definition at line 222 of file class.ilSearchResultPresentation.php.
| ilSearchResultPresentation::setResults | ( | array | $a_result_data | ) |
Set result array.
Definition at line 106 of file class.ilSearchResultPresentation.php.
| ilSearchResultPresentation::setSearcher | ( | ilLuceneSearcher | $a_searcher | ) |
set searcher
Definition at line 206 of file class.ilSearchResultPresentation.php.
| ilSearchResultPresentation::setSubitemIds | ( | array | $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 125 of file class.ilSearchResultPresentation.php.
|
protected |
Definition at line 42 of file class.ilSearchResultPresentation.php.
|
private |
Definition at line 51 of file class.ilSearchResultPresentation.php.
|
private |
Definition at line 53 of file class.ilSearchResultPresentation.php.
Referenced by __construct(), and getContainer().
|
protected |
Definition at line 41 of file class.ilSearchResultPresentation.php.
|
private |
Definition at line 50 of file class.ilSearchResultPresentation.php.
|
protected |
Definition at line 57 of file class.ilSearchResultPresentation.php.
|
protected |
Definition at line 44 of file class.ilSearchResultPresentation.php.
|
protected |
Definition at line 40 of file class.ilSearchResultPresentation.php.
|
protected |
Definition at line 37 of file class.ilSearchResultPresentation.php.
Referenced by getMode().
|
protected |
Definition at line 56 of file class.ilSearchResultPresentation.php.
|
protected |
Definition at line 55 of file class.ilSearchResultPresentation.php.
|
protected |
Definition at line 45 of file class.ilSearchResultPresentation.php.
|
private |
Definition at line 48 of file class.ilSearchResultPresentation.php.
Referenced by getResults().
|
private |
Definition at line 52 of file class.ilSearchResultPresentation.php.
|
private |
Definition at line 49 of file class.ilSearchResultPresentation.php.
Referenced by getSubitemIds().
|
protected |
Definition at line 58 of file class.ilSearchResultPresentation.php.
Referenced by getHTML().
|
protected |
Definition at line 39 of file class.ilSearchResultPresentation.php.
|
protected |
Definition at line 43 of file class.ilSearchResultPresentation.php.
| const ilSearchResultPresentation::MODE_LUCENE = 1 |
Definition at line 34 of file class.ilSearchResultPresentation.php.
| const ilSearchResultPresentation::MODE_STANDARD = 2 |
Definition at line 35 of file class.ilSearchResultPresentation.php.
Referenced by ilAdvancedSearchGUI\performAdvMDSearch(), ilAdvancedSearchGUI\performSearch(), ilSearchGUI\performSearch(), ilAdvancedSearchGUI\showSavedAdvMDResults(), ilAdvancedSearchGUI\showSavedResults(), and ilSearchGUI\showSavedResults().