ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 $ilDB, DEFAULT_SEARCH, isAnonymous(), and read().

81  {
82  global $ilDB;
83 
84  if ($a_usr_id == ANONYMOUS_USER_ID) {
85  $this->isAnonymous = true;
86  }
87 
88  $this->db = $ilDB;
89  $this->usr_id = $a_usr_id;
90  $this->search_type = self::DEFAULT_SEARCH;
91  $this->read();
92  }
const DEFAULT_SEARCH
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 102 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().

103  {
104  if (is_object(self::$instance) and self::$instance) {
105  return self::$instance;
106  }
107  return self::$instance = new ilUserSearchCache($a_usr_id);
108  }
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 164 of file class.ilUserSearchCache.php.

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

◆ appendToChecked()

ilUserSearchCache::appendToChecked (   $a_ref_id,
  $a_obj_id 
)

Append checked id.

public

Parameters
intchecked reference id
intchecked obj_id

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

205  {
206  $this->checked[$a_ref_id] = $a_obj_id;
207  }

◆ appendToFailed()

ilUserSearchCache::appendToFailed (   $a_ref_id)

Append failed id.

public

Parameters
intref_id of failed access

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

180  {
181  $this->failed[$a_ref_id] = $a_ref_id;
182  }

◆ delete()

ilUserSearchCache::delete ( )

Delete user entries.

public

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

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

420  {
421  global $ilDB;
422 
423  $query = "DELETE FROM usr_search " .
424  "WHERE usr_id = " . $this->db->quote($this->usr_id, 'integer') . " " .
425  "AND search_type = " . $this->db->quote($this->search_type, 'integer');
426  $res = $ilDB->manipulate($query);
427 
428  $this->read();
429  return true;
430  }
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 349 of file class.ilUserSearchCache.php.

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

350  {
351  global $ilDB;
352 
353  if ($this->isAnonymous()) {
354  return $this->deleteCachedEntriesAnonymous();
355  }
356 
357 
358  $query = "SELECT COUNT(*) num FROM usr_search " .
359  "WHERE usr_id = " . $ilDB->quote($this->usr_id, 'integer') . " " .
360  "AND search_type = " . $ilDB->quote($this->search_type, 'integer');
361  $res = $ilDB->query($query);
363 
364  if ($row->num > 0) {
365  $ilDB->update(
366  'usr_search',
367  array(
368  'search_result' => array('clob',serialize(array(0))),
369  'checked' => array('clob',serialize(array(0))),
370  'failed' => array('clob',serialize(array(0))),
371  'page' => array('integer',0)),
372  array(
373  'usr_id' => array('integer',(int) $this->usr_id),
374  'search_type' => array('integer',(int) $this->search_type)
375  )
376  );
377  } else {
378  $ilDB->insert(
379  'usr_search',
380  array(
381  'search_result' => array('clob',serialize(array(0))),
382  'checked' => array('clob',serialize(array(0))),
383  'failed' => array('clob',serialize(array(0))),
384  'page' => array('integer',0),
385  'usr_id' => array('integer',(int) $this->usr_id),
386  'search_type' => array('integer',(int) $this->search_type)
387  )
388  );
389  }
390 
391  $this->setResultPageNumber(1);
392  $this->search_result = array();
393  $this->checked = array();
394  $this->failed = array();
395  }
deleteCachedEntriesAnonymous()
Delete cached entries for anonymous user.
foreach($_POST as $key=> $value) $res
Create styles array
The data for the language used.
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 401 of file class.ilUserSearchCache.php.

References array, and setResultPageNumber().

Referenced by deleteCachedEntries().

402  {
403  $this->setResultPageNumber(1);
404  $this->search_result = array();
405  $this->checked = array();
406  $this->failed = array();
407 
408  return true;
409  }
Create styles array
The data for the language used.
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 228 of file class.ilUserSearchCache.php.

References array.

229  {
230  return $this->checked ? $this->checked : array();
231  }
Create styles array
The data for the language used.

◆ getCreationFilter()

ilUserSearchCache::getCreationFilter ( )

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

References $creation_filter.

Referenced by save(), and saveForAnonymous().

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

◆ getItemFilter()

ilUserSearchCache::getItemFilter ( )

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

References $item_filter, and array.

Referenced by save(), and saveForAnonymous().

