ILIAS  release_7 Revision v7.30-3-g800a261c036
ilSearchResult Class Reference
+ Collaboration diagram for ilSearchResult:

Public Member Functions

 __construct ($a_user_id=0)
 Constructor public. More...
 
 setRequiredPermission ($a_permission)
 Set the required permission for the rbac checks in function 'filter()'. More...
 
 getRequiredPermission ()
 
 setUserId ($a_user_id)
 
 getUserId ()
 
 getEntries ()
 
 isLimitReached ()
 
 setMaxHits ($a_max_hits)
 
 getMaxHits ()
 
 isOffsetReached ($a_counter)
 Check if offset is reached. More...
 
 addEntry ($a_obj_id, $a_type, $found, $a_child_id=0)
 add search result entry Entries are stored with 'obj_id'. More...
 
 numEntries ()
 Check number of entries public. More...
 
 mergeEntries (&$result_obj)
 merge entries of this instance and another result object More...
 
 diffEntriesFromResult (&$result_obj)
 diff entries of this instance and another result object Used for search in results More...
 
 intersectEntries (&$result_obj)
 Build intersection of entries (all entries that are present in both result sets) More...
 
 addResult ($a_ref_id, $a_obj_id, $a_type)
 add search result Results are stored with 'ref_id'. More...
 
 getResults ()
 
 getResultIds ()
 get result ids More...
 
 getResultsByObjId ()
 
 getUniqueResults ()
 Get unique results. More...
 
 getResultsForPresentation ()
 
 getSubitemIds ()
 
 filter ($a_root_node, $check_and)
 Filter search result. More...
 
 filterResults ($a_root_node)
 Filter search area of result set public. More...
 
 save ($a_type=DEFAULT_SEARCH)
 Save search results. More...
 
 read ($a_type=DEFAULT_SEARCH)
 read search results More...
 
 __updateEntryChilds ($a_obj_id, $a_childs)
 Update childs for a specific entry. More...
 
 __updateResultChilds ($a_ref_id, $a_childs)
 Update childs for a specific result. More...
 
 __initSearchSettingsObject ()
 
 preventOverwritingMaxhits ($a_flag=null)
 If you call this function and pass "true" the maxhits setting will not be overwritten in __initSearchSettingsObject() More...
 
 addObserver (&$a_class, $a_method)
 The observer is used to call functions for filtering result. More...
 
 callListeners ($a_ref_id, &$a_data)
 

Data Fields

 $permission = 'visible'
 
 $user_id
 
 $entries = array()
 
 $results = array()
 
 $observers = array()
 
 $ilias
 
 $ilAccess
 
 $limit_reached = false
 
 $result
 

Protected Member Functions

 initUserSearchCache ()
 Init user search cache. More...
 

Protected Attributes

 $search_cache = null
 
 $offset = 0
 
 $preventOverwritingMaxhits = false
 

Private Attributes

 $logger
 

Detailed Description

Definition at line 40 of file class.ilSearchResult.php.

Constructor & Destructor Documentation

◆ __construct()

ilSearchResult::__construct (   $a_user_id = 0)

Constructor public.

Definition at line 71 of file class.ilSearchResult.php.

References $DIC, $ilAccess, $ilDB, $ilias, $ilUser, __initSearchSettingsObject(), and initUserSearchCache().

72  {
73  global $DIC;
74 
75  $ilias = $DIC['ilias'];
76  $ilAccess = $DIC['ilAccess'];
77  $ilDB = $DIC['ilDB'];
78  $ilUser = $DIC['ilUser'];
79 
80  $this->logger = $DIC->logger()->src();
81 
82  $this->ilAccess = $ilAccess;
83  if ($a_user_id) {
84  $this->user_id = $a_user_id;
85  } else {
86  $this->user_id = $ilUser->getId();
87  }
89  $this->initUserSearchCache();
90 
91  $this->db = $ilDB;
92  }
initUserSearchCache()
Init user search cache.
global $DIC
Definition: goto.php:24
global $ilDB
$ilUser
Definition: imgupload.php:18
+ Here is the call graph for this function:

Member Function Documentation

◆ __initSearchSettingsObject()

ilSearchResult::__initSearchSettingsObject ( )

Definition at line 539 of file class.ilSearchResult.php.

References preventOverwritingMaxhits(), and setMaxHits().

Referenced by __construct().

