ILIAS
eassessment Revision 61809
|
Validate Lucene search results Do access checks, create ref_ids from obj_ids... More...
Public Member Functions | |
addFilter (ilLuceneResultFilter $filter) | |
add filter | |
setCandidates ($a_ids) | |
Set result ids. | |
getCandidates () | |
get result ids | |
getUserId () | |
Get user id. | |
getRequiredPermission () | |
Get required permission. | |
isLimitReached () | |
Check if search max hits is reached. | |
getResultIds () | |
get filtered ids | |
getResultObjIds () | |
get filtered ids | |
getResults () | |
get results | |
getMaxHits () | |
get max hits | |
loadFromDb () | |
Load results from db. | |
filter () | |
Filter search results. |
Static Public Member Functions | |
static | getInstance ($a_user_id) |
Protected Member Functions | |
__construct ($a_user_id) | |
Singleton constructor. | |
checkFilter ($a_ref_id) | |
check appended filter | |
append ($a_ref_id, $a_obj_id) | |
Append to filtered results. | |
isOffsetReached ($a_current_nr) | |
Check if offset is reached. |
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(), getInstance(), and getUserId().
ilLuceneSearchResultFilter::addFilter | ( | ilLuceneResultFilter | $filter | ) |
add filter
@return |
Definition at line 86 of file class.ilLuceneSearchResultFilter.php.
|
protected |
Append to filtered results.
int | ref_id |
int | obj_id |
Definition at line 284 of file class.ilLuceneSearchResultFilter.php.
Referenced by filter().
|
protected |
check appended filter
int | $a_ref_id | reference id |
Definition at line 267 of file class.ilLuceneSearchResultFilter.php.
Referenced by filter().
ilLuceneSearchResultFilter::filter | ( | ) |
Filter search results.
Do RBAC checks.
public
int | root node id |
bool | check and boolean search |
Definition at line 197 of file class.ilLuceneSearchResultFilter.php.
References $ilLog, $ref_id, ilObject\_getAllReferences(), append(), checkFilter(), getCandidates(), getRequiredPermission(), getResultIds(), and isOffsetReached().
ilLuceneSearchResultFilter::getCandidates | ( | ) |
get result ids
Definition at line 105 of file class.ilLuceneSearchResultFilter.php.
Referenced by filter().
|
static |
int | $a_user_id | user_id |
Definition at line 72 of file class.ilLuceneSearchResultFilter.php.
References $instance.
Referenced by __construct(), ilLuceneAdvancedSearchGUI\performSearch(), ilLuceneSearchGUI\performSearch(), ilLuceneAdvancedSearchGUI\showSavedResults(), and ilLuceneSearchGUI\showSavedResults().
ilLuceneSearchResultFilter::getMaxHits | ( | ) |
get max hits
Definition at line 172 of file class.ilLuceneSearchResultFilter.php.
ilLuceneSearchResultFilter::getRequiredPermission | ( | ) |
Get required permission.
Definition at line 123 of file class.ilLuceneSearchResultFilter.php.
References $required_permission.
Referenced by filter().
ilLuceneSearchResultFilter::getResultIds | ( | ) |
get filtered ids
Definition at line 141 of file class.ilLuceneSearchResultFilter.php.
Referenced by filter().
ilLuceneSearchResultFilter::getResultObjIds | ( | ) |
get filtered ids
Definition at line 150 of file class.ilLuceneSearchResultFilter.php.
ilLuceneSearchResultFilter::getResults | ( | ) |
get results
Definition at line 163 of file class.ilLuceneSearchResultFilter.php.
ilLuceneSearchResultFilter::getUserId | ( | ) |
Get user id.
Definition at line 114 of file class.ilLuceneSearchResultFilter.php.
References $user_id.
Referenced by __construct().
ilLuceneSearchResultFilter::isLimitReached | ( | ) |
Check if search max hits is reached.
Definition at line 132 of file class.ilLuceneSearchResultFilter.php.
References $limit_reached.
|
protected |
Check if offset is reached.
int | $a_current_nr | Current result number |
Definition at line 294 of file class.ilLuceneSearchResultFilter.php.
Referenced by filter().
ilLuceneSearchResultFilter::loadFromDb | ( | ) |
Load results from db.
Definition at line 181 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 96 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().