317  {
318  return (array) $this->item_filter;
319  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ getMimeFilter()

ilUserSearchCache::getMimeFilter ( )

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

References $mime_filter, and array.

Referenced by save(), and saveForAnonymous().

327  {
328  return (array) $this->mime_filter;
329  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ getQuery()

ilUserSearchCache::getQuery ( )

get query

Returns

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

References $query.

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

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

◆ getResultPageNumber()

ilUserSearchCache::getResultPageNumber ( )

get result page number

public

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

253  {
254  return $this->page_number ? $this->page_number : 1;
255  }

◆ getResults()

ilUserSearchCache::getResults ( )

Get results.

public

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

References array.

141  {
142  return $this->search_result ? $this->search_result : array();
143  }
Create styles array
The data for the language used.

◆ getRoot()

ilUserSearchCache::getRoot ( )

get root node

Returns

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

Referenced by save(), and saveForAnonymous().

307  {
308  return $this->root ? $this->root : ROOT_FOLDER_ID;
309  }
+ 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 281 of file class.ilUserSearchCache.php.

References $query, and getQuery().

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

◆ isAnonymous()

ilUserSearchCache::isAnonymous ( )

Check if current user is anonymous user.

Returns
bool

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

References $isAnonymous.

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

115  {
116  return $this->isAnonymous;
117  }
+ 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 216 of file class.ilUserSearchCache.php.

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

◆ isFailed()

ilUserSearchCache::isFailed (   $a_ref_id)

check if reference has failed access

public

Parameters
intref_id

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

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

◆ read()

ilUserSearchCache::read ( )
private

Read user entries.

private

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

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

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

505  {
506  $this->failed = array();
507  $this->checked = array();
508  $this->search_result = array();
509  $this->page_number = 0;
510 
511  if ($this->isAnonymous()) {
512  return $this->readAnonymous();
513  }
514 
515  $query = "SELECT * FROM usr_search " .
516  "WHERE usr_id = " . $this->db->quote($this->usr_id, 'integer') . " " .
517  "AND search_type = " . $this->db->quote($this->search_type, 'integer');
518 
519  $res = $this->db->query($query);
520  while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
521  $this->search_result = unserialize(stripslashes($row->search_result));
522  if (strlen($row->checked)) {
523  $this->checked = unserialize(stripslashes($row->checked));
524  }
525  if (strlen($row->failed)) {
526  $this->failed = unserialize(stripslashes($row->failed));
527  }
528  $this->page_number = $row->page;
529  $this->setQuery(unserialize($row->query));
530  $this->setRoot($row->root);
531  $this->setItemFilter(unserialize($row->item_filter));
532  $this->setCreationFilter(unserialize($row->creation_filter));
533  }
534  return true;
535  }
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
Create styles array
The data for the language used.
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 540 of file class.ilUserSearchCache.php.

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

Referenced by read().

541  {
542  $this->search_result = (array) $_SESSION['usr_search_cache'][$this->search_type]['search_result'];
543  $this->checked = (array) $_SESSION['usr_search_cache'][$this->search_type]['checked'];
544  $this->failed = (array) $_SESSION['usr_search_cache'][$this->search_type]['failed'];
545  $this->page_number = $_SESSION['usr_search_cache'][$this->search_type]['page_number'];
546 
547  $this->setQuery($_SESSION['usr_search_cache'][$this->search_type]['query']);
548  $this->setRoot((string) $_SESSION['usr_search_cache'][$this->search_type]['root']);
549  $this->setItemFilter((array) $_SESSION['usr_search_cache'][$this->search_type]['item_filter']);
550  $this->setMimeFilter((array) $_SESSION['usr_search_cache'][$this->search_type]['mime_filter']);
551  $this->setCreationFilter((array) $_SESSION['usr_search_cache'][$this->search_type]['creation_filter']);
552 
553  return true;
554  }
setQuery($a_query)
set query
$_SESSION["AccountId"]
setRoot($a_root)
set root node of search
Create styles array
The data for the language used.
+ 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 438 of file class.ilUserSearchCache.php.

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

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

◆ saveForAnonymous()

ilUserSearchCache::saveForAnonymous ( )

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

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

Referenced by save().

479  {
480  unset($_SESSION['usr_search_cache']);
481 
482  $_SESSION['usr_search_cache'][$this->search_type]['search_result'] = $this->search_result;
483  $_SESSION['usr_search_cache'][$this->search_type]['checked'] = $this->checked;
484  $_SESSION['usr_search_cache'][$this->search_type]['failed'] = $this->failed;
485  $_SESSION['usr_search_cache'][$this->search_type]['page'] = $this->page_number;
486  $_SESSION['usr_search_cache'][$this->search_type]['query'] = $this->getQuery();
487  $_SESSION['usr_search_cache'][$this->search_type]['root'] = $this->getRoot();
488  $_SESSION['usr_search_cache'][$this->search_type]['item_filter'] = $this->getItemFilter();
489  $_SESSION['usr_search_cache'][$this->search_type]['mime_filter'] = $this->getMimeFilter();
490  $_SESSION['usr_search_cache'][$this->search_type]['creation_filter'] = $this->getCreationFilter();
491 
492  $_SESSION['usr_search_cache'][self::LAST_QUERY]['query'] = $this->getQuery();
493 
494  return true;
495  }
$_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 332 of file class.ilUserSearchCache.php.

Referenced by read(), and readAnonymous().

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

◆ setItemFilter()

ilUserSearchCache::setItemFilter (   $a_filter)

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

Referenced by read(), and readAnonymous().

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

◆ setMimeFilter()

ilUserSearchCache::setMimeFilter (   $a_filter)

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

Referenced by readAnonymous().

322  {
323  $this->mime_filter = $a_filter;
324  }
+ 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 262 of file class.ilUserSearchCache.php.

Referenced by read(), and readAnonymous().

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

◆ setResultPageNumber()

ilUserSearchCache::setResultPageNumber (   $a_number)

Set result page number.

public

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

Referenced by deleteCachedEntries(), and deleteCachedEntriesAnonymous().

240  {
241  if ($a_number) {
242  $this->page_number = $a_number;
243  }
244  }
+ 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 152 of file class.ilUserSearchCache.php.

153  {
154  $this->search_result = $a_results;
155  }

◆ setRoot()

ilUserSearchCache::setRoot (   $a_root)

set root node of search

Parameters
introot id
Returns

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

Referenced by read(), and readAnonymous().

297  {
298  $this->root = $a_root;
299  }
+ 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 127 of file class.ilUserSearchCache.php.

References $a_type, and read().

128  {
129  $this->search_type = $a_type;
130  $this->read();
131  return true;
132  }
$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: