ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilUserSearchCache Class Reference

Class for storing search result. More...

+ Collaboration diagram for ilUserSearchCache:

Public Member Functions

 isAnonymous ()
 Check if current user is anonymous user. More...
 
 switchSearchType ($a_type)
 switch to search type reads entries from database More...
 
 getResults ()
 Get results. More...
 
 setResults ($a_results)
 Set results. More...
 
 addResult ($a_result_item)
 Append result. More...
 
 appendToFailed ($a_ref_id)
 Append failed id. More...
 
 isFailed ($a_ref_id)
 check if reference has failed access More...
 
 appendToChecked ($a_ref_id, $a_obj_id)
 Append checked id. More...
 
 isChecked ($a_ref_id)
 Check if reference was already checked. More...
 
 getCheckedItems ()
 Get all checked items. More...
 
 setResultPageNumber ($a_number)
 Set result page number. More...
 
 getResultPageNumber ()
 get result page number More...
 
 setQuery ($a_query)
 set query More...
 
 getQuery ()
 get query More...
 
 getUrlEncodedQuery ()
 Urlencode query for further use in e.g glossariers (highlighting off search terms). More...
 
 setRoot ($a_root)
 set root node of search More...
 
 getRoot ()
 get root node More...
 
 setItemFilter ($a_filter)
 
 getItemFilter ()
 
 setMimeFilter ($a_filter)
 
 getMimeFilter ()
 
 setCreationFilter ($a_filter)
 
 getCreationFilter ()
 
 deleteCachedEntries ()
 delete cached entries More...
 
 deleteCachedEntriesAnonymous ()
 Delete cached entries for anonymous user. More...
 
 delete ()
 Delete user entries. More...
 
 save ()
 Save entries. More...
 
 saveForAnonymous ()
 

Static Public Member Functions

static _getInstance ($a_usr_id)
 Get singleton instance. More...
 

Data Fields

const DEFAULT_SEARCH = 0
 
const ADVANCED_SEARCH = 1
 
const ADVANCED_MD_SEARCH = 4
 
const LUCENE_DEFAULT = 5
 
const LUCENE_ADVANCED = 6
 
const LAST_QUERY = 7
 
const LUCENE_USER_SEARCH = 8
 

Private Member Functions

 __construct ($a_usr_id)
 Constructor. More...
 
 read ()
 Read user entries. More...
 
 readAnonymous ()
 Read from session for anonymous user. More...
 

Private Attributes

 $db
 
 $usr_id
 
 $search_type = self::DEFAULT_SEARCH
 
 $search_result = array()
 
 $checked = array()
 
 $failed = array()
 
 $page_number = 1
 
 $query
 
 $root = ROOT_FOLDER_ID
 
 $item_filter = array()
 
 $isAnonymous = false
 
 $mime_filter = array()
 
 $creation_filter = array()
 

Static Private Attributes

static $instance = null
 

Detailed Description

Class for storing search result.

Allows paging of result sets

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 35 of file class.ilUserSearchCache.php.

Constructor & Destructor Documentation

◆ __construct()

ilUserSearchCache::__construct (   $a_usr_id)
private

Constructor.

private

Definition at line 80 of file class.ilUserSearchCache.php.

References $DIC, $ilDB, DEFAULT_SEARCH, isAnonymous(), and read().

81  {
82  global $DIC;
83 
84  $ilDB = $DIC['ilDB'];
85 
86  if ($a_usr_id == ANONYMOUS_USER_ID) {
87  $this->isAnonymous = true;
88  }
89 
90  $this->db = $ilDB;
91  $this->usr_id = $a_usr_id;
92  $this->search_type = self::DEFAULT_SEARCH;
93  $this->read();
94  }
const DEFAULT_SEARCH
global $DIC
Definition: saml.php:7
isAnonymous()
Check if current user is anonymous user.
global $ilDB
read()
Read user entries.
+ Here is the call graph for this function:

Member Function Documentation

◆ _getInstance()

static ilUserSearchCache::_getInstance (   $a_usr_id)
static

Get singleton instance.

public

Parameters
intusr_id

Definition at line 104 of file class.ilUserSearchCache.php.

