ILIAS
Release_3_10_x_branch Revision 61812
|
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 | |
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 |
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 |
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 61 of file class.ilUserSearchCache.php.
References DEFAULT_SEARCH, and read().
|
static |
Get singleton instance.
public
int | usr_id |
Definition at line 79 of file class.ilUserSearchCache.php.
References $instance.
Referenced by ilSearchResultPresentationGUI\ilSearchResultPresentationGUI(), 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 133 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 173 of file class.ilUserSearchCache.php.
ilUserSearchCache::appendToFailed | ( | $a_ref_id | ) |
Append failed id.
public
int | ref_id of failed access |
Definition at line 148 of file class.ilUserSearchCache.php.
ilUserSearchCache::delete | ( | ) |
Delete user entries.
public
Definition at line 233 of file class.ilUserSearchCache.php.
ilUserSearchCache::getCheckedItems | ( | ) |
Get all checked items.
public
Definition at line 197 of file class.ilUserSearchCache.php.
ilUserSearchCache::getResultPageNumber | ( | ) |
get result page number
public
Definition at line 222 of file class.ilUserSearchCache.php.
ilUserSearchCache::getResults | ( | ) |
Get results.
public
Definition at line 109 of file class.ilUserSearchCache.php.
ilUserSearchCache::isChecked | ( | $a_ref_id | ) |
Check if reference was already checked.
public
int | ref_id |
Definition at line 185 of file class.ilUserSearchCache.php.
ilUserSearchCache::isFailed | ( | $a_ref_id | ) |
check if reference has failed access
public
int | ref_id |
Definition at line 160 of file class.ilUserSearchCache.php.
|
private |
Read user entries.
private
Definition at line 279 of file class.ilUserSearchCache.php.
References $res, and DB_FETCHMODE_OBJECT.
Referenced by __construct(), delete(), and switchSearchType().
ilUserSearchCache::save | ( | ) |
Save entries.
public
Definition at line 250 of file class.ilUserSearchCache.php.
References $res.
ilUserSearchCache::setResultPageNumber | ( | $a_number | ) |
Set result page number.
public
Definition at line 208 of file class.ilUserSearchCache.php.
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 121 of file class.ilUserSearchCache.php.
ilUserSearchCache::switchSearchType | ( | $a_type | ) |
switch to search type reads entries from database
public
int | search type |
Definition at line 96 of file class.ilUserSearchCache.php.
References read().
|
private |
Definition at line 50 of file class.ilUserSearchCache.php.
|
private |
Definition at line 44 of file class.ilUserSearchCache.php.
|
private |
Definition at line 51 of file class.ilUserSearchCache.php.
|
staticprivate |
Definition at line 43 of file class.ilUserSearchCache.php.
Referenced by _getInstance().
|
private |
Definition at line 52 of file class.ilUserSearchCache.php.
|
private |
Definition at line 49 of file class.ilUserSearchCache.php.
|
private |
Definition at line 47 of file class.ilUserSearchCache.php.
|
private |
Definition at line 46 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::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.