ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Search result implementing iterator interface. More...
Public Member Functions | |
__construct () | |
Constructor. More... | |
setCallback ($a_callback) | |
set search callback More... | |
rewind () | |
Iterator rewind. More... | |
valid () | |
Iterator valid. More... | |
key () | |
Iterator key. More... | |
current () | |
Iterator current. More... | |
next () | |
Iterator next. More... | |
getCandidates () | |
get candidates More... | |
addObject ($a_value, $a_relevance=0) | |
Add object entry. More... | |
getRelevance ($a_obj_id) | |
get relevance More... | |
setLimit ($a_limit) | |
getLimit () | |
setMaxScore ($a_score) | |
getMaxScore () | |
setTotalHits ($a_hits) | |
set total hits More... | |
getTotalHits () | |
get total hits More... | |
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 147 of file class.ilLuceneSearchResult.php.
Referenced by ilLuceneSearchResultParser\parse().
ilLuceneSearchResult::current | ( | ) |
Iterator current.
Definition at line 114 of file class.ilLuceneSearchResult.php.
References $position.
ilLuceneSearchResult::getCandidates | ( | ) |
get candidates
Definition at line 135 of file class.ilLuceneSearchResult.php.
References array.
ilLuceneSearchResult::getLimit | ( | ) |
Definition at line 183 of file class.ilLuceneSearchResult.php.
References $limit.
Referenced by ilLuceneSearchResultParser\parse().
ilLuceneSearchResult::getMaxScore | ( | ) |
Definition at line 204 of file class.ilLuceneSearchResult.php.
References $max_score.
Referenced by getRelevance().
ilLuceneSearchResult::getRelevance | ( | $a_obj_id | ) |
get relevance
int | obj_id |
Definition at line 158 of file class.ilLuceneSearchResult.php.
References getMaxScore().
ilLuceneSearchResult::getTotalHits | ( | ) |
get total hits
Definition at line 223 of file class.ilLuceneSearchResult.php.
References $total_hits.
Referenced by valid().
ilLuceneSearchResult::key | ( | ) |
Iterator key.
Definition at line 105 of file class.ilLuceneSearchResult.php.
References $position.
ilLuceneSearchResult::next | ( | ) |
ilLuceneSearchResult::rewind | ( | ) |
ilLuceneSearchResult::setCallback | ( | $a_callback | ) |
ilLuceneSearchResult::setLimit | ( | $a_limit | ) |
Definition at line 173 of file class.ilLuceneSearchResult.php.
Referenced by ilLuceneSearchResultParser\parse().
ilLuceneSearchResult::setMaxScore | ( | $a_score | ) |
Definition at line 194 of file class.ilLuceneSearchResult.php.
Referenced by ilLuceneSearchResultParser\parse().
ilLuceneSearchResult::setTotalHits | ( | $a_hits | ) |
set total hits
Definition at line 213 of file class.ilLuceneSearchResult.php.
Referenced by ilLuceneSearchResultParser\parse().
ilLuceneSearchResult::valid | ( | ) |
Iterator valid.
Definition at line 80 of file class.ilLuceneSearchResult.php.
References ilLoggerFactory\getLogger(), 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().