Referenced by ilLuceneSearchResultFilter\__construct(), ilObjGlossarySubItemListGUI\getHTML(), ilLMPresentationGUI\ilPage(), ilLuceneUserSearchGUI\initUserSearchCache(), ilLuceneAdvancedSearchGUI\initUserSearchCache(), ilLuceneSearchGUI\initUserSearchCache(), ilSearchResult\initUserSearchCache(), ilSearchGUI\initUserSearchCache(), ilAdvancedSearchGUI\initUserSearchCache(), ilGlossaryPresentationGUI\listDefinitions(), and ilWikiPageGUI\preview().

105  {
106  if (is_object(self::$instance) and self::$instance) {
107  return self::$instance;
108  }
109  return self::$instance = new ilUserSearchCache($a_usr_id);
110  }
Class for storing search result.
+ Here is the caller graph for this function:

◆ addResult()

ilUserSearchCache::addResult (   $a_result_item)

Append result.

public

Parameters
array(int,int,string)array(ref_id,obj_id,type)

Definition at line 166 of file class.ilUserSearchCache.php.

167  {
168  $this->search_result[$a_result_item['ref_id']]['ref_id'] = $a_result_item['ref_id'];
169  $this->search_result[$a_result_item['ref_id']]['obj_id'] = $a_result_item['obj_id'];
170  $this->search_result[$a_result_item['ref_id']]['type'] = $a_result_item['type'];
171  return true;
172  }

◆ appendToChecked()

ilUserSearchCache::appendToChecked (   $a_ref_id,
  $a_obj_id 
)

Append checked id.

public

Parameters
intchecked reference id
intchecked obj_id

Definition at line 206 of file class.ilUserSearchCache.php.

207  {
208  $this->checked[$a_ref_id] = $a_obj_id;
209  }

◆ appendToFailed()

ilUserSearchCache::appendToFailed (   $a_ref_id)

Append failed id.

public

Parameters
intref_id of failed access

Definition at line 181 of file class.ilUserSearchCache.php.

182  {
183  $this->failed[$a_ref_id] = $a_ref_id;
184  }

◆ delete()

ilUserSearchCache::delete ( )

Delete user entries.

public

Definition at line 423 of file class.ilUserSearchCache.php.

References $DIC, $ilDB, $query, $res, and read().

424  {
425  global $DIC;
426 
427  $ilDB = $DIC['ilDB'];
428 
429  $query = "DELETE FROM usr_search " .
430  "WHERE usr_id = " . $this->db->quote($this->usr_id, 'integer') . " " .
431  "AND search_type = " . $this->db->quote($this->search_type, 'integer');
432  $res = $ilDB->manipulate($query);
433 
434  $this->read();
435  return true;
436  }
global $DIC
Definition: saml.php:7
foreach($_POST as $key=> $value) $res
global $ilDB
read()
Read user entries.
+ Here is the call graph for this function:

◆ deleteCachedEntries()

ilUserSearchCache::deleteCachedEntries ( )

delete cached entries

Parameters

Definition at line 351 of file class.ilUserSearchCache.php.

References $DIC, $ilDB, $query, $res, $row, deleteCachedEntriesAnonymous(), ilDBConstants\FETCHMODE_OBJECT, isAnonymous(), and setResultPageNumber().

352  {
353  global $DIC;
354 
355  $ilDB = $DIC['ilDB'];
356 
357  if ($this->isAnonymous()) {
358  return $this->deleteCachedEntriesAnonymous();
359  }
360 
361 
362  $query = "SELECT COUNT(*) num FROM usr_search " .
363  "WHERE usr_id = " . $ilDB->quote($this->usr_id, 'integer') . " " .
364  "AND search_type = " . $ilDB->quote($this->search_type, 'integer');
365  $res = $ilDB->query($query);
367 
368  if ($row->num > 0) {
369  $ilDB->update(
370  'usr_search',
371  array(
372  'search_result' => array('clob',serialize(array(0))),
373  'checked' => array('clob',serialize(array(0))),
374  'failed' => array('clob',serialize(array(0))),
375  'page' => array('integer',0)),
376  array(
377  'usr_id' => array('integer',(int) $this->usr_id),
378  'search_type' => array('integer',(int) $this->search_type)
379  )
380  );
381  } else {
382  $ilDB->insert(
383  'usr_search',
384  array(
385  'search_result' => array('clob',serialize(array(0))),
386  'checked' => array('clob',serialize(array(0))),
387  'failed' => array('clob',serialize(array(0))),
388  'page' => array('integer',0),
389  'usr_id' => array('integer',(int) $this->usr_id),
390  'search_type' => array('integer',(int) $this->search_type)
391  )
392  );
393  }
394 
395  $this->setResultPageNumber(1);
396  $this->search_result = array();
397  $this->checked = array();
398  $this->failed = array();
399  }
global $DIC
Definition: saml.php:7
deleteCachedEntriesAnonymous()
Delete cached entries for anonymous user.
foreach($_POST as $key=> $value) $res
$row
isAnonymous()
Check if current user is anonymous user.
global $ilDB
setResultPageNumber($a_number)
Set result page number.
+ Here is the call graph for this function:

