/[cvs]/nfo/php/libs/com.newsblob.phphtmllib/doc/phpHtmlLib/DataListSource.html
ViewVC logotype

Contents of /nfo/php/libs/com.newsblob.phphtmllib/doc/phpHtmlLib/DataListSource.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Sat Feb 22 20:56:17 2003 UTC (21 years, 6 months ago) by jonen
Branch: MAIN
Changes since 1.1: +550 -811 lines
File MIME type: text/html
+ updated whole lib to version 2.2.1 (new FormProcessing since 2.2.0!)

1 <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN' 'http://www.w3.org/TR/REC-html40/loose.dtd'>
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by PhpDoc date: 'Thu, 20 Feb 2003 16:22:36 -0800' -->
6 <TITLE>Docs For Class DataListSource</TITLE>
7 <LINK REL ='stylesheet' TYPE='text/css' HREF='../media/stylesheet.css' TITLE='Style'>
8 </HEAD>
9 <BODY style="background-color: #eeeeee; font-family: arial; font-size: .9em;">
10 <!-- Links -->
11 <a NAME="top"></A>
12 <table WIDTH="100%" class="links">
13 <TR>
14 <TD class="font10">
15 Links:
16 <A HREF="#children_summary" class="links" title="Classes extended from DataListSource">Child Classes</A>
17 <A HREF="#var_summary" class="links" title="Class Variable Summary">Variables</A>
18 <A HREF="#var_inherited_summary" class="links" title="Inherited Class Variable Summary">Inherited Variables</A>
19 <A HREF="#functions_inherited" class="links" title="Inherited Method Summary">Inherited Methods</A>
20 <A HREF="#method_summary" class="links" title="Method Summary">Methods</A>
21 <A HREF="#variable_detail" class="links" title="Variable Detail">Variable Detail</A>
22 <A HREF="#method_detail" class="links" title="Method Detail">Method Detail</A>
23 </TD>
24 </TR>
25 </TABLE>
26 <BR>
27 <!-- Start of Class Data -->
28 <H2>
29 Class DataListSource
30 </H2> (line <span class="linenumber">31</span>)
31 <pre>
32 </pre>
33 <SPAN class="type">Classes extended from DataListSource:</SPAN>
34 <dl>
35 <dt><a href="../phpHtmlLib/SQLDataListSource.html">SQLDataListSource</a></dt>
36 <dd></dd>
37 </dl>
38 <dl>
39 <dt><a href="../phpHtmlLib/CSVFILEDataListSource.html">CSVFILEDataListSource</a></dt>
40 <dd>This DataListSource child class gets the data from a CSV (comma seperated values) file on disk.</dd>
41 </dl>
42 </p>
43 <p>
44 <b><i>Located in File: Program_Root/widgets/data_list/DataListSource.inc</i></b><br>
45 </p>
46 <hr>
47 This is the base class for managing data for the DataList class. This abstracts away the underlying data layer from the DataList, so the data can come from multiple sources.
48 <br />
49 <p>Most of the time the data will come from a data base such as Mysql or Oracle. This abstraction enables the data to also come from a tab delimited file, xml, php array</p>
50 <UL>
51 <LI><b>author</b> - <CODE>Walter A. Boring IV &lt;<a href="mailto:waboring@buildabetterweb.com">mailto:waboring@buildabetterweb.com</a>&gt;</CODE></LI>
52 </UL>
53 <hr>
54 <!-- =========== VAR SUMMARY =========== -->
55 <A NAME='var_summary'><!-- --></A>
56 <TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border">
57 <TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'>
58 <TD>
59 <span CLASS="font12bold">Class Variable Summary</span>
60 <A HREF="#top" CLASS="links">^TOP</A>
61 </TD>
62 </TR>
63
64 <!-- =========== Summary =========== -->
65 <TR BGCOLOR='white' CLASS='TableRowColor'>
66 <TD>
67 <CODE><B><A HREF="../phpHtmlLib/DataListSource.html#var$_columns">$_columns</A></B></CODE>
68 <BR>
69 <blockquote> The column descriptions for the data we are working on </blockquote>
70 <blockquote> Default Value: <CODE>->array()<-</CODE> </blockquote>
71 </TD>
72 </TR>
73 <!-- =========== Summary =========== -->
74 <TR BGCOLOR='white' CLASS='TableRowColor'>
75 <TD>
76 <CODE><B><A HREF="../phpHtmlLib/DataListSource.html#var$_data">$_data</A></B></CODE>
77 <BR>
78 <blockquote> A placeholder for data that is read/built and stored locally. Not all data sources have to use this. </blockquote>
79 <blockquote> Default Value: <CODE>->array()<-</CODE> </blockquote>
80 </TD>
81 </TR>
82 <!-- =========== Summary =========== -->
83 <TR BGCOLOR='white' CLASS='TableRowColor'>
84 <TD>
85 <CODE><B><A HREF="../phpHtmlLib/DataListSource.html#var$_data_index">$_data_index</A></B></CODE>
86 <BR>
87 <blockquote> Holds the index into the array of data </blockquote>
88 <blockquote> Default Value: <CODE>->&nbsp;0<-</CODE> </blockquote>
89 </TD>
90 </TR>
91 <!-- =========== Summary =========== -->
92 <TR BGCOLOR='white' CLASS='TableRowColor'>
93 <TD>
94 <CODE><B><A HREF="../phpHtmlLib/DataListSource.html#var$_not_found_message">$_not_found_message</A></B></CODE>
95 <BR>
96 <blockquote> This is the message displayed when no data </blockquote>
97 <blockquote> Default Value: <CODE>->&nbsp;"No&nbsp;data&nbsp;was&nbsp;found"<-</CODE> </blockquote>
98 </TD>
99 </TR>
100 <!-- =========== Summary =========== -->
101 <TR BGCOLOR='white' CLASS='TableRowColor'>
102 <TD>
103 <CODE><B><A HREF="../phpHtmlLib/DataListSource.html#var$_query_params">$_query_params</A></B></CODE>
104 <BR>
105 <blockquote> This holds various parameters relating </blockquote>
106 <blockquote> Default Value: <CODE>->array("num_total_rows"&nbsp;=&gt;&nbsp;0,<br>
107 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"offset"&nbsp;=&gt;&nbsp;0,<br>
108 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"limit"&nbsp;=&gt;&nbsp;-1,<br>
109 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"orderby"&nbsp;=&gt;&nbsp;'',<br>
110 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"reverseorder"&nbsp;=&gt;&nbsp;'',<br>
111 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"searchby"&nbsp;=&gt;&nbsp;'',<br>
112 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"searchvalue"&nbsp;=&gt;&nbsp;'',<br>
113 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"searchmodifier"&nbsp;=&gt;&nbsp;'',<br>
114 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"searchtype"&nbsp;=&gt;&nbsp;'simple')<-</CODE> </blockquote>
115 </TD>
116 </TR>
117 </TABLE>
118 <hr>
119 <!-- =========== VAR INHERITED SUMMARY =========== -->
120 <A NAME='var_inherited_summary'><!-- --></A>
121 <TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border">
122 <TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'>
123 <TD>
124 <span CLASS="font12bold">Inherited Class Variable Summary</span>
125 <A HREF="#top" CLASS="links">^TOP</A>
126 </TD>
127 </TR>
128
129 </TABLE>
130
131 <hr>
132 <!-- =========== METHOD SUMMARY =========== -->
133 <A NAME='method_summary'><!-- --></A>
134 <TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' Class="border">
135 <TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'>
136 <TD>
137 <span class="font12bold">Method Summary</span>
138 <A HREF="#top" CLASS="links">^TOP</A>
139 </TD>
140 </TR>
141
142 <!-- =========== Summary =========== -->
143 <TR BGCOLOR='white' CLASS='TableRowColor'>
144 <TD>
145 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodDataListSource'>void constructor DataListSource ( )</A></B></CODE>
146 <BR>
147 <blockquote> The constructor </blockquote>
148 </TD>
149 </TR>
150 <!-- =========== Summary =========== -->
151 <TR BGCOLOR='white' CLASS='TableRowColor'>
152 <TD>
153 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodadd_column'>void add_column ( $title, $data_name, [$sortable = FALSE], [$searchable = FALSE], [$sortorder = "ASC"] )</A></B></CODE>
154 <BR>
155 <blockquote> Add a column of data to manage </blockquote>
156 </TD>
157 </TR>
158 <!-- =========== Summary =========== -->
159 <TR BGCOLOR='white' CLASS='TableRowColor'>
160 <TD>
161 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methoddo_prequery'>void do_prequery ( )</A></B></CODE>
162 <BR>
163 <blockquote> This is a method that should be defined by the child class to do any pre-query type of things. </blockquote>
164 </TD>
165 </TR>
166 <!-- =========== Summary =========== -->
167 <TR BGCOLOR='white' CLASS='TableRowColor'>
168 <TD>
169 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methoddo_query'>void do_query ( )</A></B></CODE>
170 <BR>
171 <blockquote> This is the function that does the data fetching, and sorting if needed. </blockquote>
172 </TD>
173 </TR>
174 <!-- =========== Summary =========== -->
175 <TR BGCOLOR='white' CLASS='TableRowColor'>
176 <TD>
177 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodget_data_index'>int get_data_index ( )</A></B></CODE>
178 <BR>
179 <blockquote> This function returns the data_index value and increments it </blockquote>
180 </TD>
181 </TR>
182 <!-- =========== Summary =========== -->
183 <TR BGCOLOR='white' CLASS='TableRowColor'>
184 <TD>
185 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodget_limit'>int get_limit ( )</A></B></CODE>
186 <BR>
187 <blockquote> This function gets the current value of the limit value </blockquote>
188 </TD>
189 </TR>
190 <!-- =========== Summary =========== -->
191 <TR BGCOLOR='white' CLASS='TableRowColor'>
192 <TD>
193 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodget_next_data_row'>array() get_next_data_row ( )</A></B></CODE>
194 <BR>
195 <blockquote> This function gets the next data row from the query() </blockquote>
196 </TD>
197 </TR>
198 <!-- =========== Summary =========== -->
199 <TR BGCOLOR='white' CLASS='TableRowColor'>
200 <TD>
201 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodget_not_found_message'>string get_not_found_message ( )</A></B></CODE>
202 <BR>
203 <blockquote> This function is used to get the message displayed when no data is found </blockquote>
204 </TD>
205 </TR>
206 <!-- =========== Summary =========== -->
207 <TR BGCOLOR='white' CLASS='TableRowColor'>
208 <TD>
209 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodget_offset'>int get_offset ( )</A></B></CODE>
210 <BR>
211 <blockquote> This function returns the value of the offset </blockquote>
212 </TD>
213 </TR>
214 <!-- =========== Summary =========== -->
215 <TR BGCOLOR='white' CLASS='TableRowColor'>
216 <TD>
217 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodget_orderby'>int get_orderby ( )</A></B></CODE>
218 <BR>
219 <blockquote> This function returns the value of the orderby </blockquote>
220 </TD>
221 </TR>
222 <!-- =========== Summary =========== -->
223 <TR BGCOLOR='white' CLASS='TableRowColor'>
224 <TD>
225 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodget_reverseorder'>int get_reverseorder ( )</A></B></CODE>
226 <BR>
227 <blockquote> This function returns the value of the reverseorder </blockquote>
228 </TD>
229 </TR>
230 <!-- =========== Summary =========== -->
231 <TR BGCOLOR='white' CLASS='TableRowColor'>
232 <TD>
233 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodget_searchby'>int get_searchby ( )</A></B></CODE>
234 <BR>
235 <blockquote> This function returns the value of the searchby </blockquote>
236 </TD>
237 </TR>
238 <!-- =========== Summary =========== -->
239 <TR BGCOLOR='white' CLASS='TableRowColor'>
240 <TD>
241 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodget_searchby_value'>int get_searchby_value ( )</A></B></CODE>
242 <BR>
243 <blockquote> This function returns the value of the search value </blockquote>
244 </TD>
245 </TR>
246 <!-- =========== Summary =========== -->
247 <TR BGCOLOR='white' CLASS='TableRowColor'>
248 <TD>
249 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodget_search_type'>string get_search_type ( )</A></B></CODE>
250 <BR>
251 <blockquote> this function returns the current search type for the DataList query </blockquote>
252 </TD>
253 </TR>
254 <!-- =========== Summary =========== -->
255 <TR BGCOLOR='white' CLASS='TableRowColor'>
256 <TD>
257 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodget_simplesearch_modifier'>int get_simplesearch_modifier ( )</A></B></CODE>
258 <BR>
259 <blockquote> This function returns the value of the search value </blockquote>
260 </TD>
261 </TR>
262 <!-- =========== Summary =========== -->
263 <TR BGCOLOR='white' CLASS='TableRowColor'>
264 <TD>
265 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodget_total_rows'>int get_total_rows ( )</A></B></CODE>
266 <BR>
267 <blockquote> This returns the total number of rows in our entire data set </blockquote>
268 </TD>
269 </TR>
270 <!-- =========== Summary =========== -->
271 <TR BGCOLOR='white' CLASS='TableRowColor'>
272 <TD>
273 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodquery'>void query ( $offset, $limit, $orderby, $reverseorder, $searchby, $searchby_value, $simplesearch_modifier, $search_type )</A></B></CODE>
274 <BR>
275 <blockquote> The main Query function. </blockquote>
276 </TD>
277 </TR>
278 <!-- =========== Summary =========== -->
279 <TR BGCOLOR='white' CLASS='TableRowColor'>
280 <TD>
281 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodset_limit'>void set_limit ( $limit )</A></B></CODE>
282 <BR>
283 <blockquote> This function is used to set </blockquote>
284 </TD>
285 </TR>
286 <!-- =========== Summary =========== -->
287 <TR BGCOLOR='white' CLASS='TableRowColor'>
288 <TD>
289 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodset_not_found_message'>void set_not_found_message ( $mesg )</A></B></CODE>
290 <BR>
291 <blockquote> This function is used to set the message displayed when no data is found </blockquote>
292 </TD>
293 </TR>
294 <!-- =========== Summary =========== -->
295 <TR BGCOLOR='white' CLASS='TableRowColor'>
296 <TD>
297 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodset_offset'>void set_offset ( $offset )</A></B></CODE>
298 <BR>
299 <blockquote> This sets the offset value and resets the index into the data array (in non DB children) </blockquote>
300 </TD>
301 </TR>
302 <!-- =========== Summary =========== -->
303 <TR BGCOLOR='white' CLASS='TableRowColor'>
304 <TD>
305 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodset_orderby'>void set_orderby ( $orderby )</A></B></CODE>
306 <BR>
307 <blockquote> This sets the orderby column name. </blockquote>
308 </TD>
309 </TR>
310 <!-- =========== Summary =========== -->
311 <TR BGCOLOR='white' CLASS='TableRowColor'>
312 <TD>
313 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodset_reverseorder'>void set_reverseorder ( $order )</A></B></CODE>
314 <BR>
315 <blockquote> This sets the flag that tells us the direction in which to order the orderby column. </blockquote>
316 </TD>
317 </TR>
318 <!-- =========== Summary =========== -->
319 <TR BGCOLOR='white' CLASS='TableRowColor'>
320 <TD>
321 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodset_searchby'>void set_searchby ( $search_col )</A></B></CODE>
322 <BR>
323 <blockquote> This sets the column that we want to search from. </blockquote>
324 </TD>
325 </TR>
326 <!-- =========== Summary =========== -->
327 <TR BGCOLOR='white' CLASS='TableRowColor'>
328 <TD>
329 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodset_searchby_value'>void set_searchby_value ( $search_value )</A></B></CODE>
330 <BR>
331 <blockquote> This sets the data that we want to search for. </blockquote>
332 </TD>
333 </TR>
334 <!-- =========== Summary =========== -->
335 <TR BGCOLOR='white' CLASS='TableRowColor'>
336 <TD>
337 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodset_search_type'>void set_search_type ( $search_type )</A></B></CODE>
338 <BR>
339 <blockquote> This function sets the search type (simple or advanced) </blockquote>
340 </TD>
341 </TR>
342 <!-- =========== Summary =========== -->
343 <TR BGCOLOR='white' CLASS='TableRowColor'>
344 <TD>
345 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodset_simplesearch_modifier'>void set_simplesearch_modifier ( $search_modifier )</A></B></CODE>
346 <BR>
347 <blockquote> This sets the simple search modifier </blockquote>
348 </TD>
349 </TR>
350 <!-- =========== Summary =========== -->
351 <TR BGCOLOR='white' CLASS='TableRowColor'>
352 <TD>
353 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodset_total_rows'>void set_total_rows ( $num )</A></B></CODE>
354 <BR>
355 <blockquote> This is used to set the total # of rows we have in our data set </blockquote>
356 </TD>
357 </TR>
358 <!-- =========== Summary =========== -->
359 <TR BGCOLOR='white' CLASS='TableRowColor'>
360 <TD>
361 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#methodsort'>void sort ( )</A></B></CODE>
362 <BR>
363 <blockquote> A generic method API that can be used at the bottom half of the do_query() method to sort data that is stored locally. This is only needed when the source is a non database. </blockquote>
364 </TD>
365 </TR>
366 <!-- =========== Summary =========== -->
367 <TR BGCOLOR='white' CLASS='TableRowColor'>
368 <TD>
369 <CODE><B><A HREF='../phpHtmlLib/DataListSource.html#method_is_column_sortable'>boolean _is_column_sortable ( $data_name )</A></B></CODE>
370 <BR>
371 <blockquote> This function determines if the column associated w/ a data_name is sortable or not </blockquote>
372 </TD>
373 </TR>
374 </TABLE>
375 <!-- =========== INHERITED METHOD SUMMARY =========== -->
376 <A NAME='functions_inherited'><!-- --></A>
377 <TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border">
378 <TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'>
379 <TD>
380 <span CLASS="font12bold">Inherited Method Summary</span>
381 <A HREF="#top" CLASS="links">^TOP</A>
382 </TD>
383 </TR>
384
385 </TABLE>
386 <hr>
387 <!-- ============ VARIABLE DETAIL =========== -->
388
389 <A NAME='variable_detail'></A>
390 <TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border">
391 <TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'>
392 <TD>
393 <span CLASS="font12bold">Variable Detail</span>
394 <A HREF="#top" CLASS="links">^TOP</A>
395 </TD>
396 </TR>
397 </TABLE>
398
399 <A NAME='var$_columns'><!-- --></A><H3>$_columns</H3> (line <span class="linenumber">39</span>)<br />
400 <b>Data type:</b> array<br>The column descriptions for the data we are working on
401 <br />
402
403 <UL>
404 </UL>
405 <HR>
406 <A NAME='var$_data'><!-- --></A><H3>$_data</H3> (line <span class="linenumber">79</span>)<br />
407 <b>Data type:</b> mixed<br>A placeholder for data that is read/built and stored locally. Not all data sources have to use this.
408 <br />
409 <p>Each entry in the array corresponds to 1 row of data.</p>
410 <UL>
411 </UL>
412 <HR>
413 <A NAME='var$_data_index'><!-- --></A><H3>$_data_index</H3> (line <span class="linenumber">70</span>)<br />
414 <b>Data type:</b> mixed<br>Holds the index into the array of data
415 <br />
416 <p>so we can keep track of where we are when we are walking the array (only usefull for non DB children)</p>
417 <UL>
418 </UL>
419 <HR>
420 <A NAME='var$_not_found_message'><!-- --></A><H3>$_not_found_message</H3> (line <span class="linenumber">45</span>)<br />
421 <b>Data type:</b> mixed<br>This is the message displayed when no data
422 <br />
423 <p>was retrieved from the database</p>
424 <UL>
425 </UL>
426 <HR>
427 <A NAME='var$_query_params'><!-- --></A><H3>$_query_params</H3> (line <span class="linenumber">53</span>)<br />
428 <b>Data type:</b> mixed<br>This holds various parameters relating
429 <br />
430 <p>to the query of the data</p>
431 <UL>
432 </UL>
433 <HR>
434 <hr>
435 <!-- ============ METHOD DETAIL =========== -->
436
437 <A NAME='method_detail'></A>
438 <TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border">
439 <TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'>
440 <TD>
441 <span class="font12bold">Method Detail</span>
442 <A HREF="#top" CLASS="links">^TOP</A>
443 </TD>
444 </TR>
445 </TABLE>
446 <BR>
447 <DIV CLASS="function">
448 <A NAME='methodDataListSource'><!-- --></A>
449 <SPAN CLASS="font12bold">Constructor DataListSource</SPAN> (line <span class="linenumber">85</span>)
450 <BR>
451 <SPAN CLASS="font10bold">Usage : </SPAN>
452 <span class="font10bold" style="color: #FF0000">void</SPAN>&nbsp;
453 <span class="font10bold" style="color: #0000FF">DataListSource(
454 )</SPAN>
455 <BR>
456
457 <BR>
458 <SPAN CLASS="font10bold">Description : </SPAN>
459 The constructor
460 <br />
461
462 <DL>
463
464 <DT class="font10bold">Function Info:</DT>
465 </DL>
466 </DIV>
467 <BR>
468 <DIV CLASS="function">
469 <A NAME='methodadd_column'><!-- --></A>
470 <SPAN CLASS="font12bold">add_column</SPAN> (line <span class="linenumber">108</span>)
471 <BR>
472 <SPAN CLASS="font10bold">Usage : </SPAN>
473 <span class="font10bold" style="color: #FF0000">void</SPAN>&nbsp;
474 <span class="font10bold" style="color: #0000FF">add_column(
475 string
476 $title, string
477 $data_name, [boolean
478 $sortable = FALSE], [boolean
479 $searchable = FALSE], [string
480 $sortorder = "ASC"])</SPAN>
481 <BR>
482
483 <BR>
484 <SPAN CLASS="font10bold">Description : </SPAN>
485 Add a column of data to manage
486 <br />
487
488 <DL>
489 <DT class="font10bold">Function Parameters:</DT>
490 <DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$title</SPAN></SPAN> - the title of the column</DD>
491 <DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$data_name</SPAN></SPAN> - the data value name</DD>
492 <DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">boolean</SPAN> <span style="color: #0000FF;font-weight:bold">$sortable</SPAN></SPAN> - is the column sortable? default: FALSE</DD>
493 <DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">boolean</SPAN> <span style="color: #0000FF;font-weight:bold">$searchable</SPAN></SPAN> - is the column searchable default: FALSE</DD>
494 <DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$sortorder</SPAN></SPAN> - the sort order (ASC, DESC) default: ASC</DD>
495
496 <DT class="font10bold">Function Info:</DT>
497 </DL>
498 </DIV>
499 <BR>
500 <DIV CLASS="function">
501 <A NAME='methoddo_prequery'><!-- --></A>
502 <SPAN CLASS="font12bold">do_prequery</SPAN> (line <span class="linenumber">185</span>)
503 <BR>
504 <SPAN CLASS="font10bold">Usage : </SPAN>
505 <span class="font10bold" style="color: #FF0000">void</SPAN>&nbsp;
506 <span class="font10bold" style="color: #0000FF">do_prequery(
507 )</SPAN>
508 <BR>
509 <p>Overridden in child classes as:<br />
510 <dl>
511 <dt><a href="../phpHtmlLib/SQLDataListSource.html#methoddo_prequery">SQLDataListSource::do_prequery()</a></dt>
512 <dd></dd>
513 </dl>
514 <dl>
515 <dt><a href="../phpHtmlLib/CSVFILEDataListSource.html#methoddo_prequery">CSVFILEDataListSource::do_prequery()</a></dt>
516 <dd>The prequery. We use this to read the file</dd>
517 </dl>
518 </p>
519
520 <BR>
521 <SPAN CLASS="font10bold">Description : </SPAN>
522 This is a method that should be defined by the child class to do any pre-query type of things.
523 <br />
524 <p>Such as building a sql query string for a DB, or checking to make sure the file on disk exists if the source is a file on disk.</p>
525 <DL>
526
527 <DT class="font10bold">Function Info:</DT>
528 </DL>
529 </DIV>
530 <BR>
531 <DIV CLASS="function">
532 <A NAME='methoddo_query'><!-- --></A>
533 <SPAN CLASS="font12bold">do_query</SPAN> (line <span class="linenumber">199</span>)
534 <BR>
535 <SPAN CLASS="font10bold">Usage : </SPAN>
536 <span class="font10bold" style="color: #FF0000">void</SPAN>&nbsp;
537 <span class="font10bold" style="color: #0000FF">do_query(
538 )</SPAN>
539 <BR>
540 <p>Overridden in child classes as:<br />
541 <dl>
542 <dt><a href="../phpHtmlLib/SQLDataListSource.html#methoddo_query">SQLDataListSource::do_query()</a></dt>
543 <dd>Do the query to the DB and pull in all of the records locally.</dd>
544 </dl>
545 <dl>
546 <dt><a href="../phpHtmlLib/CSVFILEDataListSource.html#methoddo_query">CSVFILEDataListSource::do_query()</a></dt>
547 <dd>This function does the query</dd>
548 </dl>
549 </p>
550
551 <BR>
552 <SPAN CLASS="font10bold">Description : </SPAN>
553 This is the function that does the data fetching, and sorting if needed.
554 <br />
555 <p>If the source is a sql database, this is where the query gets called. This function doesn't actually read the data from the DB yet. That is what get_next_data_row() does.</p>
556 <DL>
557
558 <DT class="font10bold">Function Info:</DT>
559 </DL>
560 </DIV>
561 <BR>
562 <DIV CLASS="function">
563 <A NAME='methodget_data_index'><!-- --></A>
564 <SPAN CLASS="font12bold">get_data_index</SPAN> (line <span class="linenumber">428</span>)
565 <BR>
566 <SPAN CLASS="font10bold">Usage : </SPAN>
567 <span class="font10bold" style="color: #FF0000">int</SPAN>&nbsp;
568 <span class="font10bold" style="color: #0000FF">get_data_index(
569 )</SPAN>
570 <BR>
571
572 <BR>
573 <SPAN CLASS="font10bold">Description : </SPAN>
574 This function returns the data_index value and increments it
575 <br />
576
577 <DL>
578
579 <DT class="font10bold">Function Info:</DT>
580 </DL>
581 </DIV>
582 <BR>
583 <DIV CLASS="function">
584 <A NAME='methodget_limit'><!-- --></A>
585 <SPAN CLASS="font12bold">get_limit</SPAN> (line <span class="linenumber">397</span>)
586 <BR>
587 <SPAN CLASS="font10bold">Usage : </SPAN>
588 <span class="font10bold" style="color: #FF0000">int</SPAN>&nbsp;
589 <span class="font10bold" style="color: #0000FF">get_limit(
590 )</SPAN>
591 <BR>
592
593 <BR>
594 <SPAN CLASS="font10bold">Description : </SPAN>
595 This function gets the current value of the limit value
596 <br />
597
598 <DL>
599
600 <DT class="font10bold">Function Info:</DT>
601 </DL>
602 </DIV>
603 <BR>
604 <DIV CLASS="function">
605 <A NAME='methodget_next_data_row'><!-- --></A>
606 <SPAN CLASS="font12bold">get_next_data_row</SPAN> (line <span class="linenumber">172</span>)
607 <BR>
608 <SPAN CLASS="font10bold">Usage : </SPAN>
609 <span class="font10bold" style="color: #FF0000">array()</SPAN>&nbsp;
610 <span class="font10bold" style="color: #0000FF">get_next_data_row(
611 )</SPAN>
612 <BR>
613 <p>Overridden in child classes as:<br />
614 <dl>
615 <dt><a href="../phpHtmlLib/SQLDataListSource.html#methodget_next_data_row">SQLDataListSource::get_next_data_row()</a></dt>
616 <dd>This function gets the next data row from the query()</dd>
617 </dl>
618 <dl>
619 <dt><a href="../phpHtmlLib/CSVFILEDataListSource.html#methodget_next_data_row">CSVFILEDataListSource::get_next_data_row()</a></dt>
620 <dd>This function returns the next row of valid data.</dd>
621 </dl>
622 </p>
623
624 <BR>
625 <SPAN CLASS="font10bold">Description : </SPAN>
626 This function gets the next data row from the query()
627 <br />
628
629 <DL>
630
631 <DT class="font10bold">Function Info:</DT>
632 </DL>
633 </DIV>
634 <BR>
635 <DIV CLASS="function">
636 <A NAME='methodget_not_found_message'><!-- --></A>
637 <SPAN CLASS="font12bold">get_not_found_message</SPAN> (line <span class="linenumber">231</span>)
638 <BR>
639 <SPAN CLASS="font10bold">Usage : </SPAN>
640 <span class="font10bold" style="color: #FF0000">string</SPAN>&nbsp;
641 <span class="font10bold" style="color: #0000FF">get_not_found_message(
642 )</SPAN>
643 <BR>
644
645 <BR>
646 <SPAN CLASS="font10bold">Description : </SPAN>
647 This function is used to get the message displayed when no data is found
648 <br />
649
650 <DL>
651
652 <DT class="font10bold">Function Info:</DT>
653 </DL>
654 </DIV>
655 <BR>
656 <DIV CLASS="function">
657 <A NAME='methodget_offset'><!-- --></A>
658 <SPAN CLASS="font12bold">get_offset</SPAN> (line <span class="linenumber">274</span>)
659 <BR>
660 <SPAN CLASS="font10bold">Usage : </SPAN>
661 <span class="font10bold" style="color: #FF0000">int</SPAN>&nbsp;
662 <span class="font10bold" style="color: #0000FF">get_offset(
663 )</SPAN>
664 <BR>
665
666 <BR>
667 <SPAN CLASS="font10bold">Description : </SPAN>
668 This function returns the value of the offset
669 <br />
670
671 <DL>
672
673 <DT class="font10bold">Function Info:</DT>
674 </DL>
675 </DIV>
676 <BR>
677 <DIV CLASS="function">
678 <A NAME='methodget_orderby'><!-- --></A>
679 <SPAN CLASS="font12bold">get_orderby</SPAN> (line <span class="linenumber">296</span>)
680 <BR>
681 <SPAN CLASS="font10bold">Usage : </SPAN>
682 <span class="font10bold" style="color: #FF0000">int</SPAN>&nbsp;
683 <span class="font10bold" style="color: #0000FF">get_orderby(
684 )</SPAN>
685 <BR>
686
687 <BR>
688 <SPAN CLASS="font10bold">Description : </SPAN>
689 This function returns the value of the orderby
690 <br />
691
692 <DL>
693
694 <DT class="font10bold">Function Info:</DT>
695 </DL>
696 </DIV>
697 <BR>
698 <DIV CLASS="function">
699 <A NAME='methodget_reverseorder'><!-- --></A>
700 <SPAN CLASS="font12bold">get_reverseorder</SPAN> (line <span class="linenumber">317</span>)
701 <BR>
702 <SPAN CLASS="font10bold">Usage : </SPAN>
703 <span class="font10bold" style="color: #FF0000">int</SPAN>&nbsp;
704 <span class="font10bold" style="color: #0000FF">get_reverseorder(
705 )</SPAN>
706 <BR>
707
708 <BR>
709 <SPAN CLASS="font10bold">Description : </SPAN>
710 This function returns the value of the reverseorder
711 <br />
712
713 <DL>
714
715 <DT class="font10bold">Function Info:</DT>
716 </DL>
717 </DIV>
718 <BR>
719 <DIV CLASS="function">
720 <A NAME='methodget_searchby'><!-- --></A>
721 <SPAN CLASS="font12bold">get_searchby</SPAN> (line <span class="linenumber">337</span>)
722 <BR>
723 <SPAN CLASS="font10bold">Usage : </SPAN>
724 <span class="font10bold" style="color: #FF0000">int</SPAN>&nbsp;
725 <span class="font10bold" style="color: #0000FF">get_searchby(
726 )</SPAN>
727 <BR>
728
729 <BR>
730 <SPAN CLASS="font10bold">Description : </SPAN>
731 This function returns the value of the searchby
732 <br />
733
734 <DL>
735
736 <DT class="font10bold">Function Info:</DT>
737 </DL>
738 </DIV>
739 <BR>
740 <DIV CLASS="function">
741 <A NAME='methodget_searchby_value'><!-- --></A>
742 <SPAN CLASS="font12bold">get_searchby_value</SPAN> (line <span class="linenumber">357</span>)
743 <BR>
744 <SPAN CLASS="font10bold">Usage : </SPAN>
745 <span class="font10bold" style="color: #FF0000">int</SPAN>&nbsp;
746 <span class="font10bold" style="color: #0000FF">get_searchby_value(
747 )</SPAN>
748 <BR>
749
750 <BR>
751 <SPAN CLASS="font10bold">Description : </SPAN>
752 This function returns the value of the search value
753 <br />
754
755 <DL>
756
757 <DT class="font10bold">Function Info:</DT>
758 </DL>
759 </DIV>
760 <BR>
761 <DIV CLASS="function">
762 <A NAME='methodget_search_type'><!-- --></A>
763 <SPAN CLASS="font12bold">get_search_type</SPAN> (line <span class="linenumber">418</span>)
764 <BR>
765 <SPAN CLASS="font10bold">Usage : </SPAN>
766 <span class="font10bold" style="color: #FF0000">string</SPAN>&nbsp;
767 <span class="font10bold" style="color: #0000FF">get_search_type(
768 )</SPAN>
769 <BR>
770
771 <BR>
772 <SPAN CLASS="font10bold">Description : </SPAN>
773 this function returns the current search type for the DataList query
774 <br />
775
776 <DL>
777
778 <DT class="font10bold">Function Info:</DT>
779 </DL>
780 </DIV>
781 <BR>
782 <DIV CLASS="function">
783 <A NAME='methodget_simplesearch_modifier'><!-- --></A>
784 <SPAN CLASS="font12bold">get_simplesearch_modifier</SPAN> (line <span class="linenumber">377</span>)
785 <BR>
786 <SPAN CLASS="font10bold">Usage : </SPAN>
787 <span class="font10bold" style="color: #FF0000">int</SPAN>&nbsp;
788 <span class="font10bold" style="color: #0000FF">get_simplesearch_modifier(
789 )</SPAN>
790 <BR>
791
792 <BR>
793 <SPAN CLASS="font10bold">Description : </SPAN>
794 This function returns the value of the search value
795 <br />
796
797 <DL>
798
799 <DT class="font10bold">Function Info:</DT>
800 </DL>
801 </DIV>
802 <BR>
803 <DIV CLASS="function">
804 <A NAME='methodget_total_rows'><!-- --></A>
805 <SPAN CLASS="font12bold">get_total_rows</SPAN> (line <span class="linenumber">241</span>)
806 <BR>
807 <SPAN CLASS="font10bold">Usage : </SPAN>
808 <span class="font10bold" style="color: #FF0000">int</SPAN>&nbsp;
809 <span class="font10bold" style="color: #0000FF">get_total_rows(
810 )</SPAN>
811 <BR>
812
813 <BR>
814 <SPAN CLASS="font10bold">Description : </SPAN>
815 This returns the total number of rows in our entire data set
816 <br />
817
818 <DL>
819
820 <DT class="font10bold">Function Info:</DT>
821 </DL>
822 </DIV>
823 <BR>
824 <DIV CLASS="function">
825 <A NAME='methodquery'><!-- --></A>
826 <SPAN CLASS="font12bold">query</SPAN> (line <span class="linenumber">138</span>)
827 <BR>
828 <SPAN CLASS="font10bold">Usage : </SPAN>
829 <span class="font10bold" style="color: #FF0000">void</SPAN>&nbsp;
830 <span class="font10bold" style="color: #0000FF">query(
831 int
832 $offset, int
833 $limit, string
834 $orderby, string
835 $reverseorder, string
836 $searchby, string
837 $searchby_value, string
838 $simplesearch_modifier, mixed
839 $search_type)</SPAN>
840 <BR>
841
842 <BR>
843 <SPAN CLASS="font10bold">Description : </SPAN>
844 The main Query function.
845 <br />
846 <p>This function is responsible for doing any data prefetching from a db,file and doing any sorting and searching on it depending on the values passed in from the DataList object</p>
847 <DL>
848 <DT class="font10bold">Function Parameters:</DT>
849 <DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">int</SPAN> <span style="color: #0000FF;font-weight:bold">$offset</SPAN></SPAN> - the offset into the data set</DD>
850 <DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">int</SPAN> <span style="color: #0000FF;font-weight:bold">$limit</SPAN></SPAN> - the # of rows to get</DD>
851 <DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$orderby</SPAN></SPAN> - the column to order the data by</DD>
852 <DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$reverseorder</SPAN></SPAN> - order in asc or reverse?</DD>
853 <DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$searchby</SPAN></SPAN> - the column in the dataset to search by</DD>
854 <DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$searchby_value</SPAN></SPAN> - the value to look for</DD>
855 <DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$simplesearch_modifier</SPAN></SPAN> - the simple search modifier.</DD>
856
857 <DT class="font10bold">Function Info:</DT>
858 </DL>
859 </DIV>
860 <BR>
861 <DIV CLASS="function">
862 <A NAME='methodset_limit'><!-- --></A>
863 <SPAN CLASS="font12bold">set_limit</SPAN> (line <span class="linenumber">387</span>)
864 <BR>
865 <SPAN CLASS="font10bold">Usage : </SPAN>
866 <span class="font10bold" style="color: #FF0000">void</SPAN>&nbsp;
867 <span class="font10bold" style="color: #0000FF">set_limit(
868 mixed
869 $limit)</SPAN>
870 <BR>
871
872 <BR>
873 <SPAN CLASS="font10bold">Description : </SPAN>
874 This function is used to set
875 <br />
876 <p>the limit value, which limits the # of rows of data to allow to return</p>
877 <DL>
878
879 <DT class="font10bold">Function Info:</DT>
880 </DL>
881 </DIV>
882 <BR>
883 <DIV CLASS="function">
884 <A NAME='methodset_not_found_message'><!-- --></A>
885 <SPAN CLASS="font12bold">set_not_found_message</SPAN> (line <span class="linenumber">221</span>)
886 <BR>
887 <SPAN CLASS="font10bold">Usage : </SPAN>
888 <span class="font10bold" style="color: #FF0000">void</SPAN>&nbsp;
889 <span class="font10bold" style="color: #0000FF">set_not_found_message(
890 string
891 $mesg)</SPAN>
892 <BR>
893
894 <BR>
895 <SPAN CLASS="font10bold">Description : </SPAN>
896 This function is used to set the message displayed when no data is found
897 <br />
898
899 <DL>
900 <DT class="font10bold">Function Parameters:</DT>
901 <DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$mesg</SPAN></SPAN> </DD>
902
903 <DT class="font10bold">Function Info:</DT>
904 </DL>
905 </DIV>
906 <BR>
907 <DIV CLASS="function">
908 <A NAME='methodset_offset'><!-- --></A>
909 <SPAN CLASS="font12bold">set_offset</SPAN> (line <span class="linenumber">263</span>)
910 <BR>
911 <SPAN CLASS="font10bold">Usage : </SPAN>
912 <span class="font10bold" style="color: #FF0000">void</SPAN>&nbsp;
913 <span class="font10bold" style="color: #0000FF">set_offset(
914 int
915 $offset)</SPAN>
916 <BR>
917
918 <BR>
919 <SPAN CLASS="font10bold">Description : </SPAN>
920 This sets the offset value and resets the index into the data array (in non DB children)
921 <br />
922
923 <DL>
924 <DT class="font10bold">Function Parameters:</DT>
925 <DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">int</SPAN> <span style="color: #0000FF;font-weight:bold">$offset</SPAN></SPAN> offset</DD>
926
927 <DT class="font10bold">Function Info:</DT>
928 </DL>
929 </DIV>
930 <BR>
931 <DIV CLASS="function">
932 <A NAME='methodset_orderby'><!-- --></A>
933 <SPAN CLASS="font12bold">set_orderby</SPAN> (line <span class="linenumber">286</span>)
934 <BR>
935 <SPAN CLASS="font10bold">Usage : </SPAN>
936 <span class="font10bold" style="color: #FF0000">void</SPAN>&nbsp;
937 <span class="font10bold" style="color: #0000FF">set_orderby(
938 int
939 $orderby)</SPAN>
940 <BR>
941
942 <BR>
943 <SPAN CLASS="font10bold">Description : </SPAN>
944 This sets the orderby column name.
945 <br />
946 <p>This corresponds to the column that wants to be sorted/ordered, but not the actual direction (asc, desc)</p>
947 <DL>
948 <DT class="font10bold">Function Parameters:</DT>
949 <DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">int</SPAN> <span style="color: #0000FF;font-weight:bold">$orderby</SPAN></SPAN> offset</DD>
950
951 <DT class="font10bold">Function Info:</DT>
952 </DL>
953 </DIV>
954 <BR>
955 <DIV CLASS="function">
956 <A NAME='methodset_reverseorder'><!-- --></A>
957 <SPAN CLASS="font12bold">set_reverseorder</SPAN> (line <span class="linenumber">307</span>)
958 <BR>
959 <SPAN CLASS="font10bold">Usage : </SPAN>
960 <span class="font10bold" style="color: #FF0000">void</SPAN>&nbsp;
961 <span class="font10bold" style="color: #0000FF">set_reverseorder(
962 int
963 $order)</SPAN>
964 <BR>
965
966 <BR>
967 <SPAN CLASS="font10bold">Description : </SPAN>
968 This sets the flag that tells us the direction in which to order the orderby column.
969 <br />
970
971 <DL>
972 <DT class="font10bold">Function Parameters:</DT>
973 <DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">int</SPAN> <span style="color: #0000FF;font-weight:bold">$order</SPAN></SPAN> offset</DD>
974
975 <DT class="font10bold">Function Info:</DT>
976 </DL>
977 </DIV>
978 <BR>
979 <DIV CLASS="function">
980 <A NAME='methodset_searchby'><!-- --></A>
981 <SPAN CLASS="font12bold">set_searchby</SPAN> (line <span class="linenumber">327</span>)
982 <BR>
983 <SPAN CLASS="font10bold">Usage : </SPAN>
984 <span class="font10bold" style="color: #FF0000">void</SPAN>&nbsp;
985 <span class="font10bold" style="color: #0000FF">set_searchby(
986 int
987 $search_col)</SPAN>
988 <BR>
989
990 <BR>
991 <SPAN CLASS="font10bold">Description : </SPAN>
992 This sets the column that we want to search from.
993 <br />
994
995 <DL>
996 <DT class="font10bold">Function Parameters:</DT>
997 <DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">int</SPAN> <span style="color: #0000FF;font-weight:bold">$search_col</SPAN></SPAN> offset</DD>
998
999 <DT class="font10bold">Function Info:</DT>
1000 </DL>
1001 </DIV>
1002 <BR>
1003 <DIV CLASS="function">
1004 <A NAME='methodset_searchby_value'><!-- --></A>
1005 <SPAN CLASS="font12bold">set_searchby_value</SPAN> (line <span class="linenumber">347</span>)
1006 <BR>
1007 <SPAN CLASS="font10bold">Usage : </SPAN>
1008 <span class="font10bold" style="color: #FF0000">void</SPAN>&nbsp;
1009 <span class="font10bold" style="color: #0000FF">set_searchby_value(
1010 int
1011 $search_value)</SPAN>
1012 <BR>
1013
1014 <BR>
1015 <SPAN CLASS="font10bold">Description : </SPAN>
1016 This sets the data that we want to search for.
1017 <br />
1018
1019 <DL>
1020 <DT class="font10bold">Function Parameters:</DT>
1021 <DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">int</SPAN> <span style="color: #0000FF;font-weight:bold">$search_value</SPAN></SPAN> offset</DD>
1022
1023 <DT class="font10bold">Function Info:</DT>
1024 </DL>
1025 </DIV>
1026 <BR>
1027 <DIV CLASS="function">
1028 <A NAME='methodset_search_type'><!-- --></A>
1029 <SPAN CLASS="font12bold">set_search_type</SPAN> (line <span class="linenumber">408</span>)
1030 <BR>
1031 <SPAN CLASS="font10bold">Usage : </SPAN>
1032 <span class="font10bold" style="color: #FF0000">void</SPAN>&nbsp;
1033 <span class="font10bold" style="color: #0000FF">set_search_type(
1034 string
1035 $search_type)</SPAN>
1036 <BR>
1037
1038 <BR>
1039 <SPAN CLASS="font10bold">Description : </SPAN>
1040 This function sets the search type (simple or advanced)
1041 <br />
1042
1043 <DL>
1044 <DT class="font10bold">Function Parameters:</DT>
1045 <DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$search_type</SPAN></SPAN> </DD>
1046
1047 <DT class="font10bold">Function Info:</DT>
1048 </DL>
1049 </DIV>
1050 <BR>
1051 <DIV CLASS="function">
1052 <A NAME='methodset_simplesearch_modifier'><!-- --></A>
1053 <SPAN CLASS="font12bold">set_simplesearch_modifier</SPAN> (line <span class="linenumber">367</span>)
1054 <BR>
1055 <SPAN CLASS="font10bold">Usage : </SPAN>
1056 <span class="font10bold" style="color: #FF0000">void</SPAN>&nbsp;
1057 <span class="font10bold" style="color: #0000FF">set_simplesearch_modifier(
1058 int
1059 $search_modifier)</SPAN>
1060 <BR>
1061
1062 <BR>
1063 <SPAN CLASS="font10bold">Description : </SPAN>
1064 This sets the simple search modifier
1065 <br />
1066
1067 <DL>
1068 <DT class="font10bold">Function Parameters:</DT>
1069 <DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">int</SPAN> <span style="color: #0000FF;font-weight:bold">$search_modifier</SPAN></SPAN> offset</DD>
1070
1071 <DT class="font10bold">Function Info:</DT>
1072 </DL>
1073 </DIV>
1074 <BR>
1075 <DIV CLASS="function">
1076 <A NAME='methodset_total_rows'><!-- --></A>
1077 <SPAN CLASS="font12bold">set_total_rows</SPAN> (line <span class="linenumber">251</span>)
1078 <BR>
1079 <SPAN CLASS="font10bold">Usage : </SPAN>
1080 <span class="font10bold" style="color: #FF0000">void</SPAN>&nbsp;
1081 <span class="font10bold" style="color: #0000FF">set_total_rows(
1082 int
1083 $num)</SPAN>
1084 <BR>
1085
1086 <BR>
1087 <SPAN CLASS="font10bold">Description : </SPAN>
1088 This is used to set the total # of rows we have in our data set
1089 <br />
1090
1091 <DL>
1092 <DT class="font10bold">Function Parameters:</DT>
1093 <DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">int</SPAN> <span style="color: #0000FF;font-weight:bold">$num</SPAN></SPAN> </DD>
1094
1095 <DT class="font10bold">Function Info:</DT>
1096 </DL>
1097 </DIV>
1098 <BR>
1099 <DIV CLASS="function">
1100 <A NAME='methodsort'><!-- --></A>
1101 <SPAN CLASS="font12bold">sort</SPAN> (line <span class="linenumber">211</span>)
1102 <BR>
1103 <SPAN CLASS="font10bold">Usage : </SPAN>
1104 <span class="font10bold" style="color: #FF0000">void</SPAN>&nbsp;
1105 <span class="font10bold" style="color: #0000FF">sort(
1106 )</SPAN>
1107 <BR>
1108 <p>Overridden in child classes as:<br />
1109 <dl>
1110 <dt><a href="../phpHtmlLib/CSVFILEDataListSource.html#methodsort">CSVFILEDataListSource::sort()</a></dt>
1111 <dd></dd>
1112 </dl>
1113 </p>
1114
1115 <BR>
1116 <SPAN CLASS="font10bold">Description : </SPAN>
1117 A generic method API that can be used at the bottom half of the do_query() method to sort data that is stored locally. This is only needed when the source is a non database.
1118 <br />
1119 <p>It should operate on the $this-&gt;_data array</p>
1120 <DL>
1121
1122 <DT class="font10bold">Function Info:</DT>
1123 </DL>
1124 </DIV>
1125 <BR>
1126 <DIV CLASS="function">
1127 <A NAME='method_is_column_sortable'><!-- --></A>
1128 <SPAN CLASS="font12bold">_is_column_sortable</SPAN> (line <span class="linenumber">442</span>)
1129 <BR>
1130 <SPAN CLASS="font10bold">Usage : </SPAN>
1131 <span class="font10bold" style="color: #FF0000">boolean</SPAN>&nbsp;
1132 <span class="font10bold" style="color: #0000FF">_is_column_sortable(
1133 string
1134 $data_name)</SPAN>
1135 <BR>
1136
1137 <BR>
1138 <SPAN CLASS="font10bold">Description : </SPAN>
1139 This function determines if the column associated w/ a data_name is sortable or not
1140 <br />
1141
1142 <DL>
1143 <DT class="font10bold">Function Parameters:</DT>
1144 <DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$data_name</SPAN></SPAN> - the data_name filed in the _columns array to look for</DD>
1145
1146 <DT class="font10bold">Function Info:</DT>
1147 <DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - - is that column sortable?</DD>
1148 </DL>
1149 </DIV>
1150 <BR>
1151 <div id="credit">
1152 <hr>
1153 Documention generated on Thu, 20 Feb 2003 16:22:36 -0800 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.2.0rc1</a>
1154 </div>
1155 </body>
1156 </html>

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed