|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Validate Lucene search results Do access checks, create ref_ids from obj_ids... More...
Collaboration diagram for ilLuceneSearchResultFilter:Public Member Functions | |
| addFilter (ilLuceneResultFilter $filter) | |
| add filter More... | |
| setCandidates ($a_ids) | |
| Set result ids. More... | |
| getCandidates () | |
| get result ids More... | |
| getUserId () | |
| Get user id. More... | |
| getRequiredPermission () | |
| Get required permission. More... | |
| isLimitReached () | |
| Check if search max hits is reached. More... | |
| getResultIds () | |
| get filtered ids More... | |
| getResultObjIds () | |
| get filtered ids More... | |
| getResults () | |
| get results More... | |
| getMaxHits () | |
| get max hits More... | |
| loadFromDb () | |
| Load results from db. More... | |
| filter () | |
| Filter search results. More... | |
Static Public Member Functions | |
| static | getInstance ($a_user_id) |
Protected Member Functions | |
| __construct ($a_user_id) | |
| Singleton constructor. More... | |
| checkFilter ($a_ref_id) | |
| check appended filter More... | |
| append ($a_ref_id, $a_obj_id) | |
| Append to filtered results. More... | |
| isOffsetReached ($a_current_nr) | |
| Check if offset is reached. More... | |
Protected Attributes | |
| $user_id = null | |
| $result = array() | |
| $checked = array() | |
| $settings | |
| $cache | |
| $required_permission = 'visible' | |
| $limit_reached = false | |
| $offset = 0 | |
| $filters = array() | |
Static Protected Attributes | |
| static | $instance = null |
Validate Lucene search results Do access checks, create ref_ids from obj_ids...
Definition at line 34 of file class.ilLuceneSearchResultFilter.php.
|
protected |
Singleton constructor.
| int | $a_usr_id | user id |
Definition at line 55 of file class.ilLuceneSearchResultFilter.php.
References ilUserSearchCache\_getInstance(), ilSearchSettings\getInstance(), getUserId(), and settings().
Here is the call graph for this function:| ilLuceneSearchResultFilter::addFilter | ( | ilLuceneResultFilter | $filter | ) |
add filter
return
Definition at line 85 of file class.ilLuceneSearchResultFilter.php.
|
protected |
Append to filtered results.
| int | ref_id |
| int | obj_id |
Definition at line 273 of file class.ilLuceneSearchResultFilter.php.
Referenced by filter().
Here is the caller graph for this function:
|
protected |
check appended filter
| int | $a_ref_id | reference id |
Definition at line 258 of file class.ilLuceneSearchResultFilter.php.
Referenced by filter().
Here is the caller graph for this function:| ilLuceneSearchResultFilter::filter | ( | ) |
Filter search results.
Do RBAC checks.
@access public
| int | root node id |
| bool | check and boolean search |
Definition at line 195 of file class.ilLuceneSearchResultFilter.php.
References $counter, ilObject\_getAllReferences(), append(), checkFilter(), getCandidates(), ilLoggerFactory\getLogger(), getResultIds(), and settings().
Here is the call graph for this function:| ilLuceneSearchResultFilter::getCandidates | ( | ) |
get result ids
Definition at line 104 of file class.ilLuceneSearchResultFilter.php.
Referenced by filter().
Here is the caller graph for this function:
|
static |
| int | $a_user_id | user_id |
Definition at line 72 of file class.ilLuceneSearchResultFilter.php.
References $instance.
Referenced by ilLuceneAdvancedSearchGUI\performSearch(), ilLuceneSearchGUI\performSearch(), ilSoapObjectAdministration\searchObjects(), ilLuceneAdvancedSearchGUI\showSavedResults(), and ilLuceneSearchGUI\showSavedResults().
Here is the caller graph for this function:| ilLuceneSearchResultFilter::getMaxHits | ( | ) |
get max hits
Definition at line 170 of file class.ilLuceneSearchResultFilter.php.
References settings().
Here is the call graph for this function:| ilLuceneSearchResultFilter::getRequiredPermission | ( | ) |
Get required permission.
Definition at line 122 of file class.ilLuceneSearchResultFilter.php.
References $required_permission.
| ilLuceneSearchResultFilter::getResultIds | ( | ) |
get filtered ids
Definition at line 140 of file class.ilLuceneSearchResultFilter.php.
Referenced by filter().
Here is the caller graph for this function:| ilLuceneSearchResultFilter::getResultObjIds | ( | ) |
get filtered ids
Definition at line 149 of file class.ilLuceneSearchResultFilter.php.
| ilLuceneSearchResultFilter::getResults | ( | ) |
get results
Definition at line 161 of file class.ilLuceneSearchResultFilter.php.
| ilLuceneSearchResultFilter::getUserId | ( | ) |
Get user id.
Definition at line 113 of file class.ilLuceneSearchResultFilter.php.
References $user_id.
Referenced by __construct().
Here is the caller graph for this function:| ilLuceneSearchResultFilter::isLimitReached | ( | ) |
Check if search max hits is reached.
Definition at line 131 of file class.ilLuceneSearchResultFilter.php.
References $limit_reached.
|
protected |
Check if offset is reached.
| int | $a_current_nr | Current result number |
Definition at line 283 of file class.ilLuceneSearchResultFilter.php.
| ilLuceneSearchResultFilter::loadFromDb | ( | ) |
Load results from db.
Definition at line 179 of file class.ilLuceneSearchResultFilter.php.
| ilLuceneSearchResultFilter::setCandidates | ( | $a_ids | ) |
Set result ids.
| mixed | $a_ids | Lucene result ids or instance of Iterator |
Definition at line 95 of file class.ilLuceneSearchResultFilter.php.
|
protected |
Definition at line 42 of file class.ilLuceneSearchResultFilter.php.
|
protected |
Definition at line 40 of file class.ilLuceneSearchResultFilter.php.
|
protected |
Definition at line 47 of file class.ilLuceneSearchResultFilter.php.
|
staticprotected |
Definition at line 36 of file class.ilLuceneSearchResultFilter.php.
Referenced by getInstance().
|
protected |
Definition at line 44 of file class.ilLuceneSearchResultFilter.php.
Referenced by isLimitReached().
|
protected |
Definition at line 45 of file class.ilLuceneSearchResultFilter.php.
|
protected |
Definition at line 43 of file class.ilLuceneSearchResultFilter.php.
Referenced by getRequiredPermission().
|
protected |
Definition at line 39 of file class.ilLuceneSearchResultFilter.php.
|
protected |
Definition at line 41 of file class.ilLuceneSearchResultFilter.php.
|
protected |
Definition at line 38 of file class.ilLuceneSearchResultFilter.php.
Referenced by getUserId().