63 $this->listener = $a_callback;
82 if($this->position < count($this->objects))
91 @call_user_func($this->listener);
94 if($this->position < count($this->objects))
137 return $this->objects ? $this->objects :
array();
149 $this->objects[] = $a_value;
150 $this->relevance[$a_value] = $a_relevance;
164 return isset($this->relevance[$a_obj_id]) ? $this->relevance[$a_obj_id] / $this->
getMaxScore() * 100 : 0;
175 $this->limit = $a_limit;
196 $this->max_score = $a_score;
215 $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.
Create styles array
The data for the language used.
addObject($a_value, $a_relevance=0)
Add object entry.
static getLogger($a_component_id)
Get component logger.