ILIAS
Release_4_0_x_branch Revision 61816
|
Class for storing search result. More...
Public Member Functions | |
switchSearchType ($a_type) | |
switch to search type reads entries from database | |
getResults () | |
Get results. | |
setResults ($a_results) | |
Set results. | |
addResult ($a_result_item) | |
Append result. | |
appendToFailed ($a_ref_id) | |
Append failed id. | |
isFailed ($a_ref_id) | |
check if reference has failed access | |
appendToChecked ($a_ref_id, $a_obj_id) | |
Append checked id. | |
isChecked ($a_ref_id) | |
Check if reference was already checked. | |
getCheckedItems () | |
Get all checked items. | |
setResultPageNumber ($a_number) | |
Set result page number. | |
getResultPageNumber () | |
get result page number | |
setQuery ($a_query) | |
set query | |
getQuery () | |
get query | |
setRoot ($a_root) | |
set root node of search | |
getRoot () | |
get root node | |
setItemFilter ($a_filter) | |
getItemFilter () | |
deleteCachedEntries () | |
delete cached entries | |
delete () | |
Delete user entries. | |
save () | |
Save entries. |
Static Public Member Functions | |
static | _getInstance ($a_usr_id) |
Get singleton instance. |
Data Fields | |
const | DEFAULT_SEARCH = 0 |
const | ADVANCED_SEARCH = 1 |
const | SHOP_CONTENT = 2 |
const | SHOP_ADVANCED_SEARCH = 3 |
const | ADVANCED_MD_SEARCH = 4 |
const | LUCENE_DEFAULT = 5 |
const | LUCENE_ADVANCED = 6 |
Private Member Functions | |
__construct ($a_usr_id) | |
Constructor. | |
read () | |
Read user entries. |
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() |
Static Private Attributes | |
static | $instance = null |
Class for storing search result.
Allows paging of result sets
Definition at line 35 of file class.ilUserSearchCache.php.
|
private |
Constructor.
private
Definition at line 67 of file class.ilUserSearchCache.php.
References $ilDB, DEFAULT_SEARCH, and read().
|
static |
Get singleton instance.
public
int | usr_id |
Definition at line 85 of file class.ilUserSearchCache.php.
References $instance.
Referenced by ilLuceneSearchResultFilter\__construct(), ilShopResultPresentationGUI\ilShopResultPresentationGUI(), ilLuceneAdvancedSearchGUI\initUserSearchCache(), ilLuceneSearchGUI\initUserSearchCache(), ilSearchResult\initUserSearchCache(), ilSearchGUI\initUserSearchCache(), and ilAdvancedSearchGUI\initUserSearchCache().
ilUserSearchCache::addResult | ( | $a_result_item | ) |
Append result.
public
array(int,int,string) | array(ref_id,obj_id,type) |
Definition at line 139 of file class.ilUserSearchCache.php.
ilUserSearchCache::appendToChecked | ( | $a_ref_id, | |
$a_obj_id | |||
) |
Append checked id.
public
int | checked reference id |
int | checked obj_id |
Definition at line 179 of file class.ilUserSearchCache.php.
ilUserSearchCache::appendToFailed | ( | $a_ref_id | ) |
Append failed id.
public
int | ref_id of failed access |
Definition at line 154 of file class.ilUserSearchCache.php.
ilUserSearchCache::delete | ( | ) |
Delete user entries.
public
Definition at line 337 of file class.ilUserSearchCache.php.
References $ilDB, $query, $res, and read().
ilUserSearchCache::deleteCachedEntries | ( | ) |
delete cached entries
@return |
Definition at line 288 of file class.ilUserSearchCache.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, and setResultPageNumber().
ilUserSearchCache::getCheckedItems | ( | ) |
Get all checked items.
public
Definition at line 203 of file class.ilUserSearchCache.php.
ilUserSearchCache::getItemFilter | ( | ) |
Definition at line 278 of file class.ilUserSearchCache.php.
References $item_filter.
Referenced by save().
ilUserSearchCache::getQuery | ( | ) |
get query
Definition at line 248 of file class.ilUserSearchCache.php.
References $query.
Referenced by save().
ilUserSearchCache::getResultPageNumber | ( | ) |
get result page number
public
Definition at line 228 of file class.ilUserSearchCache.php.
ilUserSearchCache::getResults | ( | ) |
Get results.
public
Definition at line 115 of file class.ilUserSearchCache.php.
ilUserSearchCache::getRoot | ( | ) |
get root node
Definition at line 268 of file class.ilUserSearchCache.php.
Referenced by save().
ilUserSearchCache::isChecked | ( | $a_ref_id | ) |
Check if reference was already checked.
public
int | ref_id |
Definition at line 191 of file class.ilUserSearchCache.php.
ilUserSearchCache::isFailed | ( | $a_ref_id | ) |
check if reference has failed access
public
int | ref_id |
Definition at line 166 of file class.ilUserSearchCache.php.
|
private |
Read user entries.
private
Definition at line 397 of file class.ilUserSearchCache.php.
References $_SESSION, $query, $res, $row, DB_FETCHMODE_OBJECT, setItemFilter(), setQuery(), and setRoot().
Referenced by __construct(), delete(), and switchSearchType().
ilUserSearchCache::save | ( | ) |
Save entries.
public
Definition at line 356 of file class.ilUserSearchCache.php.
References $_SESSION, $ilDB, $ilLog, $query, $res, getItemFilter(), getQuery(), and getRoot().
ilUserSearchCache::setItemFilter | ( | $a_filter | ) |
Definition at line 273 of file class.ilUserSearchCache.php.
Referenced by read().
ilUserSearchCache::setQuery | ( | $a_query | ) |
set query
mixed | query string or array (for advanced search) |
Definition at line 238 of file class.ilUserSearchCache.php.
Referenced by read().
ilUserSearchCache::setResultPageNumber | ( | $a_number | ) |
Set result page number.
public
Definition at line 214 of file class.ilUserSearchCache.php.
Referenced by deleteCachedEntries().
ilUserSearchCache::setResults | ( | $a_results | ) |
Set results.
public
array(int | => array(int,int,string)) array(ref_id => array(ref_id,obj_id,type)) |
Definition at line 127 of file class.ilUserSearchCache.php.
ilUserSearchCache::setRoot | ( | $a_root | ) |
set root node of search
int | root id |
Definition at line 258 of file class.ilUserSearchCache.php.
Referenced by read().
ilUserSearchCache::switchSearchType | ( | $a_type | ) |
switch to search type reads entries from database
public
int | search type |
Definition at line 102 of file class.ilUserSearchCache.php.
References read().
|
private |
Definition at line 52 of file class.ilUserSearchCache.php.
|
private |
Definition at line 46 of file class.ilUserSearchCache.php.
|
private |
Definition at line 53 of file class.ilUserSearchCache.php.
|
staticprivate |
Definition at line 45 of file class.ilUserSearchCache.php.
Referenced by _getInstance().
|
private |
Definition at line 58 of file class.ilUserSearchCache.php.
Referenced by getItemFilter().
|
private |
Definition at line 54 of file class.ilUserSearchCache.php.
|
private |
Definition at line 55 of file class.ilUserSearchCache.php.
Referenced by delete(), deleteCachedEntries(), getQuery(), read(), and save().
|
private |
Definition at line 56 of file class.ilUserSearchCache.php.
|
private |
Definition at line 51 of file class.ilUserSearchCache.php.
|
private |
Definition at line 49 of file class.ilUserSearchCache.php.
|
private |
Definition at line 48 of file class.ilUserSearchCache.php.
const ilUserSearchCache::ADVANCED_MD_SEARCH = 4 |
Definition at line 41 of file class.ilUserSearchCache.php.
Referenced by ilAdvancedSearchGUI\initSearchType().
const ilUserSearchCache::ADVANCED_SEARCH = 1 |
Definition at line 38 of file class.ilUserSearchCache.php.
Referenced by ilAdvancedSearchGUI\initSearchType(), and ilAdvancedSearchGUI\initUserSearchCache().
const ilUserSearchCache::DEFAULT_SEARCH = 0 |
Definition at line 37 of file class.ilUserSearchCache.php.
Referenced by __construct().
const ilUserSearchCache::LUCENE_ADVANCED = 6 |
Definition at line 43 of file class.ilUserSearchCache.php.
Referenced by ilLuceneAdvancedSearchGUI\initUserSearchCache().
const ilUserSearchCache::LUCENE_DEFAULT = 5 |
Definition at line 42 of file class.ilUserSearchCache.php.
Referenced by ilLuceneSearchGUI\initUserSearchCache().
const ilUserSearchCache::SHOP_ADVANCED_SEARCH = 3 |
Definition at line 40 of file class.ilUserSearchCache.php.
const ilUserSearchCache::SHOP_CONTENT = 2 |
Definition at line 39 of file class.ilUserSearchCache.php.