ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
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 (int $a_type)
 switch to search type reads entries from database More...
 
 getResults ()
 Get results. More...
 
 setResults (array $a_results)
 Set results. More...
 
 addResult (array $a_result_item)
 Append result. More...
 
 appendToFailed (int $a_ref_id)
 Append failed id. More...
 
 isFailed (int $a_ref_id)
 check if reference has failed access More...
 
 appendToChecked (int $a_ref_id, int $a_obj_id)
 
 isChecked (int $a_ref_id)
 
 getCheckedItems ()
 Get all checked items @access public. More...
 
 setResultPageNumber (int $a_number)
 Set result page number. More...
 
 getResultPageNumber ()
 get result page number More...
 
 setQuery (string $a_query)
 
 getQuery ()
 
 getUrlEncodedQuery ()
 Urlencode query for further use in e.g glossariers (highlighting off search terms). More...
 
 setRoot (int $a_root)
 set root node of search More...
 
 getRoot ()
 
 setItemFilter (array $a_filter)
 
 getItemFilter ()
 
 setMimeFilter (array $a_filter)
 
 getMimeFilter ()
 
 setCreationFilter (array $a_filter)
 
 getCreationFilter ()
 
 setCopyrightFilter (string ... $copyright_identifiers)
 
 getCopyrightFilter ()
 
 deleteCachedEntries ()
 
 deleteCachedEntriesAnonymous ()
 
 delete ()
 
 save ()
 
 saveForAnonymous ()
 

Static Public Member Functions

static _getInstance (int $a_usr_id)
 

Data Fields

const int DEFAULT_SEARCH = 0
 
const int LUCENE_DEFAULT = 5
 
const int LAST_QUERY = 7
 
const int LUCENE_USER_SEARCH = 8
 

Protected Attributes

ilDBInterface $db
 

Private Member Functions

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

Private Attributes

int $usr_id
 
int $search_type = self::DEFAULT_SEARCH
 
array $search_result = []
 
array $checked = []
 
array $failed = []
 
int $page_number = 1
 
 $query
 
int $root
 
array $item_filter = []
 
bool $isAnonymous = false
 
array $mime_filter = []
 
array $creation_filter = []
 
array $copyright_filter = []
 

Static Private Attributes

static ilUserSearchCache $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

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

Constructor & Destructor Documentation

◆ __construct()

ilUserSearchCache::__construct ( int  $a_usr_id)
private

Constructor.

@access private

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

66 {
67 global $DIC;
68
69 $this->db = $DIC->database();
70
71 if ($a_usr_id == ANONYMOUS_USER_ID) {
72 $this->isAnonymous = true;
73 }
74
75 $this->root = ROOT_FOLDER_ID;
76 $this->usr_id = $a_usr_id;
77 $this->search_type = self::DEFAULT_SEARCH;
78 $this->read();
79 }
isAnonymous()
Check if current user is anonymous user.
const ANONYMOUS_USER_ID
Definition: constants.php:27
const ROOT_FOLDER_ID
Definition: constants.php:32
global $DIC
Definition: shib_login.php:26

References $DIC, ANONYMOUS_USER_ID, DEFAULT_SEARCH, isAnonymous(), read(), and ROOT_FOLDER_ID.

+ Here is the call graph for this function:

Member Function Documentation

◆ _getInstance()

static ilUserSearchCache::_getInstance ( int  $a_usr_id)
static

◆ addResult()

ilUserSearchCache::addResult ( array  $a_result_item)

Append result.

@access public

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

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

139 : bool
140 {
141 $this->search_result[$a_result_item['ref_id']]['ref_id'] = $a_result_item['ref_id'];
142 $this->search_result[$a_result_item['ref_id']]['obj_id'] = $a_result_item['obj_id'];
143 $this->search_result[$a_result_item['ref_id']]['type'] = $a_result_item['type'];
144 return true;
145 }

◆ appendToChecked()

ilUserSearchCache::appendToChecked ( int  $a_ref_id,
int  $a_obj_id 
)

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

163 : void
164 {
165 $this->checked[$a_ref_id] = $a_obj_id;
166 }

References ILIAS\UI\examples\Symbol\Glyph\Checked\checked().

+ Here is the call graph for this function:

◆ appendToFailed()

ilUserSearchCache::appendToFailed ( int  $a_ref_id)

Append failed id.

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

150 : void
151 {
152 $this->failed[$a_ref_id] = $a_ref_id;
153 }

◆ delete()

ilUserSearchCache::delete ( )

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

335 : bool
336 {
337 $query = "DELETE FROM usr_search " .
338 "WHERE usr_id = " . $this->db->quote($this->usr_id, 'integer') . " " .
339 "AND search_type = " . $this->db->quote($this->search_type, 'integer');
340 $res = $this->db->manipulate($query);
341
342 $this->read();
343 return true;
344 }
$res
Definition: ltiservices.php:69

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

+ Here is the call graph for this function:

◆ deleteCachedEntries()

ilUserSearchCache::deleteCachedEntries ( )

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

278 : void
279 {
280 if ($this->isAnonymous()) {
282 return;
283 }
284 $query = "SELECT COUNT(*) num FROM usr_search " .
285 "WHERE usr_id = " . $this->db->quote($this->usr_id, 'integer') . " " .
286 "AND search_type = " . $this->db->quote($this->search_type, 'integer');
287 $res = $this->db->query($query);
288 $row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT);
289
290 if ($row->num > 0) {
291 $this->db->update(
292 'usr_search',
293 [
294 'search_result' => ['clob', serialize([0])],
295 'checked' => ['clob', serialize([0])],
296 'failed' => ['clob', serialize([0])],
297 'page' => ['integer', 0]
298 ],
299 [
300 'usr_id' => ['integer', $this->usr_id],
301 'search_type' => ['integer', $this->search_type]
302 ]
303 );
304 } else {
305 $this->db->insert(
306 'usr_search',
307 [
308 'search_result' => ['clob', serialize([0])],
309 'checked' => ['clob', serialize([0])],
310 'failed' => ['clob', serialize([0])],
311 'page' => ['integer', 0],
312 'usr_id' => ['integer', $this->usr_id],
313 'search_type' => ['integer', $this->search_type],
314 'query' => ['clob', serialize('')]
315 ]
316 );
317 }
318
319 $this->setResultPageNumber(1);
320 $this->search_result = [];
321 $this->checked = [];
322 $this->failed = [];
323 }
setResultPageNumber(int $a_number)
Set result page number.

References $query, $res, ILIAS\UI\examples\Symbol\Glyph\Checked\checked(), deleteCachedEntriesAnonymous(), ilDBConstants\FETCHMODE_OBJECT, isAnonymous(), and setResultPageNumber().

+ Here is the call graph for this function:

◆ deleteCachedEntriesAnonymous()

ilUserSearchCache::deleteCachedEntriesAnonymous ( )

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

325 : bool
326 {
327 $this->setResultPageNumber(1);
328 $this->search_result = [];
329 $this->checked = [];
330 $this->failed = [];
331
332 return true;
333 }

References ILIAS\UI\examples\Symbol\Glyph\Checked\checked(), and setResultPageNumber().

Referenced by deleteCachedEntries().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCheckedItems()

ilUserSearchCache::getCheckedItems ( )

Get all checked items @access public.

Returns
array array(ref_id => obj_id)

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

178 : array
179 {
180 return $this->checked ?: [];
181 }

References ILIAS\UI\examples\Symbol\Glyph\Checked\checked().

+ Here is the call graph for this function:

◆ getCopyrightFilter()

ilUserSearchCache::getCopyrightFilter ( )
Returns
string[] copyright identifiers

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

273 : array
274 {
276 }

References $copyright_filter.

Referenced by ILIAS\Search\GUI\Lucene\SearcherImpl\parseCopyrightFilter(), save(), and saveForAnonymous().

+ Here is the caller graph for this function:

◆ getCreationFilter()

◆ getItemFilter()

ilUserSearchCache::getItemFilter ( )

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

240 : array
241 {
242 return $this->item_filter;
243 }

References $item_filter.

Referenced by ILIAS\Search\GUI\Direct\SearcherImpl\parseTypeFilter(), ILIAS\Search\GUI\Lucene\SearcherImpl\performSearchAndRenderResults(), save(), and saveForAnonymous().

+ Here is the caller graph for this function:

◆ getMimeFilter()

ilUserSearchCache::getMimeFilter ( )

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

250 : array
251 {
252 return $this->mime_filter;
253 }

References $mime_filter.

Referenced by save(), and saveForAnonymous().

+ Here is the caller graph for this function:

◆ getQuery()

ilUserSearchCache::getQuery ( )

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

209 : string
210 {
211 return $this->query ?? '';
212 }

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

+ Here is the caller graph for this function:

◆ getResultPageNumber()

ilUserSearchCache::getResultPageNumber ( )

get result page number

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

199 : int
200 {
201 return $this->page_number ?: 1;
202 }

◆ getResults()

ilUserSearchCache::getResults ( )

Get results.

@access public

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

115 : array
116 {
117 return $this->search_result ?: [];
118 }

◆ getRoot()

ilUserSearchCache::getRoot ( )

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

230 : int
231 {
232 return $this->root ?: ROOT_FOLDER_ID;
233 }

References ROOT_FOLDER_ID.

Referenced by save(), and saveForAnonymous().

+ Here is the caller graph for this function:

◆ getUrlEncodedQuery()

ilUserSearchCache::getUrlEncodedQuery ( )

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

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

217 : string
218 {
219 return urlencode(str_replace('"', '.', $this->getQuery()));
220 }

References getQuery().

+ Here is the call graph for this function:

◆ isAnonymous()

ilUserSearchCache::isAnonymous ( )

Check if current user is anonymous user.

Returns
bool

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

93 : bool
94 {
95 return $this->isAnonymous;
96 }

References $isAnonymous.

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

+ Here is the caller graph for this function:

◆ isChecked()

ilUserSearchCache::isChecked ( int  $a_ref_id)

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

168 : bool
169 {
170 return array_key_exists($a_ref_id, $this->checked) and $this->checked[$a_ref_id];
171 }

References ILIAS\UI\examples\Symbol\Glyph\Checked\checked().

+ Here is the call graph for this function:

◆ isFailed()

ilUserSearchCache::isFailed ( int  $a_ref_id)

check if reference has failed access

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

158 : bool
159 {
160 return in_array($a_ref_id, $this->failed);
161 }

◆ read()

ilUserSearchCache::read ( )
private

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

404 : void
405 {
406 $this->failed = [];
407 $this->checked = [];
408 $this->search_result = [];
409 $this->page_number = 0;
410
411 if ($this->isAnonymous()) {
412 $this->readAnonymous();
413 return;
414 }
415
416 $query = "SELECT * FROM usr_search " .
417 "WHERE usr_id = " . $this->db->quote($this->usr_id, 'integer') . " " .
418 "AND search_type = " . $this->db->quote($this->search_type, 'integer');
419
420 $res = $this->db->query($query);
421 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
422 $this->search_result = (array) unserialize((string) $row->search_result);
423 if (strlen((string) $row->checked)) {
424 $this->checked = (array) unserialize((string) $row->checked);
425 }
426 if (strlen((string) $row->failed)) {
427 $this->failed = (array) unserialize((string) $row->failed);
428 }
429 $this->page_number = (int) $row->page;
430 $this->setQuery(unserialize((string) $row->query));
431 $this->setRoot((int) $row->root);
432 $this->setItemFilter((array) unserialize((string) $row->item_filter));
433 $this->setCreationFilter((array) unserialize((string) $row->creation_filter));
434 if ($row->copyright_filter !== null) {
435 $this->setCopyrightFilter(...(array) unserialize((string) $row->copyright_filter));
436 }
437 }
438 }
setCreationFilter(array $a_filter)
readAnonymous()
Read from session for anonymous user.
setItemFilter(array $a_filter)
setRoot(int $a_root)
set root node of search
setCopyrightFilter(string ... $copyright_identifiers)

References $query, $res, ILIAS\UI\examples\Symbol\Glyph\Checked\checked(), ilDBConstants\FETCHMODE_OBJECT, ILIAS\Repository\int(), isAnonymous(), readAnonymous(), setCopyrightFilter(), setCreationFilter(), setItemFilter(), and setRoot().

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

+ 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 443 of file class.ilUserSearchCache.php.

443 : void
444 {
445 $usr_search_cache = ilSession::get('usr_search_cache') ?? [];
446
447 $this->search_result = (array) ($usr_search_cache[$this->search_type]['search_result'] ?? []);
448 $this->checked = (array) ($usr_search_cache[$this->search_type]['checked'] ?? []);
449 $this->failed = (array) ($usr_search_cache[$this->search_type]['failed'] ?? []);
450 $this->page_number = (int) ($usr_search_cache[$this->search_type]['page_number'] ?? 1);
451 $this->setQuery((string) ($usr_search_cache[$this->search_type]['query'] ?? ''));
452 $this->setRoot((int) ($usr_search_cache[$this->search_type]['root'] ?? ROOT_FOLDER_ID));
453 $this->setItemFilter((array) ($usr_search_cache[$this->search_type]['item_filter'] ?? []));
454 $this->setMimeFilter((array) ($usr_search_cache[$this->search_type]['mime_filter'] ?? []));
455 $this->setCreationFilter((array) ($usr_search_cache[$this->search_type]['creation_filter'] ?? []));
456 $this->setCopyrightFilter(...(array) ($usr_search_cache[$this->search_type]['copyright_filter'] ?? []));
457 }
static get(string $a_var)
setMimeFilter(array $a_filter)

References ILIAS\UI\examples\Symbol\Glyph\Checked\checked(), ilSession\get(), ILIAS\Repository\int(), ROOT_FOLDER_ID, setCopyrightFilter(), setCreationFilter(), setItemFilter(), setMimeFilter(), setQuery(), and setRoot().

Referenced by read().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ save()

ilUserSearchCache::save ( )

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

346 : void
347 {
348 if ($this->isAnonymous()) {
349 $this->saveForAnonymous();
350 return;
351 }
352
353 $query = "DELETE FROM usr_search " .
354 "WHERE usr_id = " . $this->db->quote($this->usr_id, 'integer') . " " .
355 "AND ( search_type = " . $this->db->quote($this->search_type, 'integer') . ' ' .
356 "OR search_type = " . $this->db->quote(self::LAST_QUERY, 'integer') . ')';
357 $res = $this->db->manipulate($query);
358
359 $this->db->insert('usr_search', [
360 'usr_id' => ['integer', $this->usr_id],
361 'search_result' => ['clob', serialize($this->search_result)],
362 'checked' => ['clob', serialize($this->checked)],
363 'failed' => ['clob', serialize($this->failed)],
364 'page' => ['integer', $this->page_number],
365 'search_type' => ['integer', $this->search_type],
366 'query' => ['clob', serialize($this->getQuery())],
367 'root' => ['integer', $this->getRoot()],
368 'item_filter' => ['text', serialize($this->getItemFilter())],
369 'mime_filter' => ['text', serialize($this->getMimeFilter())],
370 'creation_filter' => ['text', serialize($this->getCreationFilter())],
371 'copyright_filter' => ['text', serialize($this->getCopyrightFilter())]
372 ]);
373
374
375 // Write last query information
376 $this->db->insert(
377 'usr_search',
378 [
379 'usr_id' => ['integer', $this->usr_id],
380 'search_type' => ['integer', self::LAST_QUERY],
381 'query' => ['text', serialize($this->getQuery())]
382 ]
383 );
384 }

References $query, $res, ILIAS\UI\examples\Symbol\Glyph\Checked\checked(), getCopyrightFilter(), getCreationFilter(), getItemFilter(), getMimeFilter(), getQuery(), getRoot(), isAnonymous(), and saveForAnonymous().

+ Here is the call graph for this function:

◆ saveForAnonymous()

ilUserSearchCache::saveForAnonymous ( )

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

386 : void
387 {
388 ilSession::clear('usr_search_cache');
389 $session_usr_search = [];
390 $session_usr_search[$this->search_type]['search_result'] = $this->search_result;
391 $session_usr_search[$this->search_type]['checked'] = $this->checked;
392 $session_usr_search[$this->search_type]['failed'] = $this->failed;
393 $session_usr_search[$this->search_type]['page'] = $this->page_number;
394 $session_usr_search[$this->search_type]['query'] = $this->getQuery();
395 $session_usr_search[$this->search_type]['root'] = $this->getRoot();
396 $session_usr_search[$this->search_type]['item_filter'] = $this->getItemFilter();
397 $session_usr_search[$this->search_type]['mime_filter'] = $this->getMimeFilter();
398 $session_usr_search[$this->search_type]['creation_filter'] = $this->getCreationFilter();
399 $session_usr_search[$this->search_type]['copyright_filter'] = $this->getCopyrightFilter();
400 $session_usr_search[self::LAST_QUERY]['query'] = $this->getQuery();
401 ilSession::set('usr_search_cache', $session_usr_search);
402 }
static clear(string $a_var)
static set(string $a_var, $a_val)
Set a value.

References $checked, $failed, $page_number, $search_result, $search_type, ilSession\clear(), getCopyrightFilter(), getCreationFilter(), getItemFilter(), getMimeFilter(), getQuery(), getRoot(), LAST_QUERY, and ilSession\set().

Referenced by save().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setCopyrightFilter()

ilUserSearchCache::setCopyrightFilter ( string ...  $copyright_identifiers)

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

265 : void
266 {
267 $this->copyright_filter = $copyright_identifiers;
268 }

Referenced by ILIAS\Search\GUI\Direct\SearchStateHandlerImpl\loadFilterToCache(), ILIAS\Search\GUI\Lucene\SearchStateHandlerImpl\loadFilterToCache(), read(), and readAnonymous().

+ Here is the caller graph for this function:

◆ setCreationFilter()

ilUserSearchCache::setCreationFilter ( array  $a_filter)

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

255 : void
256 {
257 $this->creation_filter = $a_filter;
258 }