540  {
541  include_once 'Services/Search/classes/class.ilSearchSettings.php';
542 
543  $this->search_settings = new ilSearchSettings();
544  if (!$this->preventOverwritingMaxhits()) {
545  $this->setMaxHits($this->search_settings->getMaxHits());
546  }
547  }
preventOverwritingMaxhits($a_flag=null)
If you call this function and pass "true" the maxhits setting will not be overwritten in __initSearch...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __updateEntryChilds()

ilSearchResult::__updateEntryChilds (   $a_obj_id,
  $a_childs 
)

Update childs for a specific entry.

Parameters
integerobject object_id
arrayarray of child ids. E.g 'pg', 'st' private

Definition at line 507 of file class.ilSearchResult.php.

Referenced by diffEntriesFromResult(), intersectEntries(), and mergeEntries().

508  {
509  if ($this->entries[$a_obj_id] and is_array($a_childs)) {
510  foreach ($a_childs as $child_id) {
511  if ($child_id) {
512  $this->entries[$a_obj_id]['child'][$child_id] = $child_id;
513  }
514  }
515  return true;
516  }
517  return false;
518  }
+ Here is the caller graph for this function:

◆ __updateResultChilds()

ilSearchResult::__updateResultChilds (   $a_ref_id,
  $a_childs 
)

Update childs for a specific result.

Parameters
integerobject ref_id
arrayarray of child ids. E.g 'pg', 'st' private

Definition at line 526 of file class.ilSearchResult.php.

Referenced by filter(), and filterResults().

527  {
528  if ($this->results[$a_ref_id] and is_array($a_childs)) {
529  foreach ($a_childs as $child_id) {
530  $this->results[$a_ref_id]['child'][$child_id] = $child_id;
531  }
532  return true;
533  }
534  return false;
535  }
+ Here is the caller graph for this function:

◆ addEntry()

ilSearchResult::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.

Parameters
integerobject object_id
stringobj_type 'lm' or 'crs' ...
arrayvalue position of query parser words in query string
integerchild id e.g id of page or chapter public

Definition at line 158 of file class.ilSearchResult.php.

Referenced by diffEntriesFromResult(), intersectEntries(), and mergeEntries().

159  {
160  // Create new entry if it not exists
161  if (!$this->entries[$a_obj_id]) {
162  $this->entries[$a_obj_id]['obj_id'] = $a_obj_id;
163  $this->entries[$a_obj_id]['type'] = $a_type;
164  $this->entries[$a_obj_id]['found'] = $found;
165  $this->entries[$a_obj_id]['child'] = [];
166 
167  if ($a_child_id and $a_child_id != $a_obj_id) {
168  $this->entries[$a_obj_id]['child'][$a_child_id] = $a_child_id;
169  }
170  } else {
171  // replace or add child ('pg','st') id
172  if ($a_child_id and $a_child_id != $a_obj_id) {
173  $this->entries[$a_obj_id]['child'][$a_child_id] = $a_child_id;
174  }
175 
176  // UPDATE FOUND
177  $counter = 0;
178  foreach ($found as $position) {
179  if ($position) {
180  $this->entries[$a_obj_id]['found'][$counter] = $position;
181  }
182  $counter++;
183  }
184  }
185  return true;
186  }
+ Here is the caller graph for this function:

◆ addObserver()

ilSearchResult::addObserver ( $a_class,
  $a_method 
)

The observer is used to call functions for filtering result.

Every callback function should support the following parameters: array of ids. E.g: ref_id = 5,array(obj_id = 1,type = 'crs'), The function should return true or false.

Parameters
objectclass of callback function
stringname of callback method public

Definition at line 591 of file class.ilSearchResult.php.

592  {
593  $this->observers[] = array('class' => $a_class,
594  'method' => $a_method);
595  return true;
596  }

◆ addResult()

ilSearchResult::addResult (   $a_ref_id,
  $a_obj_id,
  $a_type 
)

add search result Results are stored with 'ref_id'.

This method is typically called after checking access of entries.

Parameters
integerref_id
integerobj_id
stringobj_type 'lm' or 'crs' ... public

Definition at line 279 of file class.ilSearchResult.php.

Referenced by filter(), and filterResults().

280  {
281  $this->results[$a_ref_id]['ref_id'] = $a_ref_id;
282  $this->results[$a_ref_id]['obj_id'] = $a_obj_id;
283  $this->results[$a_ref_id]['type'] = $a_type;
284  }
+ Here is the caller graph for this function:

◆ callListeners()

ilSearchResult::callListeners (   $a_ref_id,
$a_data 
)

Definition at line 597 of file class.ilSearchResult.php.

Referenced by filter().

598  {
599  foreach ($this->observers as $observer) {
600  $class = &$observer['class'];
601  $method = $observer['method'];
602 
603  if (!$class->$method($a_ref_id, $a_data)) {
604  return false;
605  }
606  }
607  return true;
608  }
+ Here is the caller graph for this function:

◆ diffEntriesFromResult()

ilSearchResult::diffEntriesFromResult ( $result_obj)

diff entries of this instance and another result object Used for search in results

Parameters
objectresult_obj public

Definition at line 220 of file class.ilSearchResult.php.

References __updateEntryChilds(), addEntry(), and getEntries().

221  {
222  $new_entries = $this->getEntries();
223  $this->entries = array();
224 
225  // Get all checked objects
226  foreach ($this->search_cache->getCheckedItems() as $ref_id => $obj_id) {
227  if (isset($new_entries[$obj_id])) {
228  $this->addEntry(
229  $new_entries[$obj_id]['obj_id'],
230  $new_entries[$obj_id]['type'],
231  $new_entries[$obj_id]['found']
232  );
233  $this->__updateEntryChilds(
234  $new_entries[$obj_id]['obj_id'],
235  $new_entries[$obj_id]['child']
236  );
237  }
238  }
239  }
addEntry($a_obj_id, $a_type, $found, $a_child_id=0)
add search result entry Entries are stored with 'obj_id'.
__updateEntryChilds($a_obj_id, $a_childs)
Update childs for a specific entry.
+ Here is the call graph for this function:

◆ filter()

ilSearchResult::filter (   $a_root_node,
  $check_and 
)

Filter search result.

Do RBAC checks.

Allows paging of results for referenced objects

public

Parameters
introot node id
boolcheck and boolean search
Returns
bool success status

Definition at line 367 of file class.ilSearchResult.php.

References $DIC, $type, __updateResultChilds(), ilObject\_getAllReferences(), ilObject\_lookupType(), addResult(), callListeners(), getEntries(), getMaxHits(), getRequiredPermission(), isOffsetReached(), and ROOT_FOLDER_ID.

368  {
369  global $DIC;
370 
371  $tree = $DIC['tree'];
372 
373  // get ref_ids and check access
374  $counter = 0;
375  $offset_counter = 0;
376  foreach ($this->getEntries() as $entry) {
377  // boolean and failed continue
378  if ($check_and and in_array(0, $entry['found'])) {
379  continue;
380  }
381  // Types like role, rolt, user do not need rbac checks
382  $type = ilObject::_lookupType($entry['obj_id']);
383  if ($type == 'rolt' or $type == 'usr' or $type == 'role') {
384  if ($this->callListeners($entry['obj_id'], $entry)) {
385  $this->addResult($entry['obj_id'], $entry['obj_id'], $type);
386  if (is_array($entry['child'])) {
387  $counter += count($entry['child']);
388  }
389  // Stop if maximum of hits is reached
390  if (++$counter > $this->getMaxHits()) {
391  $this->limit_reached = true;
392  return true;
393  }
394  }
395  continue;
396  }
397  // Check referenced objects
398  foreach (ilObject::_getAllReferences($entry['obj_id']) as $ref_id) {
399  // Failed check: if ref id check is failed by previous search
400  if ($this->search_cache->isFailed($ref_id)) {
401  continue;
402  }
403  // Offset check
404  if ($this->search_cache->isChecked($ref_id) and !$this->isOffsetReached($offset_counter)) {
405  ++$offset_counter;
406  continue;
407  }
408 
409  if (!$this->callListeners($ref_id, $entry)) {
410  continue;
411  }
412 
413 
414 
415  // RBAC check
416  $type = ilObject::_lookupType($ref_id, true);
417  if ($this->ilAccess->checkAccessOfUser(
418  $this->getUserId(),
419  $this->getRequiredPermission(),
420  '',
421  $ref_id,
422  $type,
423  $entry['obj_id']
424  )) {
425  if ($a_root_node == ROOT_FOLDER_ID or $tree->isGrandChild($a_root_node, $ref_id)) {
426  // Call listeners
427  #if($this->callListeners($ref_id,$entry))
428  if (1) {
429  $this->addResult($ref_id, $entry['obj_id'], $type);
430  $this->search_cache->appendToChecked($ref_id, $entry['obj_id']);
431  $this->__updateResultChilds($ref_id, $entry['child']);
432 
433  $counter++;
434  $offset_counter++;
435  // Stop if maximum of hits is reached
436 
437  if ($counter >= $this->getMaxHits()) {
438  $this->limit_reached = true;
439  $this->search_cache->setResults($this->results);
440  return true;
441  }
442  }
443  }
444  continue;
445  }
446  $this->search_cache->appendToFailed($ref_id);
447  }
448  }
449  $this->search_cache->setResults($this->results);
450  return false;
451  }
isOffsetReached($a_counter)
Check if offset is reached.
$type
const ROOT_FOLDER_ID
Definition: constants.php:30
static _getAllReferences($a_id)
get all reference ids of object
global $DIC
Definition: goto.php:24
__updateResultChilds($a_ref_id, $a_childs)
Update childs for a specific result.
addResult($a_ref_id, $a_obj_id, $a_type)
add search result Results are stored with 'ref_id'.
static _lookupType($a_id, $a_reference=false)
lookup object type
callListeners($a_ref_id, &$a_data)
+ Here is the call graph for this function:

