ILIAS
Release_4_4_x_branch Revision 61816
|
searchResult stores all result of a search query. More...
Public Member Functions | |
ilShopSearchResult ($a_search_type) | |
setSearchType ($_search_type) | |
getSearchType () | |
filter ($a_root_node, $check_and) | |
Filter search result. | |
__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) | |
add search result entry Entries are stored with 'obj_id'. | |
__updateEntryChilds ($a_ref_id, $a_childs) | |
Update childs for a specific entry. | |
mergeEntries (&$result_obj) | |
merge entries of this instance and another result object | |
diffEntriesFromResult (&$result_obj) | |
diff entries of this instance and another result object Used for search in results | |
getUniqueResults () | |
Get unique results. | |
Public Member Functions inherited from ilSearchResult | |
ilSearchResult ($a_user_id=0) | |
Constructor public. | |
setRequiredPermission ($a_permission) | |
Set the required permission for the rbac checks in function 'filter()'. | |
getRequiredPermission () | |
setUserId ($a_user_id) | |
getUserId () | |
getEntries () | |
isLimitReached () | |
setMaxHits ($a_max_hits) | |
getMaxHits () | |
isOffsetReached ($a_counter) | |
Check if offset is reached. | |
numEntries () | |
Check number of entries public. | |
intersectEntries (&$result_obj) | |
Build intersection of entries (all entries that are present in both result sets) | |
addResult ($a_ref_id, $a_obj_id, $a_type) | |
add search result Results are stored with 'ref_id'. | |
getResults () | |
getResultIds () | |
get result ids | |
getResultsByObjId () | |
getSubitemIds () | |
filterResults ($a_root_node) | |
Filter search area of result set public. | |
save ($a_type=DEFAULT_SEARCH) | |
Save search results. | |
read ($a_type=DEFAULT_SEARCH) | |
read search results | |
__updateResultChilds ($a_ref_id, $a_childs) | |
Update childs for a specific result. | |
preventOverwritingMaxhits ($a_flag=null) | |
If you call this function and pass "true" the maxhits setting will not be overwritten in __initSearchSettingsObject() | |
addObserver (&$a_class, $a_method) | |
The observer is used to call functions for filtering result. | |
callListeners ($a_ref_id, &$a_data) |
Protected Member Functions | |
assignEntries ($a_entries) | |
initUserSearchCache () | |
Init user search cache. |
Protected Attributes | |
$result_page_number = 0 | |
$topics = array() | |
$presentation_results = array() | |
$search_type = '' | |
Protected Attributes inherited from ilSearchResult | |
$search_cache = null | |
$offset = 0 | |
$preventOverwritingMaxhits = false |
Additional Inherited Members | |
Data Fields inherited from ilSearchResult | |
$permission = 'visible' | |
$user_id | |
$entries = array() | |
$results = array() | |
$observers = array() | |
$ilias | |
$ilAccess | |
$limit_reached = false | |
$result |
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.
ilShopSearchResult::__initSearchSettingsObject | ( | ) |
Reimplemented from ilSearchResult.
Definition at line 144 of file class.ilShopSearchResult.php.
References ilPaymentSettings\_getInstance(), and ilSearchResult\setMaxHits().
Referenced by filter().
ilShopSearchResult::__updateEntryChilds | ( | $a_obj_id, | |
$a_childs | |||
) |
Update childs for a specific entry.
integer | object object_id |
array | array of child ids. E.g 'pg', 'st' private |
Reimplemented from ilSearchResult.
Definition at line 396 of file class.ilShopSearchResult.php.
Referenced by diffEntriesFromResult(), and mergeEntries().
ilShopSearchResult::addEntry | ( | $a_obj_id, | |
$a_type, | |||
$found, | |||
$a_child_id = 0 |
|||
) |
add search result entry Entries are stored with 'obj_id'.
This method is typically called to store db query results.
integer | object object_id |
string | obj_type 'lm' or 'crs' ... |
array | value position of query parser words in query string |
integer | child id e.g id of page or chapter public |
Reimplemented from ilSearchResult.
Definition at line 355 of file class.ilShopSearchResult.php.
Referenced by diffEntriesFromResult(), and mergeEntries().
ilShopSearchResult::addPresentationResult | ( | $a_presentation_result = array() | ) |
Definition at line 339 of file class.ilShopSearchResult.php.
Referenced by getResultsForPresentation().
|
protected |
Definition at line 44 of file class.ilShopSearchResult.php.
Referenced by filter().
ilShopSearchResult::diffEntriesFromResult | ( | & | $result_obj | ) |
diff entries of this instance and another result object Used for search in results
object | result_obj public |
Reimplemented from ilSearchResult.
Definition at line 422 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
public
int | a_root_node node id |
bool | check_and and boolean search |
Reimplemented from ilSearchResult.
Definition at line 85 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::getPresentationResults | ( | ) |
Definition at line 343 of file class.ilShopSearchResult.php.
ilShopSearchResult::getResultPageNumber | ( | ) |
Definition at line 334 of file class.ilShopSearchResult.php.
References $result_page_number.
Referenced by getResultsForPresentation().
ilShopSearchResult::getResultsForPresentation | ( | ) |
Reimplemented from ilSearchResult.
Definition at line 151 of file class.ilShopSearchResult.php.
References $_GET, $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 | ( | ) |
Definition at line 39 of file class.ilShopSearchResult.php.
References $search_type.
ilShopSearchResult::getTopics | ( | ) |
Definition at line 321 of file class.ilShopSearchResult.php.
Referenced by getResultsForPresentation().
ilShopSearchResult::getUniqueResults | ( | ) |
Get unique results.
Return an array of obj_id (No multiple results for references) Results are stored with 'ref_id'. This method is typically called after checking access of entries. public
Reimplemented from ilSearchResult.
Definition at line 441 of file class.ilShopSearchResult.php.
References ilSearchResult\$results.
ilShopSearchResult::ilShopSearchResult | ( | $a_search_type | ) |
Definition at line 23 of file class.ilShopSearchResult.php.
References $ilUser.
|
protected |
Init user search cache.
private
Reimplemented from ilSearchResult.
Definition at line 348 of file class.ilShopSearchResult.php.
ilShopSearchResult::mergeEntries | ( | & | $result_obj | ) |
merge entries of this instance and another result object
object | result_obj public |
Reimplemented from ilSearchResult.
Definition at line 412 of file class.ilShopSearchResult.php.
References __updateEntryChilds(), and addEntry().
ilShopSearchResult::setResultPageNumber | ( | $a_result_page_number | ) |
Definition at line 330 of file class.ilShopSearchResult.php.
ilShopSearchResult::setSearchType | ( | $_search_type | ) |
Definition at line 32 of file class.ilShopSearchResult.php.
ilShopSearchResult::setTopics | ( | $a_topics = array() | ) |
Definition at line 325 of file class.ilShopSearchResult.php.
|
protected |
Definition at line 20 of file class.ilShopSearchResult.php.
Referenced by getResultsForPresentation().
|
protected |
Definition at line 18 of file class.ilShopSearchResult.php.
Referenced by getResultPageNumber().
|
protected |
Definition at line 21 of file class.ilShopSearchResult.php.
Referenced by getSearchType().
|
protected |
Definition at line 19 of file class.ilShopSearchResult.php.