Referenced by ILIAS\Search\GUI\Direct\SearchStateHandlerImpl\loadFilterToCache(), ILIAS\Search\GUI\Lucene\SearchStateHandlerImpl\loadFilterToCache(), read(), and readAnonymous().

+ Here is the caller graph for this function:

◆ setItemFilter()

ilUserSearchCache::setItemFilter ( array  $a_filter)

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

235 : void
236 {
237 $this->item_filter = $a_filter;
238 }

Referenced by ILIAS\Search\GUI\Direct\SearchStateHandlerImpl\loadFilterToCache(), ILIAS\Search\GUI\Lucene\SearchStateHandlerImpl\loadFilterToCache(), read(), and readAnonymous().

+ Here is the caller graph for this function:

◆ setMimeFilter()

ilUserSearchCache::setMimeFilter ( array  $a_filter)

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

245 : void
246 {
247 $this->mime_filter = $a_filter;
248 }

Referenced by ILIAS\Search\GUI\Lucene\SearchStateHandlerImpl\loadFilterToCache(), and readAnonymous().

+ Here is the caller graph for this function:

◆ setQuery()

ilUserSearchCache::setQuery ( string  $a_query)

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

204 : void
205 {
206 $this->query = $a_query;
207 }

Referenced by readAnonymous().

+ Here is the caller graph for this function:

◆ setResultPageNumber()

ilUserSearchCache::setResultPageNumber ( int  $a_number)

Set result page number.

@access public

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

189 : void
190 {
191 if ($a_number) {
192 $this->page_number = $a_number;
193 }
194 }

Referenced by deleteCachedEntries(), and deleteCachedEntriesAnonymous().

+ Here is the caller graph for this function:

◆ setResults()

ilUserSearchCache::setResults ( array  $a_results)

Set results.

@access public

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

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

127 : void
128 {
129 $this->search_result = $a_results;
130 }

◆ setRoot()

ilUserSearchCache::setRoot ( int  $a_root)

set root node of search

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

225 : void
226 {
227 $this->root = $a_root;
228 }

Referenced by ILIAS\Search\GUI\Direct\SearchStateHandlerImpl\loadFilterToCache(), ILIAS\Search\GUI\Lucene\SearchStateHandlerImpl\loadFilterToCache(), read(), and readAnonymous().

+ Here is the caller graph for this function:

◆ switchSearchType()

ilUserSearchCache::switchSearchType ( int  $a_type)

switch to search type reads entries from database

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

102 : bool
103 {
104 $this->search_type = $a_type;
105 $this->read();
106 return true;
107 }

References read().

+ Here is the call graph for this function:

Field Documentation

◆ $checked

array ilUserSearchCache::$checked = []
private

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

Referenced by saveForAnonymous().

◆ $copyright_filter

array ilUserSearchCache::$copyright_filter = []
private

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

Referenced by getCopyrightFilter().

◆ $creation_filter

array ilUserSearchCache::$creation_filter = []
private

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

Referenced by getCreationFilter().

◆ $db

ilDBInterface ilUserSearchCache::$db
protected

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

◆ $failed

array ilUserSearchCache::$failed = []
private

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

Referenced by saveForAnonymous().

◆ $instance

ilUserSearchCache ilUserSearchCache::$instance = null
staticprivate

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

Referenced by _getInstance().

◆ $isAnonymous

bool ilUserSearchCache::$isAnonymous = false
private

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

Referenced by isAnonymous().

◆ $item_filter

array ilUserSearchCache::$item_filter = []
private

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

Referenced by getItemFilter().

◆ $mime_filter

array ilUserSearchCache::$mime_filter = []
private

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

Referenced by getMimeFilter().

◆ $page_number

int ilUserSearchCache::$page_number = 1
private

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

Referenced by saveForAnonymous().

◆ $query

string array ilUserSearchCache::$query
private

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

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

◆ $root

int ilUserSearchCache::$root
private

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

◆ $search_result

array ilUserSearchCache::$search_result = []
private

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

Referenced by saveForAnonymous().

◆ $search_type

int ilUserSearchCache::$search_type = self::DEFAULT_SEARCH
private

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

Referenced by saveForAnonymous().

◆ $usr_id

int ilUserSearchCache::$usr_id
private

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

◆ DEFAULT_SEARCH

const int ilUserSearchCache::DEFAULT_SEARCH = 0

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

Referenced by __construct().

◆ LAST_QUERY

const int ilUserSearchCache::LAST_QUERY = 7

◆ LUCENE_DEFAULT

const int ilUserSearchCache::LUCENE_DEFAULT = 5

◆ LUCENE_USER_SEARCH

const int ilUserSearchCache::LUCENE_USER_SEARCH = 8

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