◆ filterResults()

ilSearchResult::filterResults (   $a_root_node)

Filter search area of result set public.

Definition at line 458 of file class.ilSearchResult.php.

References $DIC, $result, __updateResultChilds(), addResult(), and getResults().

459  {
460  global $DIC;
461 
462  $tree = $DIC['tree'];
463 
464  $tmp_results = $this->getResults();
465  $this->results = array();
466  foreach ($tmp_results as $result) {
467  if ($tree->isGrandChild($a_root_node, $result['ref_id']) and $tree->isInTree($result['ref_id'])) {
468  $this->addResult($result['ref_id'], $result['obj_id'], $result['type']);
469  $this->__updateResultChilds($result['ref_id'], $result['child']);
470  }
471  }
472 
473  return true;
474  }
global $DIC
Definition: goto.php:24
__updateResultChilds($a_ref_id, $a_childs)
Update childs for a specific result.
addResult($a_ref_id, $a_obj_id, $a_type)
add search result Results are stored with 'ref_id'.
+ Here is the call graph for this function:

◆ getEntries()

ilSearchResult::getEntries ( )

Definition at line 117 of file class.ilSearchResult.php.

Referenced by diffEntriesFromResult(), filter(), intersectEntries(), and numEntries().

118  {
119  return $this->entries ? $this->entries : array();
120  }
+ Here is the caller graph for this function:

◆ getMaxHits()

ilSearchResult::getMaxHits ( )

Definition at line 131 of file class.ilSearchResult.php.

Referenced by filter(), and initUserSearchCache().

132  {
133  return $this->max_hits;
134  }
+ Here is the caller graph for this function:

◆ getRequiredPermission()

ilSearchResult::getRequiredPermission ( )

Definition at line 102 of file class.ilSearchResult.php.

References $permission.

Referenced by filter().

103  {
104  return $this->permission;
105  }
+ Here is the caller graph for this function:

◆ getResultIds()

ilSearchResult::getResultIds ( )

get result ids

public

Returns
array result ids

Definition at line 297 of file class.ilSearchResult.php.

References getResults().

298  {
299  foreach ($this->getResults() as $id => $tmp) {
300  $ids[] = $id;
301  }
302  return $ids ? $ids : array();
303  }
+ Here is the call graph for this function:

◆ getResults()

ilSearchResult::getResults ( )

Definition at line 286 of file class.ilSearchResult.php.

Referenced by filterResults(), getResultIds(), getResultsByObjId(), getResultsForPresentation(), and getSubitemIds().

287  {
288  return $this->results ? $this->results : array();
289  }
+ Here is the caller graph for this function:

◆ getResultsByObjId()

ilSearchResult::getResultsByObjId ( )

Definition at line 305 of file class.ilSearchResult.php.

References getResults().

306  {
307  $tmp_res = array();
308  foreach ($this->getResults() as $ref_id => $res_data) {
309  $tmp_res[$res_data['obj_id']][] = $ref_id;
310  }
311  return $tmp_res ? $tmp_res : array();
312  }
+ Here is the call graph for this function:

◆ getResultsForPresentation()

ilSearchResult::getResultsForPresentation ( )

Definition at line 334 of file class.ilSearchResult.php.

References $res, $result, and getResults().

335  {
336  $res = array();
337 
338  foreach ($this->getResults() as $result) {
339  $res[$result['ref_id']] = $result['obj_id'];
340  }
341  return $res;
342  }
foreach($_POST as $key=> $value) $res
+ Here is the call graph for this function:

