ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
searchResult stores all result of a search query. More...
Public Member Functions | |
_getInstance ($a_search_type) | |
setSearchType ($_search_type) | |
getSearchType () | |
getFilterMode () | |
setFilterMode ($filter_mode) | |
filter ($a_root_node, $check_and) | |
Filter search result. More... | |
__initSearchSettingsObject () | |
getResultsForPresentation () | |
getTopics () | |
setTopics ($a_topics=array()) | |
setResultPageNumber ($a_result_page_number) | |
getResultPageNumber () | |
addPresentationResult ($a_presentation_result=array()) | |
getPresentationResults () | |
addEntry ($a_ref_id, $a_type, $found, $a_child_id=0) | |
__updateEntryChilds ($a_ref_id, $a_childs) | |
mergeEntries (&$result_obj) | |
diffEntriesFromResult (&$result_obj) | |
getUniqueResults () | |
![]() | |
ilSearchResult ($a_user_id=0) | |
Constructor public. More... | |
setRequiredPermission ($a_permission) | |
Set the required permission for the rbac checks in function 'filter()'. More... | |
getRequiredPermission () | |
setUserId ($a_user_id) | |
getUserId () | |
getEntries () | |
isLimitReached () | |
setMaxHits ($a_max_hits) | |
getMaxHits () | |
isOffsetReached ($a_counter) | |
Check if offset is reached. More... | |
addEntry ($a_obj_id, $a_type, $found, $a_child_id=0) | |
add search result entry Entries are stored with 'obj_id'. More... | |
numEntries () | |
Check number of entries public. More... | |
mergeEntries (&$result_obj) | |
merge entries of this instance and another result object More... | |
diffEntriesFromResult (&$result_obj) | |
diff entries of this instance and another result object Used for search in results More... | |
intersectEntries (&$result_obj) | |
Build intersection of entries (all entries that are present in both result sets) More... | |
addResult ($a_ref_id, $a_obj_id, $a_type) | |
add search result Results are stored with 'ref_id'. More... | |
getResults () | |
getResultIds () | |
get result ids More... | |
getResultsByObjId () | |
getUniqueResults () | |
Get unique results. More... | |
getResultsForPresentation () | |
getSubitemIds () | |
filter ($a_root_node, $check_and) | |
Filter search result. More... | |
filterResults ($a_root_node) | |
Filter search area of result set public. More... | |
save ($a_type=DEFAULT_SEARCH) | |
Save search results. More... | |
read ($a_type=DEFAULT_SEARCH) | |
read search results More... | |
__updateEntryChilds ($a_obj_id, $a_childs) | |
Update childs for a specific entry. More... | |
__updateResultChilds ($a_ref_id, $a_childs) | |
Update childs for a specific result. More... | |
__initSearchSettingsObject () | |
preventOverwritingMaxhits ($a_flag=null) | |
If you call this function and pass "true" the maxhits setting will not be overwritten in __initSearchSettingsObject() More... | |
addObserver (&$a_class, $a_method) | |
The observer is used to call functions for filtering result. More... | |
callListeners ($a_ref_id, &$a_data) | |
Data Fields | |
const | SHOW_SPECIAL_CONTENT = 1 |
const | SHOW_CONTAINER_CONTENT = 2 |
const | SHOW_TOPICS_CONTENT = 3 |
$filter_mode = null | |
![]() | |
$permission = 'visible' | |
$user_id | |
$entries = array() | |
$results = array() | |
$observers = array() | |
$ilias | |
$ilAccess | |
$limit_reached = false | |
$result | |
Protected Member Functions | |
assignEntries ($a_entries) | |
initUserSearchCache () | |
![]() | |
initUserSearchCache () | |
Init user search cache. More... | |
Protected Attributes | |
$result_page_number = 0 | |
$topics = array() | |
$presentation_results = array() | |
$search_type = SHOP_CONTENT | |
![]() | |
$search_cache = null | |
$offset = 0 | |
$preventOverwritingMaxhits = false | |
Private Member Functions | |
__construct ($a_search_type) | |
Static Private Attributes | |
static | $_instance |
searchResult stores all result of a search query.
Offers methods like mergeResults. To merge result sets of different queries.
Definition at line 16 of file class.ilShopSearchResult.php.
|
private |
int | $a_search_type | SHOP_CONTENT | SHOP_ADVANCED_SEARCH |
Definition at line 52 of file class.ilShopSearchResult.php.
References $ilUser.
ilShopSearchResult::__initSearchSettingsObject | ( | ) |
Definition at line 187 of file class.ilShopSearchResult.php.
References ilPaymentSettings\_getInstance(), and ilSearchResult\setMaxHits().
Referenced by filter().
ilShopSearchResult::__updateEntryChilds | ( | $a_ref_id, | |
$a_childs | |||
) |
Definition at line 392 of file class.ilShopSearchResult.php.
Referenced by diffEntriesFromResult(), and mergeEntries().
ilShopSearchResult::_getInstance | ( | $a_search_type | ) |
$a_search_type |
Definition at line 39 of file class.ilShopSearchResult.php.
Referenced by ilShopGUI\__construct(), ilShopAdvancedSearchGUI\performSearch(), ilShopGUI\performSearch(), and ilShopAdvancedSearchGUI\searchObjects().
ilShopSearchResult::addEntry | ( | $a_ref_id, | |
$a_type, | |||
$found, | |||
$a_child_id = 0 |
|||
) |
Definition at line 351 of file class.ilShopSearchResult.php.
Referenced by diffEntriesFromResult(), and mergeEntries().
ilShopSearchResult::addPresentationResult | ( | $a_presentation_result = array() | ) |
Definition at line 335 of file class.ilShopSearchResult.php.
Referenced by getResultsForPresentation().
|
protected |
Definition at line 88 of file class.ilShopSearchResult.php.
Referenced by filter().
ilShopSearchResult::diffEntriesFromResult | ( | & | $result_obj | ) |
Definition at line 418 of file class.ilShopSearchResult.php.
References $ref_id, __updateEntryChilds(), addEntry(), and ilSearchResult\getEntries().
ilShopSearchResult::filter | ( | $a_root_node, | |
$check_and | |||
) |
Filter search result.
Do RBAC checks.
Allows paging of results for referenced objects
int | a_root_node node id |
bool | check_and and boolean search |
Definition at line 128 of file class.ilShopSearchResult.php.
References $ref_id, __initSearchSettingsObject(), ilSearchResult\__updateResultChilds(), ilPaymentObject\_lookupTopicId(), ilObject\_lookupType(), ilSearchResult\addResult(), assignEntries(), ilSearchResult\callListeners(), ilSearchResult\getEntries(), and ilSearchResult\getRequiredPermission().
ilShopSearchResult::getFilterMode | ( | ) |
ilShopSearchResult::getPresentationResults | ( | ) |
Definition at line 339 of file class.ilShopSearchResult.php.
ilShopSearchResult::getResultPageNumber | ( | ) |
Definition at line 330 of file class.ilShopSearchResult.php.
References $result_page_number.
Referenced by getResultsForPresentation().
ilShopSearchResult::getResultsForPresentation | ( | ) |
Definition at line 194 of file class.ilShopSearchResult.php.
References $lng, $presentation_results, ilSearchResult\$result, ilSearchResult\$results, ilPaymentObject\_checkExcSubtype(), ilObject\_lookupDescription(), ilObject\_lookupTitle(), ilPaymentObject\_lookupTopicId(), addPresentationResult(), ilSearchResult\getMaxHits(), getResultPageNumber(), ilSearchResult\getResults(), and getTopics().
ilShopSearchResult::getSearchType | ( | ) |
ilShopSearchResult::getTopics | ( | ) |
Definition at line 317 of file class.ilShopSearchResult.php.
Referenced by getResultsForPresentation().
ilShopSearchResult::getUniqueResults | ( | ) |
|
protected |
Definition at line 344 of file class.ilShopSearchResult.php.
ilShopSearchResult::mergeEntries | ( | & | $result_obj | ) |
Definition at line 408 of file class.ilShopSearchResult.php.
References __updateEntryChilds(), and addEntry().
ilShopSearchResult::setFilterMode | ( | $filter_mode | ) |
int | $filter_mode |
Definition at line 83 of file class.ilShopSearchResult.php.
References $filter_mode.
Referenced by ilShopGUI\executeCommand().
ilShopSearchResult::setResultPageNumber | ( | $a_result_page_number | ) |
Definition at line 326 of file class.ilShopSearchResult.php.
ilShopSearchResult::setSearchType | ( | $_search_type | ) |
Definition at line 60 of file class.ilShopSearchResult.php.
ilShopSearchResult::setTopics | ( | $a_topics = array() | ) |
Definition at line 321 of file class.ilShopSearchResult.php.
|
staticprivate |
Definition at line 22 of file class.ilShopSearchResult.php.
ilShopSearchResult::$filter_mode = null |
Definition at line 33 of file class.ilShopSearchResult.php.
Referenced by getFilterMode(), and setFilterMode().
|
protected |
Definition at line 26 of file class.ilShopSearchResult.php.
Referenced by getResultsForPresentation().
|
protected |
Definition at line 24 of file class.ilShopSearchResult.php.
Referenced by getResultPageNumber().
|
protected |
Definition at line 31 of file class.ilShopSearchResult.php.
Referenced by getSearchType().
|
protected |
Definition at line 25 of file class.ilShopSearchResult.php.
const ilShopSearchResult::SHOW_CONTAINER_CONTENT = 2 |
Definition at line 19 of file class.ilShopSearchResult.php.
Referenced by ilShopGUI\executeCommand().
const ilShopSearchResult::SHOW_SPECIAL_CONTENT = 1 |
Definition at line 18 of file class.ilShopSearchResult.php.
Referenced by ilShopGUI\executeCommand().
const ilShopSearchResult::SHOW_TOPICS_CONTENT = 3 |
Definition at line 20 of file class.ilShopSearchResult.php.