◆ deleteCachedEntriesAnonymous()

ilUserSearchCache::deleteCachedEntriesAnonymous ( )

Delete cached entries for anonymous user.

Returns
bool

Definition at line 405 of file class.ilUserSearchCache.php.

References setResultPageNumber().

Referenced by deleteCachedEntries().

406  {
407  $this->setResultPageNumber(1);
408  $this->search_result = array();
409  $this->checked = array();
410  $this->failed = array();
411 
412  return true;
413  }
setResultPageNumber($a_number)
Set result page number.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCheckedItems()

ilUserSearchCache::getCheckedItems ( )

Get all checked items.

public

Returns
array array(ref_id => obj_id)

Definition at line 230 of file class.ilUserSearchCache.php.

231  {
232  return $this->checked ? $this->checked : array();
233  }

◆ getCreationFilter()

ilUserSearchCache::getCreationFilter ( )

Definition at line 339 of file class.ilUserSearchCache.php.

References $creation_filter.

Referenced by save(), and saveForAnonymous().

340  {
341  return $this->creation_filter;
342  }
+ Here is the caller graph for this function:

◆ getItemFilter()

ilUserSearchCache::getItemFilter ( )

Definition at line 318 of file class.ilUserSearchCache.php.

References $item_filter.

Referenced by save(), and saveForAnonymous().

319  {
320  return (array) $this->item_filter;
321  }
+ Here is the caller graph for this function:

◆ getMimeFilter()

ilUserSearchCache::getMimeFilter ( )

Definition at line 328 of file class.ilUserSearchCache.php.

References $mime_filter.

Referenced by save(), and saveForAnonymous().

329  {
330  return (array) $this->mime_filter;
331  }
+ Here is the caller graph for this function:

◆ getQuery()

ilUserSearchCache::getQuery ( )

get query

Returns

Definition at line 274 of file class.ilUserSearchCache.php.

References $query.

Referenced by getUrlEncodedQuery(), save(), and saveForAnonymous().

275  {
276  return $this->query;
277  }
+ Here is the caller graph for this function:

◆ getResultPageNumber()

ilUserSearchCache::getResultPageNumber ( )

get result page number

public

Definition at line 254 of file class.ilUserSearchCache.php.

255  {
256  return $this->page_number ? $this->page_number : 1;
257  }

◆ getResults()

ilUserSearchCache::getResults ( )

Get results.

public

Definition at line 142 of file class.ilUserSearchCache.php.

143  {
144  return $this->search_result ? $this->search_result : array();
145  }

◆ getRoot()

ilUserSearchCache::getRoot ( )

get root node

Returns

Definition at line 308 of file class.ilUserSearchCache.php.

Referenced by save(), and saveForAnonymous().

309  {
310  return $this->root ? $this->root : ROOT_FOLDER_ID;
311  }
+ Here is the caller graph for this function:

◆ getUrlEncodedQuery()

ilUserSearchCache::getUrlEncodedQuery ( )

Urlencode query for further use in e.g glossariers (highlighting off search terms).

Returns

Definition at line 283 of file class.ilUserSearchCache.php.

References $query, and getQuery().

284  {
285  if (is_array($this->getQuery())) {
286  $query = $this->getQuery();
287 
288  return urlencode(str_replace('"', '.', $query['lom_content']));
289  }
290  return urlencode(str_replace('"', '.', $this->getQuery()));
291  }
+ Here is the call graph for this function:

◆ isAnonymous()

ilUserSearchCache::isAnonymous ( )

Check if current user is anonymous user.

Returns
bool

Definition at line 116 of file class.ilUserSearchCache.php.

References $isAnonymous.

Referenced by __construct(), deleteCachedEntries(), read(), and save().