◆ getSubitemIds()

ilSearchResult::getSubitemIds ( )

Definition at line 344 of file class.ilSearchResult.php.

References $res, and getResults().

345  {
346  $res = array();
347  foreach ($this->getResults() as $row) {
348  $res[$row['obj_id']] = $row['child'];
349  }
350  return $res ? $res : array();
351  }
foreach($_POST as $key=> $value) $res
+ Here is the call graph for this function:

◆ getUniqueResults()

ilSearchResult::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

Definition at line 321 of file class.ilSearchResult.php.

References $result.

322  {
323  $obj_ids = array();
324  foreach ($this->results as $result) {
325  if (in_array($result['obj_id'], $obj_ids)) {
326  continue;
327  }
328  $obj_ids[] = $result['obj_id'];
329  $objects[] = $result;
330  }
331  return $objects ? $objects : array();
332  }

◆ getUserId()

ilSearchResult::getUserId ( )

Definition at line 112 of file class.ilSearchResult.php.

References $user_id.

Referenced by initUserSearchCache().

113  {
114  return $this->user_id;
115  }
+ Here is the caller graph for this function:

◆ initUserSearchCache()

ilSearchResult::initUserSearchCache ( )
protected

Init user search cache.

private

Definition at line 555 of file class.ilSearchResult.php.

References ilUserSearchCache\_getInstance(), getMaxHits(), and getUserId().

Referenced by __construct().

556  {
557  include_once('Services/Search/classes/class.ilUserSearchCache.php');
558  $this->search_cache = ilUserSearchCache::_getInstance($this->getUserId());
559  $this->offset = $this->getMaxHits() * ($this->search_cache->getResultPageNumber() - 1) ;
560  }
static _getInstance($a_usr_id)
Get singleton instance.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ intersectEntries()

ilSearchResult::intersectEntries ( $result_obj)

Build intersection of entries (all entries that are present in both result sets)

Parameters
objectresult_obj public

Definition at line 247 of file class.ilSearchResult.php.

References __updateEntryChilds(), addEntry(), and getEntries().

248  {
249  $new_entries = $this->getEntries();
250  $this->entries = array();
251 
252  foreach ($result_obj->getEntries() as $entry) {
253  $obj_id = $entry['obj_id'];
254  if (isset($new_entries[$obj_id])) {
255  $this->addEntry(
256  $new_entries[$obj_id]['obj_id'],
257  $new_entries[$obj_id]['type'],
258  $new_entries[$obj_id]['found']
259  );
260 
261  $this->__updateEntryChilds(
262  $new_entries[$obj_id]['obj_id'],
263  $new_entries[$obj_id]['child']
264  );
265  }
266  }
267  }
addEntry($a_obj_id, $a_type, $found, $a_child_id=0)
add search result entry Entries are stored with 'obj_id'.
__updateEntryChilds($a_obj_id, $a_childs)
Update childs for a specific entry.
+ Here is the call graph for this function:

◆ isLimitReached()

ilSearchResult::isLimitReached ( )

Definition at line 122 of file class.ilSearchResult.php.

123  {
124  return $this->limit_reached ? true : false;
125  }

◆ isOffsetReached()

ilSearchResult::isOffsetReached (   $a_counter)

Check if offset is reached.

public

Parameters
intcurrent counter of result
Returns
bool reached or not

Definition at line 143 of file class.ilSearchResult.php.

Referenced by filter().

144  {
145  return ($a_counter < $this->offset) ? false : true;
146  }
+ Here is the caller graph for this function:

◆ mergeEntries()

ilSearchResult::mergeEntries ( $result_obj)

merge entries of this instance and another result object

Parameters
objectresult_obj public

Definition at line 204 of file class.ilSearchResult.php.

References __updateEntryChilds(), and addEntry().

205  {
206  foreach ($result_obj->getEntries() as $entry) {
207  $this->addEntry($entry['obj_id'], $entry['type'], $entry['found']);
208  $this->__updateEntryChilds($entry['obj_id'], $entry['child']);
209  }
210  return true;
211  }
addEntry($a_obj_id, $a_type, $found, $a_child_id=0)
add search result entry Entries are stored with &#39;obj_id&#39;.
__updateEntryChilds($a_obj_id, $a_childs)
Update childs for a specific entry.
+ Here is the call graph for this function:

◆ numEntries()

ilSearchResult::numEntries ( )

Check number of entries public.

Definition at line 193 of file class.ilSearchResult.php.

