| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
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 35 of file class.ilLuceneSearchResultFilter.php.
      
  | 
  protected | 
Singleton constructor.
Definition at line 56 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 75 of file class.ilLuceneSearchResultFilter.php.
      
  | 
  protected | 
Append to filtered results.
Definition at line 244 of file class.ilLuceneSearchResultFilter.php.
Referenced by filter().
 Here is the caller graph for this function:
      
  | 
  protected | 
check appended filter
Definition at line 231 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 172 of file class.ilLuceneSearchResultFilter.php.
References $ref_id, ilObject\_getAllReferences(), ILIAS\Repository\access(), append(), checkFilter(), getCandidates(), ilLoggerFactory\getLogger(), getRequiredPermission(), getResultIds(), isOffsetReached(), and ILIAS\Repository\settings().
 Here is the call graph for this function:| ilLuceneSearchResultFilter::getCandidates | ( | ) | 
get result ids
Definition at line 91 of file class.ilLuceneSearchResultFilter.php.
References $result.
Referenced by filter().
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 67 of file class.ilLuceneSearchResultFilter.php.
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 155 of file class.ilLuceneSearchResultFilter.php.
References ILIAS\Repository\settings().
 Here is the call graph for this function:| ilLuceneSearchResultFilter::getRequiredPermission | ( | ) | 
Get required permission.
Definition at line 107 of file class.ilLuceneSearchResultFilter.php.
References $required_permission.
Referenced by filter().
 Here is the caller graph for this function:| ilLuceneSearchResultFilter::getResultIds | ( | ) | 
get filtered ids
Definition at line 125 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 134 of file class.ilLuceneSearchResultFilter.php.
| ilLuceneSearchResultFilter::getResults | ( | ) | 
get results
Definition at line 147 of file class.ilLuceneSearchResultFilter.php.
References $checked.
| ilLuceneSearchResultFilter::getUserId | ( | ) | 
Get user id.
Definition at line 99 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 116 of file class.ilLuceneSearchResultFilter.php.
References $limit_reached.
      
  | 
  protected | 
Check if offset is reached.
| int | $a_current_nr | Current result number | 
Definition at line 254 of file class.ilLuceneSearchResultFilter.php.
References $offset.
Referenced by filter().
 Here is the caller graph for this function:| ilLuceneSearchResultFilter::loadFromDb | ( | ) | 
Load results from db.
Definition at line 163 of file class.ilLuceneSearchResultFilter.php.
| ilLuceneSearchResultFilter::setCandidates | ( | ilLuceneSearchResult | $a_ids | ) | 
Set result ids.
Definition at line 83 of file class.ilLuceneSearchResultFilter.php.
      
  | 
  protected | 
Definition at line 50 of file class.ilLuceneSearchResultFilter.php.
      
  | 
  protected | 
Definition at line 43 of file class.ilLuceneSearchResultFilter.php.
      
  | 
  protected | 
Definition at line 41 of file class.ilLuceneSearchResultFilter.php.
Referenced by getResultIds(), and getResults().
      
  | 
  protected | 
Definition at line 48 of file class.ilLuceneSearchResultFilter.php.
      
  | 
  staticprotected | 
Definition at line 37 of file class.ilLuceneSearchResultFilter.php.
      
  | 
  protected | 
Definition at line 45 of file class.ilLuceneSearchResultFilter.php.
Referenced by isLimitReached().
      
  | 
  protected | 
Definition at line 46 of file class.ilLuceneSearchResultFilter.php.
Referenced by isOffsetReached().
      
  | 
  protected | 
Definition at line 44 of file class.ilLuceneSearchResultFilter.php.
Referenced by getRequiredPermission().
      
  | 
  protected | 
Definition at line 40 of file class.ilLuceneSearchResultFilter.php.
Referenced by getCandidates().
      
  | 
  protected | 
Definition at line 42 of file class.ilLuceneSearchResultFilter.php.
      
  | 
  protected | 
Definition at line 39 of file class.ilLuceneSearchResultFilter.php.
Referenced by getUserId().