117  {
118  return $this->isAnonymous;
119  }
+ Here is the caller graph for this function:

◆ isChecked()

ilUserSearchCache::isChecked (   $a_ref_id)

Check if reference was already checked.

public

Parameters
intref_id

Definition at line 218 of file class.ilUserSearchCache.php.

219  {
220  return array_key_exists($a_ref_id, $this->checked) and $this->checked[$a_ref_id];
221  }

◆ isFailed()

ilUserSearchCache::isFailed (   $a_ref_id)

check if reference has failed access

public

Parameters
intref_id

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

194  {
195  return in_array($a_ref_id, $this->failed) ? true : false;
196  }

◆ read()

ilUserSearchCache::read ( )
private

Read user entries.

private

Definition at line 512 of file class.ilUserSearchCache.php.

References $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, isAnonymous(), readAnonymous(), setCreationFilter(), setItemFilter(), setQuery(), and setRoot().

Referenced by __construct(), delete(), and switchSearchType().

513  {
514  $this->failed = array();
515  $this->checked = array();
516  $this->search_result = array();
517  $this->page_number = 0;
518 
519  if ($this->isAnonymous()) {
520  return $this->readAnonymous();
521  }
522 
523  $query = "SELECT * FROM usr_search " .
524  "WHERE usr_id = " . $this->db->quote($this->usr_id, 'integer') . " " .
525  "AND search_type = " . $this->db->quote($this->search_type, 'integer');
526 
527  $res = $this->db->query($query);
528  while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
529  $this->search_result = unserialize(stripslashes($row->search_result));
530  if (strlen($row->checked)) {
531  $this->checked = unserialize(stripslashes($row->checked));
532  }
533  if (strlen($row->failed)) {
534  $this->failed = unserialize(stripslashes($row->failed));
535  }
536  $this->page_number = $row->page;
537  $this->setQuery(unserialize($row->query));
538  $this->setRoot($row->root);
539  $this->setItemFilter(unserialize($row->item_filter));
540  $this->setCreationFilter(unserialize($row->creation_filter));
541  }
542  return true;
543  }
setQuery($a_query)
set query
readAnonymous()
Read from session for anonymous user.
foreach($_POST as $key=> $value) $res
setRoot($a_root)
set root node of search
$row
isAnonymous()
Check if current user is anonymous user.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readAnonymous()

ilUserSearchCache::readAnonymous ( )
private

Read from session for anonymous user.

Definition at line 548 of file class.ilUserSearchCache.php.

References $_SESSION, $search_type, setCreationFilter(), setItemFilter(), setMimeFilter(), setQuery(), and setRoot().

Referenced by read().

549  {
550  $this->search_result = (array) $_SESSION['usr_search_cache'][$this->search_type]['search_result'];
551  $this->checked = (array) $_SESSION['usr_search_cache'][$this->search_type]['checked'];
552  $this->failed = (array) $_SESSION['usr_search_cache'][$this->search_type]['failed'];
553  $this->page_number = $_SESSION['usr_search_cache'][$this->search_type]['page_number'];
554 
555  $this->setQuery($_SESSION['usr_search_cache'][$this->search_type]['query']);
556  $this->setRoot((string) $_SESSION['usr_search_cache'][$this->search_type]['root']);
557  $this->setItemFilter((array) $_SESSION['usr_search_cache'][$this->search_type]['item_filter']);
558  $this->setMimeFilter((array) $_SESSION['usr_search_cache'][$this->search_type]['mime_filter']);
559  $this->setCreationFilter((array) $_SESSION['usr_search_cache'][$this->search_type]['creation_filter']);
560 
561  return true;
562  }
setQuery($a_query)
set query
$_SESSION["AccountId"]
setRoot($a_root)
set root node of search
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ save()

ilUserSearchCache::save ( )

Save entries.

public

Definition at line 444 of file class.ilUserSearchCache.php.

References $DIC, $ilDB, $query, $res, getCreationFilter(), getItemFilter(), getMimeFilter(), getQuery(), getRoot(), isAnonymous(), and saveForAnonymous().

445  {
446  global $DIC;
447 
448  $ilDB = $DIC['ilDB'];
449 
450  if ($this->isAnonymous()) {
451  return $this->saveForAnonymous();
452  }
453 
454  $query = "DELETE FROM usr_search " .
455  "WHERE usr_id = " . $ilDB->quote($this->usr_id, 'integer') . " " .
456  "AND ( search_type = " . $ilDB->quote($this->search_type, 'integer') . ' ' .
457  "OR search_type = " . $ilDB->quote(self::LAST_QUERY, 'integer') . ')';
458  $res = $ilDB->manipulate($query);
459 
460  $ilDB->insert('usr_search', array(
461  'usr_id' => array('integer',(int) $this->usr_id),
462  'search_result' => array('clob',serialize($this->search_result)),
463  'checked' => array('clob',serialize($this->checked)),
464  'failed' => array('clob',serialize($this->failed)),
465  'page' => array('integer',(int) $this->page_number),
466  'search_type' => array('integer',(int) $this->search_type),
467  'query' => array('clob',serialize($this->getQuery())),
468  'root' => array('integer',$this->getRoot()),
469  'item_filter' => array('text',serialize($this->getItemFilter())),
470  'mime_filter' => array('text', serialize($this->getMimeFilter())),
471  'creation_filter' => array('text', serialize($this->getCreationFilter()))
472  ));
473 
474 
475  // Write last query information
476  $ilDB->insert(
477  'usr_search',
478  array(
479  'usr_id' => array('integer',$this->usr_id),
480  'search_type' => array('integer',self::LAST_QUERY),
481  'query' => array('text',serialize($this->getQuery()))
482  )
483  );
484  }
global $DIC
Definition: saml.php:7
foreach($_POST as $key=> $value) $res
isAnonymous()
Check if current user is anonymous user.
global $ilDB
+ Here is the call graph for this function:

◆ saveForAnonymous()

ilUserSearchCache::saveForAnonymous ( )

Definition at line 486 of file class.ilUserSearchCache.php.

References $_SESSION, $checked, $failed, $page_number, $search_result, $search_type, getCreationFilter(), getItemFilter(), getMimeFilter(), getQuery(), and getRoot().

Referenced by save().

487  {
488  unset($_SESSION['usr_search_cache']);
489 
490  $_SESSION['usr_search_cache'][$this->search_type]['search_result'] = $this->search_result;
491  $_SESSION['usr_search_cache'][$this->search_type]['checked'] = $this->checked;
492  $_SESSION['usr_search_cache'][$this->search_type]['failed'] = $this->failed;
493  $_SESSION['usr_search_cache'][$this->search_type]['page'] = $this->page_number;
494  $_SESSION['usr_search_cache'][$this->search_type]['query'] = $this->getQuery();
495  $_SESSION['usr_search_cache'][$this->search_type]['root'] = $this->getRoot();
496  $_SESSION['usr_search_cache'][$this->search_type]['item_filter'] = $this->getItemFilter();
497  $_SESSION['usr_search_cache'][$this->search_type]['mime_filter'] = $this->getMimeFilter();
498  $_SESSION['usr_search_cache'][$this->search_type]['creation_filter'] = $this->getCreationFilter();
499 
500  $_SESSION['usr_search_cache'][self::LAST_QUERY]['query'] = $this->getQuery();
501 
502  return true;
503  }
$_SESSION["AccountId"]
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setCreationFilter()

ilUserSearchCache::setCreationFilter (   $a_filter)

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

Referenced by read(), and readAnonymous().

335  {
336  $this->creation_filter = $a_filter;
337  }
+ Here is the caller graph for this function:

◆ setItemFilter()

ilUserSearchCache::setItemFilter (   $a_filter)

Definition at line 313 of file class.ilUserSearchCache.php.

Referenced by read(), and readAnonymous().

314  {
315  $this->item_filter = $a_filter;
316  }
+ Here is the caller graph for this function:

◆ setMimeFilter()

ilUserSearchCache::setMimeFilter (   $a_filter)

Definition at line 323 of file class.ilUserSearchCache.php.

Referenced by readAnonymous().

324  {
325  $this->mime_filter = $a_filter;
326  }
+ Here is the caller graph for this function:

◆ setQuery()

ilUserSearchCache::setQuery (   $a_query)

set query

Parameters
mixedquery string or array (for advanced search)
Returns

Definition at line 264 of file class.ilUserSearchCache.php.

Referenced by read(), and readAnonymous().

265  {
266  $this->query = $a_query;
267  }
+ Here is the caller graph for this function:

◆ setResultPageNumber()

ilUserSearchCache::setResultPageNumber (   $a_number)