References getEntries().

194  {
195  return count($this->getEntries());
196  }
+ Here is the call graph for this function:

◆ preventOverwritingMaxhits()

ilSearchResult::preventOverwritingMaxhits (   $a_flag = null)

If you call this function and pass "true" the maxhits setting will not be overwritten in __initSearchSettingsObject()

public

Parameters
boolean$a_flagtrue or false to set the flag or leave blank to get the status of the flag boolean if called without parameter the status of the flag will be returned, otherwise $this

Definition at line 571 of file class.ilSearchResult.php.

References $preventOverwritingMaxhits.

Referenced by __initSearchSettingsObject().

572  {
573  if (null === $a_flag) {
575  }
576 
577  $this->preventOverwritingMaxhits = $a_flag;
578 
579  return $this;
580  }
preventOverwritingMaxhits($a_flag=null)
If you call this function and pass "true" the maxhits setting will not be overwritten in __initSearch...
+ Here is the caller graph for this function:

◆ read()

ilSearchResult::read (   $a_type = DEFAULT_SEARCH)

read search results

Parameters
integerDEFAULT_SEARCH or ADVANCED_SEARCH public

Definition at line 494 of file class.ilSearchResult.php.

Referenced by ilAdvancedSearchGUI\performAdvMDSearch(), ilAdvancedSearchGUI\performSearch(), ilSearchGUI\performSearch(), ilAdvancedSearchGUI\showSavedAdvMDResults(), ilSearchGUI\showSavedResults(), and ilAdvancedSearchGUI\showSavedResults().

495  {
496  $this->results = $this->search_cache->getResults();
497  }
+ Here is the caller graph for this function:

◆ save()

ilSearchResult::save (   $a_type = DEFAULT_SEARCH)

Save search results.

Parameters
integerDEFAULT_SEARCH or ADVANCED_SEARCH public

Definition at line 483 of file class.ilSearchResult.php.

484  {
485  $this->search_cache->save();
486  return false;
487  }

◆ setMaxHits()

ilSearchResult::setMaxHits (   $a_max_hits)

Definition at line 127 of file class.ilSearchResult.php.

Referenced by __initSearchSettingsObject().

128  {
129  $this->max_hits = $a_max_hits;
130  }
+ Here is the caller graph for this function:

◆ setRequiredPermission()

ilSearchResult::setRequiredPermission (   $a_permission)

Set the required permission for the rbac checks in function 'filter()'.

Definition at line 97 of file class.ilSearchResult.php.

98  {
99  $this->permission = $a_permission;
100  }

◆ setUserId()

ilSearchResult::setUserId (   $a_user_id)

Definition at line 108 of file class.ilSearchResult.php.

109  {
110  $this->user_id = $a_user_id;
111  }

Field Documentation

◆ $entries

ilSearchResult::$entries = array()

Definition at line 45 of file class.ilSearchResult.php.

◆ $ilAccess

ilSearchResult::$ilAccess

Definition at line 54 of file class.ilSearchResult.php.

Referenced by __construct().

◆ $ilias

ilSearchResult::$ilias

Definition at line 53 of file class.ilSearchResult.php.

Referenced by __construct().

◆ $limit_reached

ilSearchResult::$limit_reached = false

Definition at line 57 of file class.ilSearchResult.php.

◆ $logger

ilSearchResult::$logger
private

Definition at line 65 of file class.ilSearchResult.php.

◆ $observers

ilSearchResult::$observers = array()

Definition at line 47 of file class.ilSearchResult.php.

◆ $offset

ilSearchResult::$offset = 0
protected

Definition at line 50 of file class.ilSearchResult.php.

◆ $permission

ilSearchResult::$permission = 'visible'

Definition at line 42 of file class.ilSearchResult.php.

Referenced by getRequiredPermission().

◆ $preventOverwritingMaxhits

ilSearchResult::$preventOverwritingMaxhits = false
protected

Definition at line 60 of file class.ilSearchResult.php.

Referenced by preventOverwritingMaxhits().

◆ $result

ilSearchResult::$result

◆ $results

ilSearchResult::$results = array()

Definition at line 46 of file class.ilSearchResult.php.

◆ $search_cache

ilSearchResult::$search_cache = null
protected

Definition at line 49 of file class.ilSearchResult.php.

◆ $user_id

ilSearchResult::$user_id

Definition at line 44 of file class.ilSearchResult.php.

Referenced by getUserId().


The documentation for this class was generated from the following file: