1 |
jonen |
1.3 |
<?xml version="1.0" encoding="iso-8859-1"?> |
2 |
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
3 |
|
|
<html xmlns="http://www.w3.org/1999/xhtml"> |
4 |
|
|
<head> |
5 |
|
|
<!-- template designed by Marco Von Ballmoos --> |
6 |
|
|
<title>Docs For Class pearmysqllist</title> |
7 |
|
|
<link rel="stylesheet" href="../../media/stylesheet.css" /> |
8 |
|
|
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> |
9 |
|
|
</head> |
10 |
|
|
<body> |
11 |
|
|
<div class="page-body"> |
12 |
|
|
<h2 class="class-name">Class pearmysqllist</h2> |
13 |
|
|
|
14 |
|
|
<a name="sec-description"></a> |
15 |
|
|
<div class="info-box"> |
16 |
|
|
<div class="info-box-title">Description</div> |
17 |
|
|
<div class="nav-bar"> |
18 |
|
|
<span class="disabled">Description</span> | |
19 |
|
|
<a href="#sec-descendents">Descendents</a> |
20 |
|
|
| <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) |
21 |
|
|
| <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) |
22 |
|
|
|
23 |
|
|
</div> |
24 |
|
|
<div class="info-box-body"> |
25 |
|
|
<!-- ========== Info from phpDoc block ========= --> |
26 |
|
|
<p class="short-description">This is an example that shows how to use a PEAR db object as the source for the data to show.</p> |
27 |
|
|
<ul class="tags"> |
28 |
|
|
<li><span class="field">version:</span> <p>2.0</p></li> |
29 |
|
|
<li><span class="field">author:</span> <p>Walter A. Boring IV <<a href="mailto:waboring@buildabetterweb.com">mailto:waboring@buildabetterweb.com</a>></p></li> |
30 |
|
|
</ul> |
31 |
|
|
<p class="notes"> |
32 |
|
|
Located in <a class="field" href="_examples_widget6_php.html">Program_Root/examples/widget6.php</a> (line <span class="field">52</span>) |
33 |
|
|
</p> |
34 |
|
|
|
35 |
|
|
|
36 |
|
|
<pre>DefaultGUIDataList |
37 |
jonen |
1.1 |
| |
38 |
|
|
--pearmysqllist</pre> |
39 |
jonen |
1.3 |
|
40 |
|
|
</div> |
41 |
|
|
</div> |
42 |
|
|
|
43 |
|
|
<a name="sec-descendents"></a> |
44 |
|
|
<div class="info-box"> |
45 |
|
|
<div class="info-box-title">Direct descendents</div> |
46 |
|
|
<div class="nav-bar"> |
47 |
|
|
<a href="#sec-description">Description</a> | |
48 |
|
|
<span class="disabled">Descendents</span> |
49 |
|
|
| <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) |
50 |
|
|
| <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) |
51 |
|
|
|
52 |
|
|
</div> |
53 |
|
|
<div class="info-box-body"> |
54 |
|
|
<table cellpadding="2" cellspacing="0" class="class-table"> |
55 |
|
|
<tr> |
56 |
|
|
<th class="class-table-header">Class</th> |
57 |
|
|
<th class="class-table-header">Description</th> |
58 |
|
|
</tr> |
59 |
|
|
<tr> |
60 |
|
|
<td style="padding-right: 2em"><a href="../../phpHtmlLib/widget-examples/adodbmysqllist.html">adodbmysqllist</a></td> |
61 |
|
|
<td> |
62 |
|
|
This is a subclass of the pear mysql list object. |
63 |
|
|
</td> |
64 |
|
|
</tr> |
65 |
|
|
</table> |
66 |
|
|
</div> |
67 |
|
|
</div> |
68 |
|
|
|
69 |
|
|
<a name="sec-var-summary"></a> |
70 |
|
|
<div class="info-box"> |
71 |
|
|
<div class="info-box-title">Variable Summary</span></div> |
72 |
|
|
<div class="nav-bar"> |
73 |
|
|
<a href="#sec-description">Description</a> | |
74 |
|
|
<a href="#sec-descendents">Descendents</a> | |
75 |
|
|
<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) |
76 |
|
|
| |
77 |
|
|
<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) |
78 |
|
|
|
79 |
|
|
</div> |
80 |
|
|
<div class="info-box-body"> |
81 |
|
|
<div class="var-summary"> |
82 |
|
|
<div class="var-title"> |
83 |
|
|
<span class="var-type">mixed</span> |
84 |
|
|
<a href="#$_default_rows_per_page" title="details" class="var-name">$_default_rows_per_page</a> |
85 |
|
|
</div> |
86 |
|
|
</div> |
87 |
|
|
</div> |
88 |
|
|
</div> |
89 |
|
|
|
90 |
|
|
<a name="sec-method-summary"></a> |
91 |
|
|
<div class="info-box"> |
92 |
|
|
<div class="info-box-title">Method Summary</span></div> |
93 |
|
|
<div class="nav-bar"> |
94 |
|
|
<a href="#sec-description">Description</a> | |
95 |
|
|
<a href="#sec-descendents">Descendents</a> | |
96 |
|
|
<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) |
97 |
|
|
|
98 |
|
|
| |
99 |
|
|
<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) |
100 |
|
|
</div> |
101 |
|
|
<div class="info-box-body"> |
102 |
|
|
<div class="method-summary"> |
103 |
|
|
|
104 |
|
|
<div class="method-definition"> |
105 |
|
|
<span class="method-result">mixed</span> |
106 |
|
|
<a href="#build_column_item" title="details" class="method-name">build_column_item</a> |
107 |
|
|
(<span class="var-type">array</span> <span class="var-name">$row_data</span>, <span class="var-type">string</span> <span class="var-name">$col_name</span>) |
108 |
|
|
</div> |
109 |
|
|
|
110 |
|
|
<div class="method-definition"> |
111 |
|
|
<span class="method-result">void</span> |
112 |
|
|
<a href="#get_data_source" title="details" class="method-name">get_data_source</a> |
113 |
|
|
() |
114 |
|
|
</div> |
115 |
|
|
|
116 |
|
|
<div class="method-definition"> |
117 |
|
|
<span class="method-result">void</span> |
118 |
|
|
<a href="#user_setup" title="details" class="method-name">user_setup</a> |
119 |
|
|
() |
120 |
|
|
</div> |
121 |
|
|
</div> |
122 |
|
|
</div> |
123 |
|
|
</div> |
124 |
|
|
|
125 |
|
|
<a name="sec-vars"></a> |
126 |
|
|
<div class="info-box"> |
127 |
|
|
<div class="info-box-title">Variables</div> |
128 |
|
|
<div class="nav-bar"> |
129 |
|
|
<a href="#sec-description">Description</a> | |
130 |
|
|
<a href="#sec-descendents">Descendents</a> | |
131 |
|
|
<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) |
132 |
|
|
|
133 |
|
|
|
134 |
|
|
| |
135 |
|
|
<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) |
136 |
|
|
|
137 |
|
|
</div> |
138 |
|
|
<div class="info-box-body"> |
139 |
|
|
<a name="var$_default_rows_per_page" id="$_default_rows_per_page"><!-- --></A> |
140 |
|
|
<div class="evenrow"> |
141 |
|
|
|
142 |
|
|
<div class="var-header"> |
143 |
|
|
<span class="var-title"> |
144 |
|
|
<span class="var-type">mixed</span> |
145 |
|
|
<span class="var-name">$_default_rows_per_page</span> |
146 |
|
|
= <span class="var-default"> 20</span> (line <span class="line-number">54</span>) |
147 |
|
|
</span> |
148 |
|
|
</div> |
149 |
|
|
|
150 |
|
|
<!-- ========== Info from phpDoc block ========= --> |
151 |
|
|
|
152 |
|
|
|
153 |
|
|
|
154 |
|
|
|
155 |
jonen |
1.2 |
|
156 |
jonen |
1.3 |
</div> |
157 |
|
|
|
158 |
|
|
</div> |
159 |
jonen |
1.2 |
</div> |
160 |
jonen |
1.3 |
|
161 |
|
|
<a name="sec-methods"></a> |
162 |
|
|
<div class="info-box"> |
163 |
|
|
<div class="info-box-title">Methods</div> |
164 |
|
|
<div class="nav-bar"> |
165 |
|
|
<a href="#sec-description">Description</a> | |
166 |
|
|
<a href="#sec-descendents">Descendents</a> | |
167 |
|
|
<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) |
168 |
|
|
<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) |
169 |
|
|
|
170 |
|
|
</div> |
171 |
|
|
<div class="info-box-body"> |
172 |
|
|
<A NAME='method_detail'></A> |
173 |
|
|
<a name="methodbuild_column_item" id="build_column_item"><!-- --></a> |
174 |
|
|
<div class="oddrow"> |
175 |
|
|
|
176 |
|
|
<div class="method-header"> |
177 |
|
|
<span class="method-title">build_column_item</span> (line <span class="line-number">130</span>) |
178 |
|
|
</div> |
179 |
|
|
|
180 |
|
|
<!-- ========== Info from phpDoc block ========= --> |
181 |
|
|
<p class="short-description">This is the basic function for letting us do a mapping between the column name in the header, to the value found in the DataListSource.</p> |
182 |
|
|
<p class="description"><p>NOTE: this function is can be overridden so that you can return whatever you want for any given column.</p></p> |
183 |
|
|
<ul class="tags"> |
184 |
|
|
<li><span class="field">return:</span> <p>- either a HTMLTag object, or raw text.</p></li> |
185 |
|
|
</ul> |
186 |
|
|
|
187 |
|
|
<div class="method-signature"> |
188 |
|
|
<span class="method-result">mixed</span> |
189 |
|
|
<span class="method-name"> |
190 |
|
|
build_column_item |
191 |
|
|
</span> |
192 |
|
|
(<span class="var-type">array</span> <span class="var-name">$row_data</span>, <span class="var-type">string</span> <span class="var-name">$col_name</span>) |
193 |
|
|
</div> |
194 |
|
|
|
195 |
|
|
<ul class="parameters"> |
196 |
|
|
<li> |
197 |
|
|
<span class="var-type">array</span> |
198 |
|
|
<span class="var-name">$row_data</span><span class="var-description">: <p>- $row_data - the entire data for the row</p></span> </li> |
199 |
|
|
<li> |
200 |
|
|
<span class="var-type">string</span> |
201 |
|
|
<span class="var-name">$col_name</span><span class="var-description">: <p>- $col_name - the name of the column header for this row to render.</p></span> </li> |
202 |
|
|
</ul> |
203 |
|
|
|
204 |
|
|
|
205 |
|
|
</div> |
206 |
|
|
<a name="methodget_data_source" id="get_data_source"><!-- --></a> |
207 |
|
|
<div class="evenrow"> |
208 |
|
|
|
209 |
|
|
<div class="method-header"> |
210 |
|
|
<span class="method-title">get_data_source</span> (line <span class="line-number">64</span>) |
211 |
|
|
</div> |
212 |
|
|
|
213 |
|
|
<!-- ========== Info from phpDoc block ========= --> |
214 |
|
|
<p class="short-description">This function is called automatically by the DataList constructor. It must be extended by the child class to actually set the DataListSource object.</p> |
215 |
|
|
|
216 |
|
|
<div class="method-signature"> |
217 |
|
|
<span class="method-result">void</span> |
218 |
|
|
<span class="method-name"> |
219 |
|
|
get_data_source |
220 |
|
|
</span> |
221 |
|
|
() |
222 |
|
|
</div> |
223 |
|
|
|
224 |
|
|
|
225 |
|
|
|
226 |
|
|
<hr class="separator" /> |
227 |
|
|
<div class="notes">Redefined in descendants as:</div> |
228 |
|
|
<ul class="redefinitions"> |
229 |
|
|
<li> |
230 |
|
|
<a href="../../phpHtmlLib/widget-examples/adodbmysqllist.html#methodget_data_source">adodbmysqllist::get_data_source()</a> |
231 |
|
|
: This function is called automatically by the DataList constructor. It must be extended by the child class to actually set the DataListSource object. |
232 |
|
|
</li> |
233 |
|
|
</ul> |
234 |
|
|
</div> |
235 |
|
|
<a name="methoduser_setup" id="user_setup"><!-- --></a> |
236 |
|
|
<div class="oddrow"> |
237 |
|
|
|
238 |
|
|
<div class="method-header"> |
239 |
|
|
<span class="method-title">user_setup</span> (line <span class="line-number">97</span>) |
240 |
|
|
</div> |
241 |
|
|
|
242 |
|
|
<!-- ========== Info from phpDoc block ========= --> |
243 |
|
|
<p class="short-description">This method is used to setup the options for the DataList object's display.</p> |
244 |
|
|
<p class="description"><p>Which columns to show, their respective source column name, width, etc. etc.</p><p>The constructor automatically calls this function.</p></p> |
245 |
|
|
|
246 |
|
|
<div class="method-signature"> |
247 |
|
|
<span class="method-result">void</span> |
248 |
|
|
<span class="method-name"> |
249 |
|
|
user_setup |
250 |
|
|
</span> |
251 |
|
|
() |
252 |
|
|
</div> |
253 |
|
|
|
254 |
|
|
|
255 |
|
|
|
256 |
|
|
</div> |
257 |
|
|
|
258 |
|
|
</div> |
259 |
|
|
</div> |
260 |
|
|
|
261 |
|
|
<p class="notes" id="credit"> |
262 |
|
|
Documention generated on Thu, 31 Jul 2003 18:33:53 -0700 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.2.0</a> |
263 |
|
|
</p> |
264 |
|
|
</div></body> |
265 |
jonen |
1.2 |
</html> |