|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Validate Lucene search results Do access checks, create ref_ids from obj_ids... More...
Collaboration diagram for ilLuceneSearchResultFilter:Public Member Functions | |
| addFilter (ilLuceneResultFilter $filter) | |
| setCandidates (ilLuceneSearchResult $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 (int $a_user_id) |
Protected Member Functions | |
| __construct (int $a_user_id) | |
| Singleton constructor. More... | |
| checkFilter (int $a_ref_id) | |
| check appended filter More... | |
| append (int $a_ref_id, int $a_obj_id) | |
| Append to filtered results. More... | |
| isOffsetReached (int $a_current_nr) | |
| Check if offset is reached. More... | |
Protected Attributes | |
| int | $user_id |
| ilLuceneSearchResult | $result = null |
| array | $checked = [] |
| ilSearchSettings | $settings |
| ilUserSearchCache | $cache |
| string | $required_permission = 'visible' |
| bool | $limit_reached = false |
| int | $offset = 0 |
| array | $filters = array() |
| ilAccess | $access |
Static Protected Attributes | |
| static ilLuceneSearchResultFilter | $instance = null |
Validate Lucene search results Do access checks, create ref_ids from obj_ids...
Definition at line 30 of file class.ilLuceneSearchResultFilter.php.
|
protected |
Singleton constructor.
Definition at line 51 of file class.ilLuceneSearchResultFilter.php.
References $DIC, ilUserSearchCache\_getInstance(), ILIAS\Repository\access(), ilSearchSettings\getInstance(), getUserId(), and ILIAS\Repository\settings().
Here is the call graph for this function:| ilLuceneSearchResultFilter::addFilter | ( | ilLuceneResultFilter | $filter | ) |
Definition at line 70 of file class.ilLuceneSearchResultFilter.php.
|
protected |
Append to filtered results.
Definition at line 240 of file class.ilLuceneSearchResultFilter.php.
References ILIAS\UI\examples\Symbol\Glyph\Checked\checked().
Referenced by filter().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
check appended filter
Definition at line 227 of file class.ilLuceneSearchResultFilter.php.
Referenced by filter().
Here is the caller graph for this function:| ilLuceneSearchResultFilter::filter | ( | ) |
Filter search results.
Do RBAC checks.
Definition at line 168 of file class.ilLuceneSearchResultFilter.php.
References $counter, $ref_id, ilObject\_getAllReferences(), ILIAS\Repository\access(), append(), checkFilter(), getCandidates(), ilLoggerFactory\getLogger(), getResultIds(), and ILIAS\Repository\settings().
Here is the call graph for this function:| ilLuceneSearchResultFilter::getCandidates | ( | ) |
get result ids
Definition at line 86 of file class.ilLuceneSearchResultFilter.php.
References $result.
Referenced by filter().
Here is the caller graph for this function:
|
static |
Definition at line 62 of file class.ilLuceneSearchResultFilter.php.
References $instance.
Referenced by ilSoapObjectAdministration\searchObjects().
Here is the caller graph for this function:| ilLuceneSearchResultFilter::getMaxHits | ( | ) |
get max hits
Definition at line 150 of file class.ilLuceneSearchResultFilter.php.
References ILIAS\Repository\settings().
Referenced by loadFromDb().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLuceneSearchResultFilter::getRequiredPermission | ( | ) |
Get required permission.
Definition at line 102 of file class.ilLuceneSearchResultFilter.php.
References $required_permission.
| ilLuceneSearchResultFilter::getResultIds | ( | ) |
get filtered ids
Definition at line 120 of file class.ilLuceneSearchResultFilter.php.
References $checked.
Referenced by filter().
Here is the caller graph for this function:| ilLuceneSearchResultFilter::getResultObjIds | ( | ) |
get filtered ids
Definition at line 129 of file class.ilLuceneSearchResultFilter.php.
References ILIAS\UI\examples\Symbol\Glyph\Checked\checked().
Here is the call graph for this function:| ilLuceneSearchResultFilter::getResults | ( | ) |
get results
Definition at line 142 of file class.ilLuceneSearchResultFilter.php.
References $checked.
| ilLuceneSearchResultFilter::getUserId | ( | ) |
Get user id.
Definition at line 94 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 111 of file class.ilLuceneSearchResultFilter.php.
References $limit_reached.
|
protected |
Check if offset is reached.
| int | $a_current_nr | Current result number |
Definition at line 250 of file class.ilLuceneSearchResultFilter.php.
References $offset.
| ilLuceneSearchResultFilter::loadFromDb | ( | ) |
Load results from db.
Definition at line 158 of file class.ilLuceneSearchResultFilter.php.
References ILIAS\UI\examples\Symbol\Glyph\Checked\checked(), and getMaxHits().
Here is the call graph for this function:| ilLuceneSearchResultFilter::setCandidates | ( | ilLuceneSearchResult | $a_ids | ) |
Set result ids.
Definition at line 78 of file class.ilLuceneSearchResultFilter.php.
|
protected |
Definition at line 45 of file class.ilLuceneSearchResultFilter.php.
|
protected |
Definition at line 38 of file class.ilLuceneSearchResultFilter.php.
|
protected |
Definition at line 36 of file class.ilLuceneSearchResultFilter.php.
Referenced by getResultIds(), and getResults().
|
protected |
Definition at line 43 of file class.ilLuceneSearchResultFilter.php.
|
staticprotected |
Definition at line 32 of file class.ilLuceneSearchResultFilter.php.
Referenced by getInstance().
|
protected |
Definition at line 40 of file class.ilLuceneSearchResultFilter.php.
Referenced by isLimitReached().
|
protected |
Definition at line 41 of file class.ilLuceneSearchResultFilter.php.
Referenced by isOffsetReached().
|
protected |
Definition at line 39 of file class.ilLuceneSearchResultFilter.php.
Referenced by getRequiredPermission().
|
protected |
Definition at line 35 of file class.ilLuceneSearchResultFilter.php.
Referenced by getCandidates().
|
protected |
Definition at line 37 of file class.ilLuceneSearchResultFilter.php.
|
protected |
Definition at line 34 of file class.ilLuceneSearchResultFilter.php.
Referenced by getUserId().