9 var $spellings = array();
10 var $keywords = array();
14 var $estimated = false
;
19 function ExaleadData(){}
21 function setQuery($query){$this->query
= $query;}
22 function addHit($hit){$this->hits
[] = $hit;}
23 function addGroup($group){$this->groups
[] = $group;}
24 function addSpelling($spelling){$this->spellings
[] = $spelling;}
25 function addKeyword($keyword){$this->keywords
[] = $keyword;}
33 var $refine_href = "";
34 var $exclude_href = "";
37 function ExaleadKeyword(){}
49 return empty($this->reset_href
);
52 function is_refined(){
53 return ( (!empty($this->reset_href
)) && ($this->count
> 0) );
56 function is_excluded(){
57 return ( (!empty($this->reset_href
)) && ($this->count
== 0) );
65 var $categories = array();
73 function ExaleadGroup(){}
75 function addCategory($category){
76 $this->categories
[] = $category;
79 function setGid($gid){$this->gid
= $gid;}
80 function setTitle($title){$this->title
= $title;}
81 function setClipped($clipped){$this->clipped
= $clipped;}
82 function setCount($count){$this->count
= $count;}
83 function setBrowsed($browsed){$this->browsed
= $browsed;}
84 function setClipHref($clip_href){$this->clip_href
= $clip_href;}
85 function setResetHref($reset_href){$this->reset_href
= $reset_href;}
89 $this->categories
= array();
91 $this->clipped
= false
;
93 $this->browsed
= false
;
94 $this->clip_href
= "";
95 $this->reset_href
= "";
100 class ExaleadSpelling
{
103 var $query_href = "";
105 function ExaleadSpelling(){}
107 function setDisplay($display){$this->display
= $display;}
108 function setQueryHref($query_href){$this->query_href
= $query_href;}
112 $this->query_href
= "";
116 class ExaleadCategory
{
120 var $automatic = false
;
121 var $refine_href = "";
122 var $exclude_href = "";
123 var $reset_href = "";
127 var $categories = array();
129 function ExaleadCategory(){}
131 function addCategory($category){
132 $this->categories
[] = $category;
139 $this->automatic
= false
;
140 $this->refine_href
= "";
141 $this->exclude_href
= "";
142 $this->reset_href
= "";
148 function is_normal(){
149 return empty($this->reset_href
);
152 function is_refined(){
153 return ( (!empty($this->reset_href
)) && ($this->count
> 0) );
156 function is_excluded(){
157 return ( (!empty($this->reset_href
)) && ($this->count
== 0) );
163 var $hitfields = array();
164 var $hitgroups = array();
165 var $actions = array();
169 function ExaleadHit(){}
171 function addHitField($hitfield){$this->hitfields
[] = $hitfield;}
172 function addHitGroup($hitgroup){$this->hitgroups
[] = $hitgroup;}
173 function addAction($action){$this->actions
[] = $action;}
176 $this->hitfields
= array();
177 $this->hitgroups
= array();
178 $this->actions
= array();
184 class ExaleadHitGroup
{
185 var $hitcategories = array();
189 function ExaleadHitGroup(){}
191 function addHitCategory($hitcategory){$this->hitcategories
[] = $hitcategory;}
194 $this->hitcategories
= array();
200 class ExaleadHitCategory
{
205 var $browseHref = '';
207 function ExaleadHitCategory(){}
214 $this->browseHref
= '';
218 class ExaleadHitField
{
219 var $text_segments = array();
220 var $has_text_cut = false
;
224 function ExaleadHitField(){}
226 function addTextSegment($text_segment){$this->text_segments
[] = $text_segment;}
227 function setHasTextCut($has_text_cut){$this->has_text_cut
= $has_text_cut;}
230 $this->text_segments
= array();
231 $this->has_text_cut
= false
;
242 function ExaleadAction(){}
247 $this->execHref
= '';
251 class ExaleadTextSegment
{
253 var $highlighted = false
;
255 function ExaleadTextSegment(){
258 function setHighlighted($highlighted){$this->highlighted
= $highlighted;}
260 function append($text){
261 $this->text
.= $text;
266 $this->highlighted
= false
;
271 var $query_parameters = array();
272 var $query_terms = array();
276 var $interrupted = false
;
277 var $browsed = false
;
279 function ExaleadQuery(){}
281 function addParameter($parameter){$this->query_parameters
[] = $parameter;}
282 function addTerm($term){$this->query_terms
[] = $term;}
285 $this->query_parameters
= array();
286 $this->query_terms
= array();
290 $this->interrupted
= false
;
291 $this->browsed
= false
;
295 class ExaleadQueryParameter
{
300 function ExaleadQueryParameter(){}
308 class ExaleadQueryTerm
{
313 function ExaleadQueryTerm(){}