Squiz Matrix
4.12.2
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
All
Data Structures
Namespaces
Functions
Variables
Pages
funnelback_search_page_management.inc
1
<?php
17
require_once SQ_INCLUDE_PATH.
'/asset_management.inc'
;
18
29
class
Funnelback_Search_Page_Management
extends
Asset_Management
30
{
31
32
37
function
Funnelback_Search_Page_Management
(&$pm)
38
{
39
$this->
Asset_Management
($pm);
40
41
$this->vars[
'search_type'
] = Array(
42
'added'
=>
'0.1'
,
43
'type'
=>
'selection'
,
44
'default'
=>
'integrated'
,
45
'parameters'
=> Array(
46
'options'
=> Array(
47
'integrated'
=>
'Integrated Search'
,
48
'web'
=>
'Funnelback Server Search'
,
49
'squiz'
=>
'Squiz Search'
,
50
'hosted'
=>
'Funnelback Search'
,
51
),
52
'multiple'
=> FALSE,
53
'allow_empty'
=> FALSE,
54
'allow_other'
=> FALSE,
55
),
56
);
57
58
$this->vars[
'systemid'
] = Array(
59
'added'
=>
'0.1'
,
60
'type'
=>
'text'
,
61
'default'
=>
''
,
62
'parameters'
=> Array(),
63
);
64
65
$this->vars[
'funnelback_url'
] = Array(
66
'added'
=>
'0.1'
,
67
'type'
=>
'text'
,
68
'default'
=>
''
,
69
'parameters'
=> Array(),
70
);
71
72
$this->vars[
'collection'
] = Array(
73
'added'
=>
'0.1'
,
74
'type'
=>
'text'
,
75
'default'
=>
''
,
76
'parameters'
=> Array(),
77
);
78
79
$this->vars[
'allow_empty'
] = Array(
80
'added'
=>
'0.1'
,
81
'type'
=>
'boolean'
,
82
'default'
=> TRUE,
83
'description'
=>
'Allow empty search queries'
,
84
'parameters'
=> Array(
'allow_empty'
=> FALSE),
85
);
86
87
$this->vars[
'sort_order'
] = Array(
88
'added'
=>
'0.1'
,
89
'type'
=>
'text'
,
90
'default'
=>
''
,
91
'parameters'
=> Array(),
92
);
93
94
$this->vars[
'scope'
] = Array(
95
'added'
=>
'0.1'
,
96
'type'
=>
'serialise'
,
97
'default'
=> Array(
'ALL'
=>
'Site'
),
98
);
99
100
$this->vars[
'default_scope'
] = Array(
101
'added'
=>
'0.1'
,
102
'type'
=>
'text'
,
103
'default'
=>
''
,
104
'parameters'
=> Array(),
105
);
106
107
$this->vars[
'dynamic_parameters'
] = Array(
108
'added'
=>
'0.1'
,
109
'type'
=>
'parameter_map'
,
110
'default'
=> Array(),
111
'parameters'
=> Array(
112
'parameters'
=> Array(
113
'query'
=>
'Query'
,
114
'results_per_page'
=>
'Results per page'
,
115
'scope'
=>
'Scope'
,
116
'sort_order'
=>
'Sort Order'
,
117
),
118
),
119
);
120
121
$this->vars[
'stored_query_show_results'
] = Array(
122
'added'
=>
'0.1'
,
123
'type'
=>
'boolean'
,
124
'default'
=> FALSE,
125
'description'
=>
'Go directly to the results if the query is stored'
,
126
'parameters'
=> Array(
'allow_empty'
=> FALSE),
127
);
128
129
$this->vars[
'show_fluster_more'
] = Array(
130
'added'
=>
'0.1'
,
131
'type'
=>
'boolean'
,
132
'default'
=> FALSE,
133
'description'
=>
'Go directly to the results if the query is stored'
,
134
'parameters'
=> Array(
'allow_empty'
=> FALSE),
135
);
136
137
$this->vars[
'more_type_text'
] = Array(
138
'added'
=>
'0.1'
,
139
'type'
=>
'text'
,
140
'default'
=>
'more types'
,
141
'parameters'
=> Array(),
142
);
143
144
$this->vars[
'more_type_num'
] = Array(
145
'added'
=>
'0.1'
,
146
'type'
=>
'int'
,
147
'default'
=>
'20'
,
148
'parameters'
=> Array(),
149
);
150
151
$this->vars[
'less_type_text'
] = Array(
152
'added'
=>
'0.1'
,
153
'type'
=>
'text'
,
154
'default'
=>
'fewer types'
,
155
'parameters'
=> Array(),
156
);
157
158
$this->vars[
'less_type_num'
] = Array(
159
'added'
=>
'0.1'
,
160
'type'
=>
'int'
,
161
'default'
=>
'8'
,
162
'parameters'
=> Array(),
163
);
164
165
$this->vars[
'more_topic_text'
] = Array(
166
'added'
=>
'0.1'
,
167
'type'
=>
'text'
,
168
'default'
=>
'more topics'
,
169
'parameters'
=> Array(),
170
);
171
172
$this->vars[
'more_topic_num'
] = Array(
173
'added'
=>
'0.1'
,
174
'type'
=>
'int'
,
175
'default'
=>
'20'
,
176
'parameters'
=> Array(),
177
);
178
179
$this->vars[
'less_topic_text'
] = Array(
180
'added'
=>
'0.1'
,
181
'type'
=>
'text'
,
182
'default'
=>
'fewer topics'
,
183
'parameters'
=> Array(),
184
);
185
186
$this->vars[
'less_topic_num'
] = Array(
187
'added'
=>
'0.1'
,
188
'type'
=>
'int'
,
189
'default'
=>
'8'
,
190
'parameters'
=> Array(),
191
);
192
193
$this->vars[
'more_site_text'
] = Array(
194
'added'
=>
'0.1'
,
195
'type'
=>
'text'
,
196
'default'
=>
'more sites'
,
197
'parameters'
=> Array(),
198
);
199
200
$this->vars[
'more_site_num'
] = Array(
201
'added'
=>
'0.1'
,
202
'type'
=>
'int'
,
203
'default'
=>
'20'
,
204
'parameters'
=> Array(),
205
);
206
207
$this->vars[
'less_site_text'
] = Array(
208
'added'
=>
'0.1'
,
209
'type'
=>
'text'
,
210
'default'
=>
'fewer sites'
,
211
'parameters'
=> Array(),
212
);
213
214
$this->vars[
'less_site_num'
] = Array(
215
'added'
=>
'0.1'
,
216
'type'
=>
'int'
,
217
'default'
=>
'8'
,
218
'parameters'
=> Array(),
219
);
220
221
// Num per page is set here, to override the default of 0
222
$this->vars[
'num_per_page'
] = Array(
223
'added'
=>
'0.1'
,
224
'type'
=>
'text'
,
225
'default'
=> 10,
226
);
227
228
$this->vars[
'word_logic'
] = Array(
229
'added'
=>
'0.1'
,
230
'type'
=>
'selection'
,
231
'default'
=>
'1'
,
232
'parameters'
=> Array(
233
'multiple'
=> FALSE,
234
'allow_empty'
=> FALSE,
235
'options'
=> Array(
236
0 =>
'Exclude'
,
237
1 =>
'Include any'
,
238
2 =>
'Include all'
,
239
),
240
),
241
);
242
243
$this->vars[
'disable_keyword_replacements'
] = Array(
244
'added'
=>
'0.2'
,
245
'type'
=>
'boolean'
,
246
'default'
=> TRUE,
247
'description'
=>
'If true, will not replace any keywords from the user input'
,
248
'parameters'
=> Array(
'allow_empty'
=> FALSE),
249
);
250
251
252
$this->vars[
'hosted_mode'
] = Array(
253
'added'
=>
'0.2'
,
254
'type'
=>
'selection'
,
255
'default'
=> 1,
256
'parameters'
=> Array(
257
'multiple'
=> FALSE,
258
'allow_empty'
=> FALSE,
259
'options'
=> Array(
260
0 =>
'Classic'
,
261
1 =>
'Advanced'
,
262
),
263
),
264
);
265
266
267
}
//end constructor
268
269
276
function
getEventList
()
277
{
278
return
Array(
279
Array(
280
'event_name'
=>
'requestKeywords'
,
281
'broadcast_type_code'
=>
'content_type'
,
282
'broadcast_strict_type_code'
=> FALSE,
283
'options'
=> Array(
284
'side_of_link'
=>
'major'
,
285
'indirect'
=> TRUE,
286
'is_exclusive'
=> NULL,
287
'is_dependant'
=> 1,
288
'value'
=>
''
,
289
'link_type'
=> SQ_LINK_TYPE_2 | SQ_LINK_TYPE_1,
290
),
291
),
292
);
293
294
}
//end getEventList()
295
296
297
}
//end class
298
299
?>
squiz_matrix
packages
funnelback
page_templates
funnelback_search_page
funnelback_search_page_management.inc
Generated on Tue Jan 29 2013 14:05:01 for Squiz Matrix by
1.8.3.1