63 $this->listener = $a_callback;
82 if ($this->position < count($this->objects)) {
89 @call_user_func($this->listener);
92 if ($this->position < count($this->objects)) {
146 $this->objects[] = $a_value;
147 $this->relevance[$a_value] = $a_relevance;
160 return isset($this->relevance[$a_obj_id]) ? $this->relevance[$a_obj_id] / $this->
getMaxScore() * 100 : 0;
171 $this->limit = $a_limit;
192 $this->max_score = $a_score;
211 $this->total_hits = $a_hits;
current()
Iterator current.
setCallback($a_callback)
set search callback
__construct()
Constructor.
getTotalHits()
get total hits
getCandidates()
get candidates
setTotalHits($a_hits)
set total hits
getRelevance($a_obj_id)
get relevance
Search result implementing iterator interface.
addObject($a_value, $a_relevance=0)
Add object entry.
static getLogger($a_component_id)
Get component logger.