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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

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