ILIAS
Release_4_1_x_branch Revision 61804
|
Search result implementing iterator interface. More...
Public Member Functions | |
__construct () | |
Constructor. | |
setCallback ($a_callback) | |
set search callback | |
rewind () | |
Iterator rewind. | |
valid () | |
Iterator valid. | |
key () | |
Iterator key. | |
current () | |
Iterator current. | |
next () | |
Iterator next. | |
getCandidates () | |
get candidates | |
addObject ($a_value, $a_relevance=0) | |
Add object entry. | |
getRelevance ($a_obj_id) | |
get relevance | |
setLimit ($a_limit) | |
getLimit () | |
setMaxScore ($a_score) | |
getMaxScore () | |
setTotalHits ($a_hits) | |
set total hits | |
getTotalHits () | |
get total hits |
Private Attributes | |
$listener | |
$position = 0 | |
$limit = 0 | |
$total_hits = 0 | |
$max_score = 0 | |
$objects | |
$relevance |
Search result implementing iterator interface.
Definition at line 34 of file class.ilLuceneSearchResult.php.
ilLuceneSearchResult::__construct | ( | ) |
Constructor.
string | search result |
Definition at line 52 of file class.ilLuceneSearchResult.php.
ilLuceneSearchResult::addObject | ( | $a_value, | |
$a_relevance = 0 |
|||
) |
Add object entry.
int | key |
int | value |
Definition at line 150 of file class.ilLuceneSearchResult.php.
Referenced by ilLuceneSearchResultParser\parse().
ilLuceneSearchResult::current | ( | ) |
Iterator current.
Definition at line 117 of file class.ilLuceneSearchResult.php.
References $position.
ilLuceneSearchResult::getCandidates | ( | ) |
get candidates
@return |
Definition at line 138 of file class.ilLuceneSearchResult.php.
ilLuceneSearchResult::getLimit | ( | ) |
@return |
Definition at line 186 of file class.ilLuceneSearchResult.php.
References $limit.
Referenced by ilLuceneSearchResultParser\parse().
ilLuceneSearchResult::getMaxScore | ( | ) |
@return |
Definition at line 207 of file class.ilLuceneSearchResult.php.
References $max_score.
Referenced by getRelevance().
ilLuceneSearchResult::getRelevance | ( | $a_obj_id | ) |
get relevance
int | obj_id |
Definition at line 161 of file class.ilLuceneSearchResult.php.
References getMaxScore().
ilLuceneSearchResult::getTotalHits | ( | ) |
get total hits
@return |
Definition at line 226 of file class.ilLuceneSearchResult.php.
References $total_hits.
Referenced by valid().
ilLuceneSearchResult::key | ( | ) |
Iterator key.
Definition at line 108 of file class.ilLuceneSearchResult.php.
References $position.
ilLuceneSearchResult::next | ( | ) |
Iterator next.
Definition at line 126 of file class.ilLuceneSearchResult.php.
ilLuceneSearchResult::rewind | ( | ) |
Iterator rewind.
Definition at line 70 of file class.ilLuceneSearchResult.php.
ilLuceneSearchResult::setCallback | ( | $a_callback | ) |
set search callback
@return |
Definition at line 61 of file class.ilLuceneSearchResult.php.
ilLuceneSearchResult::setLimit | ( | $a_limit | ) |
@return |
Definition at line 176 of file class.ilLuceneSearchResult.php.
Referenced by ilLuceneSearchResultParser\parse().
ilLuceneSearchResult::setMaxScore | ( | $a_score | ) |
@return |
Definition at line 197 of file class.ilLuceneSearchResult.php.
Referenced by ilLuceneSearchResultParser\parse().
ilLuceneSearchResult::setTotalHits | ( | $a_hits | ) |
set total hits
Definition at line 216 of file class.ilLuceneSearchResult.php.
Referenced by ilLuceneSearchResultParser\parse().
ilLuceneSearchResult::valid | ( | ) |
Iterator valid.
@return |
Definition at line 80 of file class.ilLuceneSearchResult.php.
References $ilLog, and getTotalHits().
|
private |
Definition at line 39 of file class.ilLuceneSearchResult.php.
Referenced by getLimit().
|
private |
Definition at line 36 of file class.ilLuceneSearchResult.php.
|
private |
Definition at line 41 of file class.ilLuceneSearchResult.php.
Referenced by getMaxScore().
|
private |
Definition at line 43 of file class.ilLuceneSearchResult.php.
|
private |
Definition at line 37 of file class.ilLuceneSearchResult.php.
|
private |
Definition at line 44 of file class.ilLuceneSearchResult.php.
|
private |
Definition at line 40 of file class.ilLuceneSearchResult.php.
Referenced by getTotalHits().