Set result page number.

public

Definition at line 241 of file class.ilUserSearchCache.php.

Referenced by deleteCachedEntries(), and deleteCachedEntriesAnonymous().

242  {
243  if ($a_number) {
244  $this->page_number = $a_number;
245  }
246  }
+ Here is the caller graph for this function:

◆ setResults()

ilUserSearchCache::setResults (   $a_results)

Set results.

public

Parameters
array(int=> array(int,int,string)) array(ref_id => array(ref_id,obj_id,type))

Definition at line 154 of file class.ilUserSearchCache.php.

155  {
156  $this->search_result = $a_results;
157  }

◆ setRoot()

ilUserSearchCache::setRoot (   $a_root)

set root node of search

Parameters
introot id
Returns

Definition at line 298 of file class.ilUserSearchCache.php.

Referenced by read(), and readAnonymous().

299  {
300  $this->root = $a_root;
301  }
+ Here is the caller graph for this function:

◆ switchSearchType()

ilUserSearchCache::switchSearchType (   $a_type)

switch to search type reads entries from database

public

Parameters
intsearch type

Definition at line 129 of file class.ilUserSearchCache.php.

References $a_type, and read().

130  {
131  $this->search_type = $a_type;
132  $this->read();
133  return true;
134  }
$a_type
Definition: workflow.php:92
read()
Read user entries.
+ Here is the call graph for this function:

Field Documentation

◆ $checked

ilUserSearchCache::$checked = array()
private

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

Referenced by saveForAnonymous().

◆ $creation_filter

ilUserSearchCache::$creation_filter = array()
private

Definition at line 69 of file class.ilUserSearchCache.php.

Referenced by getCreationFilter().

◆ $db

ilUserSearchCache::$db
private

Definition at line 48 of file class.ilUserSearchCache.php.

◆ $failed

ilUserSearchCache::$failed = array()
private

Definition at line 55 of file class.ilUserSearchCache.php.

Referenced by saveForAnonymous().

◆ $instance

ilUserSearchCache::$instance = null
staticprivate

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

◆ $isAnonymous

ilUserSearchCache::$isAnonymous = false
private

Definition at line 62 of file class.ilUserSearchCache.php.

Referenced by isAnonymous().

◆ $item_filter

ilUserSearchCache::$item_filter = array()
private

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

Referenced by getItemFilter().

◆ $mime_filter

ilUserSearchCache::$mime_filter = array()
private

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

Referenced by getMimeFilter().

◆ $page_number

ilUserSearchCache::$page_number = 1
private

Definition at line 56 of file class.ilUserSearchCache.php.

Referenced by saveForAnonymous().

◆ $query

ilUserSearchCache::$query
private

◆ $root

ilUserSearchCache::$root = ROOT_FOLDER_ID
private

Definition at line 58 of file class.ilUserSearchCache.php.

◆ $search_result

ilUserSearchCache::$search_result = array()
private

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

Referenced by saveForAnonymous().

◆ $search_type

ilUserSearchCache::$search_type = self::DEFAULT_SEARCH
private

Definition at line 51 of file class.ilUserSearchCache.php.

Referenced by readAnonymous(), and saveForAnonymous().

◆ $usr_id

ilUserSearchCache::$usr_id
private

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

◆ ADVANCED_MD_SEARCH

const ilUserSearchCache::ADVANCED_MD_SEARCH = 4

Definition at line 39 of file class.ilUserSearchCache.php.

Referenced by ilAdvancedSearchGUI\initSearchType().

◆ ADVANCED_SEARCH

const ilUserSearchCache::ADVANCED_SEARCH = 1

◆ DEFAULT_SEARCH

const ilUserSearchCache::DEFAULT_SEARCH = 0

Definition at line 37 of file class.ilUserSearchCache.php.

Referenced by ilSearchGUI\initUserSearchCache().

◆ LAST_QUERY

const ilUserSearchCache::LAST_QUERY = 7

◆ LUCENE_ADVANCED

const ilUserSearchCache::LUCENE_ADVANCED = 6

◆ LUCENE_DEFAULT

const ilUserSearchCache::LUCENE_DEFAULT = 5

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

Referenced by ilLuceneSearchGUI\initUserSearchCache().

◆ LUCENE_USER_SEARCH

const ilUserSearchCache::LUCENE_USER_SEARCH = 8

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