1 |
jonen |
1.4 |
<?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 Container</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 Container</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-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
|
21 |
|
|
|
22 |
|
|
</div>
|
23 |
|
|
<div class="info-box-body">
|
24 |
|
|
<!-- ========== Info from phpDoc block ========= -->
|
25 |
|
|
<p class="short-description">This class is nothing more then a</p>
|
26 |
|
|
<p class="description"><p>container widget. It lets you push data into it, and it will render each item indented properly so it works with the rest of the libs.</p><p>This is helpfull when you have a function that wants to return multiple Tag Objects or widgets. Just wrap them in this container and they will all get rendered with the current indentation level.</p><p>Base Class for phpHtmlLib</p></p>
|
27 |
|
|
<ul class="tags">
|
28 |
|
|
<li><span class="field">tutorial:</span> <a href="../phpHtmlLib/tutorial_Container.cls.html">Container</a></li>
|
29 |
|
|
<li><span class="field">author:</span> Walter A. Boring IV <<a href="mailto:waboring@buildabetterweb.com">waboring@buildabetterweb.com</a>></li>
|
30 |
|
|
<li><span class="field">link:</span> <a href="http://phphtmllib.sourceforge.net">http://phphtmllib.sourceforge.net</a></li>
|
31 |
|
|
</ul>
|
32 |
|
|
<p class="notes">
|
33 |
|
|
Located in <a class="field" href="_ContainerClass_inc.html">/ContainerClass.inc</a> (line <span class="field">39</span>)
|
34 |
|
|
</p>
|
35 |
|
|
|
36 |
|
|
|
37 |
|
|
<pre></pre>
|
38 |
|
|
|
39 |
|
|
</div>
|
40 |
|
|
</div>
|
41 |
|
|
|
42 |
|
|
<a name="sec-descendents"></a>
|
43 |
|
|
<div class="info-box">
|
44 |
|
|
<div class="info-box-title">Direct descendents</div>
|
45 |
|
|
<div class="nav-bar">
|
46 |
|
|
<a href="#sec-description">Description</a> |
|
47 |
|
|
<span class="disabled">Descendents</span>
|
48 |
|
|
| <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
|
49 |
|
|
|
50 |
|
|
</div>
|
51 |
|
|
<div class="info-box-body">
|
52 |
|
|
<table cellpadding="2" cellspacing="0" class="class-table">
|
53 |
|
|
<tr>
|
54 |
|
|
<th class="class-table-header">Class</th>
|
55 |
|
|
<th class="class-table-header">Description</th>
|
56 |
|
|
</tr>
|
57 |
|
|
<tr>
|
58 |
|
|
<td style="padding-right: 2em"><a href="../phpHtmlLib/XMLTagClass.html">XMLTagClass</a></td>
|
59 |
|
|
<td>
|
60 |
|
|
This class is used for building and rendering an XML tag.
|
61 |
|
|
</td>
|
62 |
|
|
</tr>
|
63 |
|
|
<tr>
|
64 |
|
|
<td style="padding-right: 2em"><a href="../phpHtmlLib/FormProcessing/FormProcessor.html">FormProcessor</a></td>
|
65 |
|
|
<td>
|
66 |
|
|
This is the main engine for the processing
|
67 |
|
|
</td>
|
68 |
|
|
</tr>
|
69 |
|
|
<tr>
|
70 |
|
|
<td style="padding-right: 2em"><a href="../phpHtmlLib/BaseWidget.html">BaseWidget</a></td>
|
71 |
|
|
<td>
|
72 |
|
|
this is the base widget class, that all widgets are based off of. It provides some basic members and methods
|
73 |
|
|
</td>
|
74 |
|
|
</tr>
|
75 |
|
|
<tr>
|
76 |
|
|
<td style="padding-right: 2em"><a href="../phpHtmlLib/ContainerWidget.html">ContainerWidget</a></td>
|
77 |
|
|
<td>
|
78 |
|
|
This is just to maintain compatibility with the 1.1.0 release of phphtmllib
|
79 |
|
|
</td>
|
80 |
|
|
</tr>
|
81 |
|
|
<tr>
|
82 |
|
|
<td style="padding-right: 2em"><a href="../phpHtmlLib/XMLDocumentClass.html">XMLDocumentClass</a></td>
|
83 |
|
|
<td>
|
84 |
|
|
This class lets you build a complete xml document and render it.
|
85 |
|
|
</td>
|
86 |
|
|
</tr>
|
87 |
|
|
</table>
|
88 |
|
|
</div>
|
89 |
|
|
</div>
|
90 |
|
|
|
91 |
|
|
|
92 |
|
|
|
93 |
|
|
<a name="sec-method-summary"></a>
|
94 |
|
|
<div class="info-box">
|
95 |
|
|
<div class="info-box-title">Method Summary</span></div>
|
96 |
|
|
<div class="nav-bar">
|
97 |
|
|
<a href="#sec-description">Description</a> |
|
98 |
|
|
<a href="#sec-descendents">Descendents</a> |
|
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">Container</span>
|
106 |
|
|
<a href="#Container" title="details" class="method-name">Container</a>
|
107 |
|
|
()
|
108 |
|
|
</div>
|
109 |
|
|
|
110 |
|
|
<div class="method-definition">
|
111 |
|
|
<span class="method-result">void</span>
|
112 |
|
|
<a href="#add" title="details" class="method-name">add</a>
|
113 |
|
|
(<span class="var-type">mixed</span> <span class="var-name">$content</span>)
|
114 |
|
|
</div>
|
115 |
|
|
|
116 |
|
|
<div class="method-definition">
|
117 |
|
|
<span class="method-result">void</span>
|
118 |
|
|
<a href="#add_reference" title="details" class="method-name">add_reference</a>
|
119 |
|
|
(<span class="var-type">mixed</span> <span class="var-name">&$content</span>)
|
120 |
|
|
</div>
|
121 |
|
|
|
122 |
|
|
<div class="method-definition">
|
123 |
|
|
<span class="method-result">int</span>
|
124 |
|
|
<a href="#count_content" title="details" class="method-name">count_content</a>
|
125 |
|
|
()
|
126 |
|
|
</div>
|
127 |
|
|
|
128 |
|
|
<div class="method-definition">
|
129 |
|
|
<span class="method-result">mixed</span>
|
130 |
|
|
<a href="#get_element" title="details" class="method-name">&get_element</a>
|
131 |
|
|
(<span class="var-type">int</span> <span class="var-name">$cell</span>)
|
132 |
|
|
</div>
|
133 |
|
|
|
134 |
|
|
<div class="method-definition">
|
135 |
|
|
<span class="method-result">boolean</span>
|
136 |
|
|
<a href="#get_indent_flag" title="details" class="method-name">get_indent_flag</a>
|
137 |
|
|
()
|
138 |
|
|
</div>
|
139 |
|
|
|
140 |
|
|
<div class="method-definition">
|
141 |
|
|
<span class="method-result">void</span>
|
142 |
|
|
<a href="#push" title="details" class="method-name">push</a>
|
143 |
|
|
(<span class="var-type">mixed</span> <span class="var-name">$content</span>)
|
144 |
|
|
</div>
|
145 |
|
|
|
146 |
|
|
<div class="method-definition">
|
147 |
|
|
<span class="method-result">void</span>
|
148 |
|
|
<a href="#push_reference" title="details" class="method-name">push_reference</a>
|
149 |
|
|
(<span class="var-type">mixed</span> <span class="var-name">&$content</span>)
|
150 |
|
|
</div>
|
151 |
|
|
|
152 |
|
|
<div class="method-definition">
|
153 |
|
|
<span class="method-result">string</span>
|
154 |
|
|
<a href="#render" title="details" class="method-name">render</a>
|
155 |
|
|
(<span class="var-type">int</span> <span class="var-name">$indent_level</span>, <span class="var-type">int</span> <span class="var-name">$output_debug</span>)
|
156 |
|
|
</div>
|
157 |
|
|
|
158 |
|
|
<div class="method-definition">
|
159 |
|
|
<span class="method-result">void</span>
|
160 |
|
|
<a href="#reset_content" title="details" class="method-name">reset_content</a>
|
161 |
|
|
(<span class="var-type">mixed</span> <span class="var-name">$content</span>)
|
162 |
|
|
</div>
|
163 |
|
|
|
164 |
|
|
<div class="method-definition">
|
165 |
|
|
<span class="method-result">void</span>
|
166 |
|
|
<a href="#set_collapse" title="details" class="method-name">set_collapse</a>
|
167 |
|
|
([<span class="var-type">boolean</span> <span class="var-name">$collapse</span> = <span class="var-default">TRUE</span>], [<span class="var-type">boolean</span> <span class="var-name">$indent</span> = <span class="var-default">TRUE</span>])
|
168 |
|
|
</div>
|
169 |
|
|
|
170 |
|
|
<div class="method-definition">
|
171 |
|
|
<span class="method-result">void</span>
|
172 |
|
|
<a href="#set_indent_flag" title="details" class="method-name">set_indent_flag</a>
|
173 |
|
|
(<span class="var-type">boolean</span> <span class="var-name">$flag</span>)
|
174 |
|
|
</div>
|
175 |
|
|
</div>
|
176 |
|
|
</div>
|
177 |
|
|
</div>
|
178 |
|
|
|
179 |
|
|
|
180 |
|
|
<a name="sec-methods"></a>
|
181 |
|
|
<div class="info-box">
|
182 |
|
|
<div class="info-box-title">Methods</div>
|
183 |
|
|
<div class="nav-bar">
|
184 |
|
|
<a href="#sec-description">Description</a> |
|
185 |
|
|
<a href="#sec-descendents">Descendents</a> |
|
186 |
|
|
<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
|
187 |
|
|
|
188 |
|
|
</div>
|
189 |
|
|
<div class="info-box-body">
|
190 |
|
|
<A NAME='method_detail'></A>
|
191 |
|
|
<a name="methodContainer" id="Container"><!-- --></a>
|
192 |
|
|
<div class="oddrow">
|
193 |
|
|
|
194 |
|
|
<div class="method-header">
|
195 |
|
|
<span class="method-title">Constructor Container</span> (line <span class="line-number">82</span>)
|
196 |
|
|
</div>
|
197 |
|
|
|
198 |
|
|
<!-- ========== Info from phpDoc block ========= -->
|
199 |
|
|
<p class="short-description">The constructor.</p>
|
200 |
|
|
<p class="description"><p>This lets you pass in data that you want automatically added to the container. This works in the same manner as the push() method.</p><p><pre><ol><li><span class="src-key">function </span><a href="../phpHtmlLib/Container.html#methodContainer">Container</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></li> |
201 |
|
|
<li> <span class="src-comm">//We do the adding to the content var</span></li> |
202 |
|
|
<li> <span class="src-comm">//here instead of calling $this->push()</span></li> |
203 |
|
|
<li> <span class="src-comm">//to save some cpu cycles.</span></li> |
204 |
|
|
<li> <span class="src-var">$num </span>= <a href="http://www.php.net/func_num_args">func_num_args</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></li> |
205 |
|
|
<li> <span class="src-key">for </span><span class="src-sym">(</span><span class="src-var">$i</span>=<span class="src-num">0</span><span class="src-sym">;</span><span class="src-var">$i</span><<span class="src-var">$num</span><span class="src-sym">;</span><span class="src-var">$i</span>++<span class="src-sym">) </span><span class="src-sym">{</span></li> |
206 |
|
|
<li> <span class="src-var">$arg </span>= <a href="http://www.php.net/func_get_arg">func_get_arg</a><span class="src-sym">(</span><span class="src-var">$i</span><span class="src-sym">)</span><span class="src-sym">;</span></li> |
207 |
|
|
<li> <a href="http://www.php.net/array_push">array_push</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_content</span><span class="src-sym">, </span><span class="src-var">$arg</span><span class="src-sym">)</span><span class="src-sym">;</span></li> |
208 |
|
|
<li> <span class="src-sym">}</span></li> |
209 |
|
|
<li> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_data_count </span>+= <span class="src-var">$num</span><span class="src-sym">;</span></li> |
210 |
|
|
<li> </li> |
211 |
|
|
<li> <span class="src-comm">//set the flag bitmask</span></li> |
212 |
|
|
<li> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_set_flags</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></li> |
213 |
|
|
<li> <span class="src-sym">}</span></li> |
214 |
|
|
</ol></pre></p></p>
|
215 |
|
|
<ul class="tags">
|
216 |
|
|
<li><span class="field">tutorial:</span> <a href="../phpHtmlLib/tutorial_Container.cls.html#constructor">Constructor call</a></li>
|
217 |
|
|
</ul>
|
218 |
|
|
|
219 |
|
|
<div class="method-signature">
|
220 |
|
|
<span class="method-result">Container</span>
|
221 |
|
|
<span class="method-name">
|
222 |
|
|
Container
|
223 |
|
|
</span>
|
224 |
|
|
()
|
225 |
|
|
</div>
|
226 |
|
|
|
227 |
|
|
|
228 |
|
|
|
229 |
|
|
</div>
|
230 |
|
|
<a name="methodadd" id="add"><!-- --></a>
|
231 |
|
|
<div class="evenrow">
|
232 |
|
|
|
233 |
|
|
<div class="method-header">
|
234 |
|
|
<span class="method-title">add</span> (line <span class="line-number">187</span>)
|
235 |
|
|
</div>
|
236 |
|
|
|
237 |
|
|
<!-- ========== Info from phpDoc block ========= -->
|
238 |
|
|
<p class="short-description">add content onto content stack</p>
|
239 |
|
|
<p class="description"><p>adds content to tag as a FIFO. You can have n number of parameters. each one will get added in succession to the content.</p><p><pre><ol><li><span class="src-key">function </span><a href="../phpHtmlLib/Container.html#methodadd">add</a><span class="src-sym">( </span><span class="src-sym">) </span><span class="src-sym">{</span></li> |
240 |
|
|
<li> <span class="src-var">$args </span>= <a href="http://www.php.net/func_get_args">func_get_args</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></li> |
241 |
|
|
<li> <span class="src-var">$num </span>= <span class="src-num">0</span><span class="src-sym">;</span></li> |
242 |
|
|
<li> <span class="src-key">foreach</span><span class="src-sym">( </span><span class="src-var">$args </span><span class="src-key">as </span><span class="src-var">$arg </span><span class="src-sym">) </span><span class="src-sym">{</span></li> |
243 |
|
|
<li> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_content</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-var">$arg</span><span class="src-sym">;</span></li> |
244 |
|
|
<li> <span class="src-var">$num</span>++<span class="src-sym">;</span></li> |
245 |
|
|
<li> <span class="src-sym">}</span></li> |
246 |
|
|
<li> <span class="src-comm">//keep track of how much data we have added.</span></li> |
247 |
|
|
<li> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_data_count </span>+= <span class="src-var">$num</span><span class="src-sym">;</span></li> |
248 |
|
|
<li> <span class="src-sym">}</span></li> |
249 |
|
|
</ol></pre></p></p>
|
250 |
|
|
<ul class="tags">
|
251 |
|
|
<li><span class="field">access:</span> public</li>
|
252 |
|
|
<li><span class="field">tutorial:</span> <a href="../phpHtmlLib/tutorial_Container.cls.html#add">add Method</a></li>
|
253 |
|
|
</ul>
|
254 |
|
|
|
255 |
|
|
<div class="method-signature">
|
256 |
|
|
<span class="method-result">void</span>
|
257 |
|
|
<span class="method-name">
|
258 |
|
|
add
|
259 |
|
|
</span>
|
260 |
|
|
(<span class="var-type">mixed</span> <span class="var-name">$content</span>)
|
261 |
|
|
</div>
|
262 |
|
|
|
263 |
|
|
<ul class="parameters">
|
264 |
|
|
<li>
|
265 |
|
|
<span class="var-type">mixed</span>
|
266 |
|
|
<span class="var-name">$content</span><span class="var-description">: - either string, or tag object.</span> </li>
|
267 |
|
|
</ul>
|
268 |
|
|
|
269 |
|
|
|
270 |
|
|
<hr class="separator" />
|
271 |
|
|
<div class="notes">Redefined in descendants as:</div>
|
272 |
|
|
<ul class="redefinitions">
|
273 |
|
|
<li>
|
274 |
|
|
<a href="../phpHtmlLib/OLtag.html#methodadd">OLtag::add()</a>
|
275 |
|
|
: add content onto content stack adds content to tag as a FIFO.
|
276 |
|
|
</li>
|
277 |
|
|
<li>
|
278 |
|
|
<a href="../phpHtmlLib/TRtag.html#methodadd">TRtag::add()</a>
|
279 |
|
|
: add content onto content stack adds content to tag as a FIFO.
|
280 |
|
|
</li>
|
281 |
|
|
<li>
|
282 |
|
|
<a href="../phpHtmlLib/ButtonPanel.html#methodadd">ButtonPanel::add()</a>
|
283 |
|
|
: Push content onto the data object
|
284 |
|
|
</li>
|
285 |
|
|
<li>
|
286 |
|
|
<a href="../phpHtmlLib/CSSContainer.html#methodadd">CSSContainer::add()</a>
|
287 |
|
|
: Only allow the adding of CSSBuilder
|
288 |
|
|
</li>
|
289 |
|
|
<li>
|
290 |
|
|
<a href="../phpHtmlLib/DialogWidget.html#methodadd">DialogWidget::add()</a>
|
291 |
|
|
: Pushes a content into the data object
|
292 |
|
|
</li>
|
293 |
|
|
<li>
|
294 |
|
|
<a href="../phpHtmlLib/FooterNav.html#methodadd">FooterNav::add()</a>
|
295 |
|
|
: add an entry to the footer nav
|
296 |
|
|
</li>
|
297 |
|
|
<li>
|
298 |
|
|
<a href="../phpHtmlLib/NavTable.html#methodadd">NavTable::add()</a>
|
299 |
|
|
: this function adds an entry to the navtable.
|
300 |
|
|
</li>
|
301 |
|
|
<li>
|
302 |
|
|
<a href="../phpHtmlLib/TabList.html#methodadd">TabList::add()</a>
|
303 |
|
|
: This public method adds a new tab to the table
|
304 |
|
|
</li>
|
305 |
|
|
<li>
|
306 |
|
|
<a href="../phpHtmlLib/TextCSSNav.html#methodadd">TextCSSNav::add()</a>
|
307 |
|
|
: this function adds a clickable link.
|
308 |
|
|
</li>
|
309 |
|
|
<li>
|
310 |
|
|
<a href="../phpHtmlLib/TextNav.html#methodadd">TextNav::add()</a>
|
311 |
|
|
: this function adds a clickable link.
|
312 |
|
|
</li>
|
313 |
|
|
<li>
|
314 |
|
|
<a href="../phpHtmlLib/VerticalCSSNavTable.html#methodadd">VerticalCSSNavTable::add()</a>
|
315 |
|
|
: this function adds a clickable link.
|
316 |
|
|
</li>
|
317 |
|
|
<li>
|
318 |
|
|
<a href="../phpHtmlLib/XMLDocumentClass.html#methodadd">XMLDocumentClass::add()</a>
|
319 |
|
|
: we override this class to make sure we push all content inside the local _xml_obj tag
|
320 |
|
|
</li>
|
321 |
|
|
</ul>
|
322 |
|
|
</div>
|
323 |
|
|
<a name="methodadd_reference" id="add_reference"><!-- --></a>
|
324 |
|
|
<div class="oddrow">
|
325 |
|
|
|
326 |
|
|
<div class="method-header">
|
327 |
|
|
<span class="method-title">add_reference</span> (line <span class="line-number">230</span>)
|
328 |
|
|
</div>
|
329 |
|
|
|
330 |
|
|
<!-- ========== Info from phpDoc block ========= -->
|
331 |
|
|
<p class="short-description">Add content onto content stack so you can change the item later.</p>
|
332 |
|
|
<p class="description"><p>adds content to tag as a FIFO You can only add 1 element at a time, and it will be added as a reference. So you can't do push_reference("something");, since "something" is a static.</p></p>
|
333 |
|
|
<ul class="tags">
|
334 |
|
|
<li><span class="field">access:</span> public</li>
|
335 |
|
|
</ul>
|
336 |
|
|
|
337 |
|
|
<div class="method-signature">
|
338 |
|
|
<span class="method-result">void</span>
|
339 |
|
|
<span class="method-name">
|
340 |
|
|
add_reference
|
341 |
|
|
</span>
|
342 |
|
|
(<span class="var-type">mixed</span> <span class="var-name">&$content</span>)
|
343 |
|
|
</div>
|
344 |
|
|
|
345 |
|
|
<ul class="parameters">
|
346 |
|
|
<li>
|
347 |
|
|
<span class="var-type">mixed</span>
|
348 |
|
|
<span class="var-name">$content</span><span class="var-description">: - either string, or tag object. the tag object gets stored as a reference to the original, so you can push it, then modify it later.</span> </li>
|
349 |
|
|
</ul>
|
350 |
|
|
|
351 |
|
|
|
352 |
|
|
<hr class="separator" />
|
353 |
|
|
<div class="notes">Redefined in descendants as:</div>
|
354 |
|
|
<ul class="redefinitions">
|
355 |
|
|
<li>
|
356 |
|
|
<a href="../phpHtmlLib/OLtag.html#methodadd_reference">OLtag::add_reference()</a>
|
357 |
|
|
: push content onto content stack
|
358 |
|
|
</li>
|
359 |
|
|
<li>
|
360 |
|
|
<a href="../phpHtmlLib/TRtag.html#methodadd_reference">TRtag::add_reference()</a>
|
361 |
|
|
: add content onto content stack
|
362 |
|
|
</li>
|
363 |
|
|
<li>
|
364 |
|
|
<a href="../phpHtmlLib/XMLDocumentClass.html#methodadd_reference">XMLDocumentClass::add_reference()</a>
|
365 |
|
|
: we override this class to make sure we push all content inside the local _xml_obj tag
|
366 |
|
|
</li>
|
367 |
|
|
</ul>
|
368 |
|
|
</div>
|
369 |
|
|
<a name="methodcount_content" id="count_content"><!-- --></a>
|
370 |
|
|
<div class="evenrow">
|
371 |
|
|
|
372 |
|
|
<div class="method-header">
|
373 |
|
|
<span class="method-title">count_content</span> (line <span class="line-number">258</span>)
|
374 |
|
|
</div>
|
375 |
|
|
|
376 |
|
|
<!-- ========== Info from phpDoc block ========= -->
|
377 |
|
|
<p class="short-description">counts the number of content objects</p>
|
378 |
|
|
<p class="description"><p><pre><ol><li><span class="src-key">function </span><a href="../phpHtmlLib/Container.html#methodcount_content">count_content</a><span class="src-sym">( </span><span class="src-sym">) </span><span class="src-sym">{</span></li> |
379 |
|
|
<li> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_data_count</span><span class="src-sym">;</span></li> |
380 |
|
|
<li> <span class="src-sym">}</span></li> |
381 |
|
|
</ol></pre></p></p>
|
382 |
|
|
<ul class="tags">
|
383 |
|
|
<li><span class="field">access:</span> public</li>
|
384 |
|
|
</ul>
|
385 |
|
|
|
386 |
|
|
<div class="method-signature">
|
387 |
|
|
<span class="method-result">int</span>
|
388 |
|
|
<span class="method-name">
|
389 |
|
|
count_content
|
390 |
|
|
</span>
|
391 |
|
|
()
|
392 |
|
|
</div>
|
393 |
|
|
|
394 |
|
|
|
395 |
|
|
|
396 |
|
|
</div>
|
397 |
|
|
<a name="methodget_element" id="get_element"><!-- --></a>
|
398 |
|
|
<div class="oddrow">
|
399 |
|
|
|
400 |
|
|
<div class="method-header">
|
401 |
|
|
<span class="method-title">get_element</span> (line <span class="line-number">271</span>)
|
402 |
|
|
</div>
|
403 |
|
|
|
404 |
|
|
<!-- ========== Info from phpDoc block ========= -->
|
405 |
|
|
<p class="short-description">get the nth element from content array</p>
|
406 |
|
|
<p class="description"><p><pre><ol><li><span class="src-key">function </span><span class="src-sym">&</span><a href="../phpHtmlLib/Container.html#methodget_element">get_element</a><span class="src-sym">( </span><span class="src-var">$cell </span><span class="src-sym">) </span><span class="src-sym">{</span></li> |
407 |
|
|
<li> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_content</span><span class="src-sym">[</span><span class="src-var">$cell</span><span class="src-sym">]</span><span class="src-sym">;</span></li> |
408 |
|
|
<li> <span class="src-sym">}</span></li> |
409 |
|
|
</ol></pre></p></p>
|
410 |
|
|
|
411 |
|
|
<div class="method-signature">
|
412 |
|
|
<span class="method-result">mixed</span>
|
413 |
|
|
<span class="method-name">
|
414 |
|
|
&get_element
|
415 |
|
|
</span>
|
416 |
|
|
(<span class="var-type">int</span> <span class="var-name">$cell</span>)
|
417 |
|
|
</div>
|
418 |
|
|
|
419 |
|
|
<ul class="parameters">
|
420 |
|
|
<li>
|
421 |
|
|
<span class="var-type">int</span>
|
422 |
|
|
<span class="var-name">$cell</span><span class="var-description">: the cell to get</span> </li>
|
423 |
|
|
</ul>
|
424 |
|
|
|
425 |
|
|
|
426 |
|
|
</div>
|
427 |
|
|
<a name="methodget_indent_flag" id="get_indent_flag"><!-- --></a>
|
428 |
|
|
<div class="evenrow">
|
429 |
|
|
|
430 |
|
|
<div class="method-header">
|
431 |
|
|
<span class="method-title">get_indent_flag</span> (line <span class="line-number">318</span>)
|
432 |
|
|
</div>
|
433 |
|
|
|
434 |
|
|
<!-- ========== Info from phpDoc block ========= -->
|
435 |
|
|
<p class="short-description">This flag gets the current value of the indent flag</p>
|
436 |
|
|
<p class="description"><p><pre><ol><li><span class="src-key">function </span><a href="../phpHtmlLib/Container.html#methodget_indent_flag">get_indent_flag</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></li> |
437 |
|
|
<li> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_flags </span><span class="src-sym">& </span><span class="src-id"><a href="../phpHtmlLib/_defines_inc.html#define_INDENT">_INDENT</a></span><span class="src-sym">;</span></li> |
438 |
|
|
<li> <span class="src-sym">}</span></li> |
439 |
|
|
</ol></pre></p></p>
|
440 |
|
|
|
441 |
|
|
<div class="method-signature">
|
442 |
|
|
<span class="method-result">boolean</span>
|
443 |
|
|
<span class="method-name">
|
444 |
|
|
get_indent_flag
|
445 |
|
|
</span>
|
446 |
|
|
()
|
447 |
|
|
</div>
|
448 |
|
|
|
449 |
|
|
|
450 |
|
|
|
451 |
|
|
</div>
|
452 |
|
|
<a name="methodpush" id="push"><!-- --></a>
|
453 |
|
|
<div class="oddrow">
|
454 |
|
|
|
455 |
|
|
<div class="method-header">
|
456 |
|
|
<span class="method-title">push</span> (line <span class="line-number">168</span>)
|
457 |
|
|
</div>
|
458 |
|
|
|
459 |
|
|
<!-- ========== Info from phpDoc block ========= -->
|
460 |
|
|
<p class="short-description">Same as add().</p>
|
461 |
|
|
<p class="description"><p>NOTE: only exists for 1.1.x compatibility</p><p><pre><ol><li><span class="src-key">function </span><a href="../phpHtmlLib/Container.html#methodpush">push</a><span class="src-sym">( </span><span class="src-sym">) </span><span class="src-sym">{</span></li> |
462 |
|
|
<li> <span class="src-var">$args </span>= <a href="http://www.php.net/func_get_args">func_get_args</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></li> |
463 |
|
|
<li> <a href="http://www.php.net/call_user_func_array">call_user_func_array</a><span class="src-sym">( </span><span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">&</span><span class="src-var">$this</span><span class="src-sym">, </span><span class="src-str">"add"</span><span class="src-sym">)</span><span class="src-sym">, </span><span class="src-var">$args</span><span class="src-sym">)</span><span class="src-sym">;</span></li> |
464 |
|
|
<li> <span class="src-sym">}</span></li> |
465 |
|
|
</ol></pre></p></p>
|
466 |
|
|
<ul class="tags">
|
467 |
|
|
<li><span class="field">access:</span> public</li>
|
468 |
|
|
<li><span class="field">deprecated:</span> </li>
|
469 |
|
|
</ul>
|
470 |
|
|
|
471 |
|
|
<div class="method-signature">
|
472 |
|
|
<span class="method-result">void</span>
|
473 |
|
|
<span class="method-name">
|
474 |
|
|
push
|
475 |
|
|
</span>
|
476 |
|
|
(<span class="var-type">mixed</span> <span class="var-name">$content</span>)
|
477 |
|
|
</div>
|
478 |
|
|
|
479 |
|
|
<ul class="parameters">
|
480 |
|
|
<li>
|
481 |
|
|
<span class="var-type">mixed</span>
|
482 |
|
|
<span class="var-name">$content</span><span class="var-description">: - either string, or tag object.</span> </li>
|
483 |
|
|
</ul>
|
484 |
|
|
|
485 |
|
|
|
486 |
|
|
<hr class="separator" />
|
487 |
|
|
<div class="notes">Redefined in descendants as:</div>
|
488 |
|
|
<ul class="redefinitions">
|
489 |
|
|
<li>
|
490 |
|
|
<a href="../phpHtmlLib/TRtag.html#methodpush">TRtag::push()</a>
|
491 |
|
|
: Same ass add()
|
492 |
|
|
</li>
|
493 |
|
|
<li>
|
494 |
|
|
<a href="../phpHtmlLib/FooterNav.html#methodpush">FooterNav::push()</a>
|
495 |
|
|
: add an entry to the footer nav.
|
496 |
|
|
</li>
|
497 |
|
|
<li>
|
498 |
|
|
<a href="../phpHtmlLib/ImageThumbnailWidget.html#methodpush">ImageThumbnailWidget::push()</a>
|
499 |
|
|
</li>
|
500 |
|
|
<li>
|
501 |
|
|
<a href="../phpHtmlLib/NavTable.html#methodpush">NavTable::push()</a>
|
502 |
|
|
: depricated version of add()
|
503 |
|
|
</li>
|
504 |
|
|
<li>
|
505 |
|
|
<a href="../phpHtmlLib/TextCSSNav.html#methodpush">TextCSSNav::push()</a>
|
506 |
|
|
: depricated version of add()
|
507 |
|
|
</li>
|
508 |
|
|
<li>
|
509 |
|
|
<a href="../phpHtmlLib/TextNav.html#methodpush">TextNav::push()</a>
|
510 |
|
|
: depricated version of add()
|
511 |
|
|
</li>
|
512 |
|
|
<li>
|
513 |
|
|
<a href="../phpHtmlLib/TreeNav.html#methodpush">TreeNav::push()</a>
|
514 |
|
|
</li>
|
515 |
|
|
<li>
|
516 |
|
|
<a href="../phpHtmlLib/XMLDocumentClass.html#methodpush">XMLDocumentClass::push()</a>
|
517 |
|
|
: Same as add().
|
518 |
|
|
</li>
|
519 |
|
|
</ul>
|
520 |
|
|
</div>
|
521 |
|
|
<a name="methodpush_reference" id="push_reference"><!-- --></a>
|
522 |
|
|
<div class="evenrow">
|
523 |
|
|
|
524 |
|
|
<div class="method-header">
|
525 |
|
|
<span class="method-title">push_reference</span> (line <span class="line-number">209</span>)
|
526 |
|
|
</div>
|
527 |
|
|
|
528 |
|
|
<!-- ========== Info from phpDoc block ========= -->
|
529 |
|
|
<p class="short-description">Same as add_reference NOTE : only exists for compatibility with 1.1.x</p>
|
530 |
|
|
<p class="description"><p><pre><ol><li><span class="src-key">function </span><a href="../phpHtmlLib/Container.html#methodpush_reference">push_reference</a><span class="src-sym">( </span><span class="src-sym">&</span><span class="src-var">$content </span><span class="src-sym">) </span><span class="src-sym">{</span></li> |
531 |
|
|
<li> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../phpHtmlLib/Container.html#methodadd_reference">add_reference</a><span class="src-sym">( </span><span class="src-var">$content </span><span class="src-sym">)</span><span class="src-sym">;</span></li> |
532 |
|
|
<li> <span class="src-sym">}</span></li> |
533 |
|
|
</ol></pre></p></p>
|
534 |
|
|
<ul class="tags">
|
535 |
|
|
<li><span class="field">access:</span> public</li>
|
536 |
|
|
</ul>
|
537 |
|
|
|
538 |
|
|
<div class="method-signature">
|
539 |
|
|
<span class="method-result">void</span>
|
540 |
|
|
<span class="method-name">
|
541 |
|
|
push_reference
|
542 |
|
|
</span>
|
543 |
|
|
(<span class="var-type">mixed</span> <span class="var-name">&$content</span>)
|
544 |
|
|
</div>
|
545 |
|
|
|
546 |
|
|
<ul class="parameters">
|
547 |
|
|
<li>
|
548 |
|
|
<span class="var-type">mixed</span>
|
549 |
|
|
<span class="var-name">&$content</span><span class="var-description">: - a reference to some variable.</span> </li>
|
550 |
|
|
</ul>
|
551 |
|
|
|
552 |
|
|
|
553 |
|
|
<hr class="separator" />
|
554 |
|
|
<div class="notes">Redefined in descendants as:</div>
|
555 |
|
|
<ul class="redefinitions">
|
556 |
|
|
<li>
|
557 |
|
|
<a href="../phpHtmlLib/TRtag.html#methodpush_reference">TRtag::push_reference()</a>
|
558 |
|
|
: Same ass add_reference()
|
559 |
|
|
</li>
|
560 |
|
|
<li>
|
561 |
|
|
<a href="../phpHtmlLib/XMLDocumentClass.html#methodpush_reference">XMLDocumentClass::push_reference()</a>
|
562 |
|
|
: Same as add_reference NOTE : only exists for compatibility with 1.1.x
|
563 |
|
|
</li>
|
564 |
|
|
</ul>
|
565 |
|
|
</div>
|
566 |
|
|
<a name="methodrender" id="render"><!-- --></a>
|
567 |
|
|
<div class="oddrow">
|
568 |
|
|
|
569 |
|
|
<div class="method-header">
|
570 |
|
|
<span class="method-title">render</span> (line <span class="line-number">114</span>)
|
571 |
|
|
</div>
|
572 |
|
|
|
573 |
|
|
<!-- ========== Info from phpDoc block ========= -->
|
574 |
|
|
<p class="short-description">This function is compatible with the rest of the phpHtmllib API spec.</p>
|
575 |
|
|
<p class="description"><p>It just walks through each of the class' data and renders it with the appropriate indentation.</p><p><pre><ol><li><span class="src-key">function </span><a href="../phpHtmlLib/Container.html#methodrender">render</a><span class="src-sym">(</span><span class="src-var">$indent_level</span>=<span class="src-num">0</span><span class="src-sym">, </span><span class="src-var">$output_debug</span>=<span class="src-num">0</span><span class="src-sym">) </span><span class="src-sym">{</span></li> |
576 |
|
|
<li> <span class="src-var">$html </span>= <span class="src-str">''</span><span class="src-sym">;</span></li> |
577 |
|
|
<li> </li> |
578 |
|
|
<li> <span class="src-key">for </span><span class="src-sym">(</span><span class="src-var">$x</span>=<span class="src-num">0</span><span class="src-sym">; </span><span class="src-var">$x</span><=<span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_data_count</span>-<span class="src-num">1</span><span class="src-sym">; </span><span class="src-var">$x</span>++<span class="src-sym">) </span><span class="src-sym">{</span></li> |
579 |
|
|
<li> <span class="src-var">$item </span>= <span class="src-sym">&</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_content</span><span class="src-sym">[</span><span class="src-var">$x</span><span class="src-sym">]</span><span class="src-sym">;</span></li> |
580 |
|
|
<li> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/method_exists">method_exists</a><span class="src-sym">(</span><span class="src-var">$item</span><span class="src-sym">, </span><span class="src-str">"render"</span><span class="src-sym">) ) </span><span class="src-sym">{</span></li> |
581 |
|
|
<li> <span class="src-key">if </span><span class="src-sym">((</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_flags </span><span class="src-sym">& </span><span class="src-id"><a href="../phpHtmlLib/_defines_inc.html#define_COLLAPSE">_COLLAPSE</a></span><span class="src-sym">) </span>&& <a href="http://www.php.net/method_exists">method_exists</a><span class="src-sym">(</span><span class="src-var">$item</span><span class="src-sym">, </span><span class="src-str">"set_collapse"</span><span class="src-sym">)) </span><span class="src-sym">{</span></li> |
582 |
|
|
<li> <span class="src-var">$item</span><span class="src-sym">-></span><a href="../phpHtmlLib/Container.html#methodset_collapse">set_collapse</a><span class="src-sym">(</span><span class="src-id">TRUE</span><span class="src-sym">, </span><span class="src-id">FALSE</span><span class="src-sym">)</span><span class="src-sym">;</span></li> |
583 |
|
|
<li> <span class="src-sym">}</span></li> |
584 |
|
|
<li> <span class="src-var">$html </span>.= <span class="src-var">$item</span><span class="src-sym">-></span><a href="../phpHtmlLib/Container.html#methodrender">render</a><span class="src-sym">(</span><span class="src-var">$indent_level</span><span class="src-sym">, </span><span class="src-var">$output_debug</span><span class="src-sym">)</span><span class="src-sym">;</span></li> |
585 |
|
|
<li> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></li> |
586 |
|
|
<li> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_flags </span><span class="src-sym">& </span><span class="src-id"><a href="../phpHtmlLib/_defines_inc.html#define_COLLAPSE">_COLLAPSE</a></span><span class="src-sym">) </span><span class="src-sym">{</span></li> |
587 |
|
|
<li> <span class="src-var">$html </span>.= <span class="src-var">$item</span><span class="src-sym">; </span></li> |
588 |
|
|
<li> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></li> |
589 |
|
|
<li> <span class="src-var">$indent </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_render_indent</span><span class="src-sym">(</span><span class="src-var">$indent_level</span><span class="src-sym">, </span><span class="src-var">$output_debug</span><span class="src-sym">)</span><span class="src-sym">;</span></li> |
590 |
|
|
<li> <span class="src-var">$html </span>.= <span class="src-var">$indent</span>.<span class="src-var">$item</span><span class="src-sym">;</span></li> |
591 |
|
|
<li> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_flags </span><span class="src-sym">& </span><span class="src-id"><a href="../phpHtmlLib/_defines_inc.html#define_NEWLINEAFTERCONTENT">_NEWLINEAFTERCONTENT</a></span><span class="src-sym">) </span><span class="src-sym">{</span></li> |
592 |
|
|
<li> <span class="src-var">$html </span>.= <span class="src-str">"\n"</span><span class="src-sym">;</span></li> |
593 |
|
|
<li> <span class="src-sym">}</span></li> |
594 |
|
|
<li> <span class="src-sym">} </span></li> |
595 |
|
|
<li> <span class="src-sym">}</span></li> |
596 |
|
|
<li> <span class="src-sym">}</span></li> |
597 |
|
|
<li> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_flags </span><span class="src-sym">& </span><span class="src-id"><a href="../phpHtmlLib/_defines_inc.html#define_COLLAPSE">_COLLAPSE</a></span><span class="src-sym">) </span><span class="src-sym">{</span></li> |
598 |
|
|
<li> <span class="src-var">$indent </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_render_indent</span><span class="src-sym">(</span><span class="src-var">$indent_level</span><span class="src-sym">, </span><span class="src-var">$output_debug</span><span class="src-sym">)</span><span class="src-sym">;</span></li> |
599 |
|
|
<li> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_flags </span><span class="src-sym">& </span><span class="src-id"><a href="../phpHtmlLib/_defines_inc.html#define_NEWLINEAFTERCONTENT">_NEWLINEAFTERCONTENT</a></span><span class="src-sym">) </span><span class="src-sym">{</span></li> |
600 |
|
|
<li> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$output_debug</span><span class="src-sym">) </span><span class="src-sym">{</span></li> |
601 |
|
|
<li> <span class="src-var">$html </span>= <span class="src-var">$indent </span>. <span class="src-var">$html </span>. <span class="src-str">"<br>\n"</span><span class="src-sym">; </span></li> |
602 |
|
|
<li> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></li> |
603 |
|
|
<li> <span class="src-var">$html </span>= <span class="src-var">$indent </span>. <span class="src-var">$html </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></li> |
604 |
|
|
<li> <span class="src-sym">} </span></li> |
605 |
|
|
<li> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></li> |
606 |
|
|
<li> <span class="src-var">$html </span>= <span class="src-var">$indent </span>. <span class="src-var">$html</span><span class="src-sym">;</span></li> |
607 |
|
|
<li> <span class="src-sym">}</span></li> |
608 |
|
|
<li> </li> |
609 |
|
|
<li> <span class="src-sym">}</span></li> |
610 |
|
|
<li> <span class="src-key">return </span><span class="src-var">$html</span><span class="src-sym">;</span></li> |
611 |
|
|
<li> <span class="src-sym">}</span></li> |
612 |
|
|
</ol></pre></p></p>
|
613 |
|
|
<ul class="tags">
|
614 |
|
|
<li><span class="field">return:</span> the raw html output.</li>
|
615 |
|
|
</ul>
|
616 |
|
|
|
617 |
|
|
<div class="method-signature">
|
618 |
|
|
<span class="method-result">string</span>
|
619 |
|
|
<span class="method-name">
|
620 |
|
|
render
|
621 |
|
|
</span>
|
622 |
|
|
(<span class="var-type">int</span> <span class="var-name">$indent_level</span>, <span class="var-type">int</span> <span class="var-name">$output_debug</span>)
|
623 |
|
|
</div>
|
624 |
|
|
|
625 |
|
|
<ul class="parameters">
|
626 |
|
|
<li>
|
627 |
|
|
<span class="var-type">int</span>
|
628 |
|
|
<span class="var-name">$indent_level</span><span class="var-description">: - the indentation level for the container.</span> </li>
|
629 |
|
|
<li>
|
630 |
|
|
<span class="var-type">int</span>
|
631 |
|
|
<span class="var-name">$output_debug</span><span class="var-description">: - the output debug flag to maintain compatibility w/ the API.</span> </li>
|
632 |
|
|
</ul>
|
633 |
|
|
|
634 |
|
|
|
635 |
|
|
<hr class="separator" />
|
636 |
|
|
<div class="notes">Redefined in descendants as:</div>
|
637 |
|
|
<ul class="redefinitions">
|
638 |
|
|
<li>
|
639 |
|
|
<a href="../phpHtmlLib/XMLTagClass.html#methodrender">XMLTagClass::render()</a>
|
640 |
|
|
: This function is responsible for rendering the tag and its contents
|
641 |
|
|
</li>
|
642 |
|
|
<li>
|
643 |
|
|
<a href="../phpHtmlLib/HTMLTagClass.html#methodrender">HTMLTagClass::render()</a>
|
644 |
|
|
: Renders the tag, attributes, content and close tag.
|
645 |
|
|
</li>
|
646 |
|
|
<li>
|
647 |
|
|
<a href="../phpHtmlLib/FormProcessing/FormProcessor.html#methodrender">FormProcessor::render()</a>
|
648 |
|
|
: This method is called to render the form's html
|
649 |
|
|
</li>
|
650 |
|
|
<li>
|
651 |
|
|
<a href="../phpHtmlLib/FormProcessing/FormWizard.html#methodrender">FormWizard::render()</a>
|
652 |
|
|
: This function renders the
|
653 |
|
|
</li>
|
654 |
|
|
<li>
|
655 |
|
|
<a href="../phpHtmlLib/SVG/SVGGraph.html#methodrender">SVGGraph::render()</a>
|
656 |
|
|
</li>
|
657 |
|
|
<li>
|
658 |
|
|
<a href="../phpHtmlLib/ActiveTab.html#methodrender">ActiveTab::render()</a>
|
659 |
|
|
</li>
|
660 |
|
|
<li>
|
661 |
|
|
<a href="../phpHtmlLib/ButtonPanel.html#methodrender">ButtonPanel::render()</a>
|
662 |
|
|
: render the entire table.
|
663 |
|
|
</li>
|
664 |
|
|
<li>
|
665 |
|
|
<a href="../phpHtmlLib/DialogWidget.html#methodrender">DialogWidget::render()</a>
|
666 |
|
|
: Creates a container with title,
|
667 |
|
|
</li>
|
668 |
|
|
<li>
|
669 |
|
|
<a href="../phpHtmlLib/MessageBoxWidget.html#methodrender">MessageBoxWidget::render()</a>
|
670 |
|
|
: We override the render function
|
671 |
|
|
</li>
|
672 |
|
|
<li>
|
673 |
|
|
<a href="../phpHtmlLib/FooterNav.html#methodrender">FooterNav::render()</a>
|
674 |
|
|
: render the code for this widget.
|
675 |
|
|
</li>
|
676 |
|
|
<li>
|
677 |
|
|
<a href="../phpHtmlLib/ImageThumbnailWidget.html#methodrender">ImageThumbnailWidget::render()</a>
|
678 |
|
|
: Render the entire widget. this includes the page offset links, as well as the thumbnails.
|
679 |
|
|
</li>
|
680 |
|
|
<li>
|
681 |
|
|
<a href="../phpHtmlLib/InfoTable.html#methodrender">InfoTable::render()</a>
|
682 |
|
|
: This function renders the object.
|
683 |
|
|
</li>
|
684 |
|
|
<li>
|
685 |
|
|
<a href="../phpHtmlLib/NavTable.html#methodrender">NavTable::render()</a>
|
686 |
|
|
: Render the Navtable and its content.
|
687 |
|
|
</li>
|
688 |
|
|
<li>
|
689 |
|
|
<a href="../phpHtmlLib/RoundTitleTable.html#methodrender">RoundTitleTable::render()</a>
|
690 |
|
|
: Render the Navtable and its content.
|
691 |
|
|
</li>
|
692 |
|
|
<li>
|
693 |
|
|
<a href="../phpHtmlLib/TabList.html#methodrender">TabList::render()</a>
|
694 |
|
|
: The render method
|
695 |
|
|
</li>
|
696 |
|
|
<li>
|
697 |
|
|
<a href="../phpHtmlLib/TextCSSNav.html#methodrender">TextCSSNav::render()</a>
|
698 |
|
|
: function that will render the widget.
|
699 |
|
|
</li>
|
700 |
|
|
<li>
|
701 |
|
|
<a href="../phpHtmlLib/TextNav.html#methodrender">TextNav::render()</a>
|
702 |
|
|
: function that will render the widget.
|
703 |
|
|
</li>
|
704 |
|
|
<li>
|
705 |
|
|
<a href="../phpHtmlLib/TreeNav.html#methodrender">TreeNav::render()</a>
|
706 |
|
|
: function that will render the widget.
|
707 |
|
|
</li>
|
708 |
|
|
<li>
|
709 |
|
|
<a href="../phpHtmlLib/VerticalCSSNavTable.html#methodrender">VerticalCSSNavTable::render()</a>
|
710 |
|
|
: function that will render the widget.
|
711 |
|
|
</li>
|
712 |
|
|
<li>
|
713 |
|
|
<a href="../phpHtmlLib/DataList.html#methodrender">DataList::render()</a>
|
714 |
|
|
: This function renders the final
|
715 |
|
|
</li>
|
716 |
|
|
<li>
|
717 |
|
|
<a href="../phpHtmlLib/XMLDocumentClass.html#methodrender">XMLDocumentClass::render()</a>
|
718 |
|
|
: function that will render the XML Document.
|
719 |
|
|
</li>
|
720 |
|
|
</ul>
|
721 |
|
|
</div>
|
722 |
|
|
<a name="methodreset_content" id="reset_content"><!-- --></a>
|
723 |
|
|
<div class="evenrow">
|
724 |
|
|
|
725 |
|
|
<div class="method-header">
|
726 |
|
|
<span class="method-title">reset_content</span> (line <span class="line-number">244</span>)
|
727 |
|
|
</div>
|
728 |
|
|
|
729 |
|
|
<!-- ========== Info from phpDoc block ========= -->
|
730 |
|
|
<p class="short-description">destroy existing content and start with new content.</p>
|
731 |
|
|
<p class="description"><p><pre><ol><li><span class="src-key">function </span><a href="../phpHtmlLib/Container.html#methodreset_content">reset_content</a><span class="src-sym">( </span><span class="src-sym">) </span><span class="src-sym">{</span></li> |
732 |
|
|
<li> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_content </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></li> |
733 |
|
|
<li> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_data_count </span>= <span class="src-num">0</span><span class="src-sym">;</span></li> |
734 |
|
|
<li> <span class="src-var">$args </span>= <a href="http://www.php.net/func_get_args">func_get_args</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></li> |
735 |
|
|
<li> <a href="http://www.php.net/call_user_func_array">call_user_func_array</a><span class="src-sym">( </span><span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">&</span><span class="src-var">$this</span><span class="src-sym">, </span><span class="src-str">"add"</span><span class="src-sym">)</span><span class="src-sym">, </span><span class="src-var">$args</span><span class="src-sym">)</span><span class="src-sym">;</span></li> |
736 |
|
|
<li> <span class="src-sym">}</span></li> |
737 |
|
|
</ol></pre></p></p>
|
738 |
|
|
<ul class="tags">
|
739 |
|
|
<li><span class="field">access:</span> public</li>
|
740 |
|
|
</ul>
|
741 |
|
|
|
742 |
|
|
<div class="method-signature">
|
743 |
|
|
<span class="method-result">void</span>
|
744 |
|
|
<span class="method-name">
|
745 |
|
|
reset_content
|
746 |
|
|
</span>
|
747 |
|
|
(<span class="var-type">mixed</span> <span class="var-name">$content</span>)
|
748 |
|
|
</div>
|
749 |
|
|
|
750 |
|
|
<ul class="parameters">
|
751 |
|
|
<li>
|
752 |
|
|
<span class="var-type">mixed</span>
|
753 |
|
|
<span class="var-name">$content</span><span class="var-description">: can be tag object, or raw (string).</span> </li>
|
754 |
|
|
</ul>
|
755 |
|
|
|
756 |
|
|
|
757 |
|
|
<hr class="separator" />
|
758 |
|
|
<div class="notes">Redefined in descendants as:</div>
|
759 |
|
|
<ul class="redefinitions">
|
760 |
|
|
<li>
|
761 |
|
|
<a href="../phpHtmlLib/XMLDocumentClass.html#methodreset_content">XMLDocumentClass::reset_content()</a>
|
762 |
|
|
: we override this class to make sure we push all content inside the local _xml_obj tag
|
763 |
|
|
</li>
|
764 |
|
|
</ul>
|
765 |
|
|
</div>
|
766 |
|
|
<a name="methodset_collapse" id="set_collapse"><!-- --></a>
|
767 |
|
|
<div class="oddrow">
|
768 |
|
|
|
769 |
|
|
<div class="method-header">
|
770 |
|
|
<span class="method-title">set_collapse</span> (line <span class="line-number">334</span>)
|
771 |
|
|
</div>
|
772 |
|
|
|
773 |
|
|
<!-- ========== Info from phpDoc block ========= -->
|
774 |
|
|
<p class="short-description">This function turns on the collapse flag</p>
|
775 |
|
|
<p class="description"><p><pre><ol><li><span class="src-key">function </span><a href="../phpHtmlLib/Container.html#methodset_collapse">set_collapse</a><span class="src-sym">(</span><span class="src-var">$collapse</span>=<span class="src-id">TRUE</span><span class="src-sym">, </span><span class="src-var">$indent</span>=<span class="src-id">TRUE</span><span class="src-sym">) </span><span class="src-sym">{</span></li> |
776 |
|
|
<li> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$collapse</span><span class="src-sym">) </span><span class="src-sym">{</span></li> |
777 |
|
|
<li> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_flags </span>|= <span class="src-id"><a href="../phpHtmlLib/_defines_inc.html#define_COLLAPSE">_COLLAPSE</a></span><span class="src-sym">;</span></li> |
778 |
|
|
<li> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></li> |
779 |
|
|
<li> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_flags </span>&= ~<span class="src-id"><a href="../phpHtmlLib/_defines_inc.html#define_COLLAPSE">_COLLAPSE</a></span><span class="src-sym">;</span></li> |
780 |
|
|
<li> <span class="src-sym">}</span></li> |
781 |
|
|
<li> </li> |
782 |
|
|
<li> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$indent</span><span class="src-sym">) </span><span class="src-sym">{</span></li> |
783 |
|
|
<li> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../phpHtmlLib/Container.html#methodset_indent_flag">set_indent_flag</a><span class="src-sym">(</span><span class="src-var">$indent</span><span class="src-sym">)</span><span class="src-sym">;</span></li> |
784 |
|
|
<li> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_flags </span>&= ~<span class="src-id"><a href="../phpHtmlLib/_defines_inc.html#define_NEWLINEAFTERCONTENT">_NEWLINEAFTERCONTENT</a></span><span class="src-sym">;</span></li> |
785 |
|
|
<li> <span class="src-sym">} </span></li> |
786 |
|
|
<li> <span class="src-sym">}</span></li> |
787 |
|
|
</ol></pre></p></p>
|
788 |
|
|
<ul class="tags">
|
789 |
|
|
<li><span class="field">tutorial:</span> <a href="../phpHtmlLib/tutorial_Container.cls.html#collapse">Collapse</a></li>
|
790 |
|
|
</ul>
|
791 |
|
|
|
792 |
|
|
<div class="method-signature">
|
793 |
|
|
<span class="method-result">void</span>
|
794 |
|
|
<span class="method-name">
|
795 |
|
|
set_collapse
|
796 |
|
|
</span>
|
797 |
|
|
([<span class="var-type">boolean</span> <span class="var-name">$collapse</span> = <span class="var-default">TRUE</span>], [<span class="var-type">boolean</span> <span class="var-name">$indent</span> = <span class="var-default">TRUE</span>])
|
798 |
|
|
</div>
|
799 |
|
|
|
800 |
|
|
<ul class="parameters">
|
801 |
|
|
<li>
|
802 |
|
|
<span class="var-type">boolean</span>
|
803 |
|
|
<span class="var-name">$collapse</span><span class="var-description">: - the collapse flag</span> </li>
|
804 |
|
|
<li>
|
805 |
|
|
<span class="var-type">boolean</span>
|
806 |
|
|
<span class="var-name">$indent</span><span class="var-description">: - the indent flag DEFAULT: TRUE;</span> </li>
|
807 |
|
|
</ul>
|
808 |
|
|
|
809 |
|
|
|
810 |
|
|
<hr class="separator" />
|
811 |
|
|
<div class="notes">Redefined in descendants as:</div>
|
812 |
|
|
<ul class="redefinitions">
|
813 |
|
|
<li>
|
814 |
|
|
<a href="../phpHtmlLib/XMLTagClass.html#methodset_collapse">XMLTagClass::set_collapse()</a>
|
815 |
|
|
: This function turns on the collapse flag
|
816 |
|
|
</li>
|
817 |
|
|
</ul>
|
818 |
|
|
</div>
|
819 |
|
|
<a name="methodset_indent_flag" id="set_indent_flag"><!-- --></a>
|
820 |
|
|
<div class="evenrow">
|
821 |
|
|
|
822 |
|
|
<div class="method-header">
|
823 |
|
|
<span class="method-title">set_indent_flag</span> (line <span class="line-number">301</span>)
|
824 |
|
|
</div>
|
825 |
|
|
|
826 |
|
|
<!-- ========== Info from phpDoc block ========= -->
|
827 |
|
|
<p class="short-description">function to set the indent flag</p>
|
828 |
|
|
<p class="description"><p><pre><ol><li><span class="src-key">function </span><a href="../phpHtmlLib/Container.html#methodset_indent_flag">set_indent_flag</a><span class="src-sym">( </span><span class="src-var">$flag </span><span class="src-sym">) </span><span class="src-sym">{</span></li> |
829 |
|
|
<li> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$flag</span><span class="src-sym">) </span><span class="src-sym">{</span></li> |
830 |
|
|
<li> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_flags </span>|= <span class="src-id"><a href="../phpHtmlLib/_defines_inc.html#define_INDENT">_INDENT</a></span><span class="src-sym">;</span></li> |
831 |
|
|
<li> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></li> |
832 |
|
|
<li> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_flags </span>&= ~<span class="src-id"><a href="../phpHtmlLib/_defines_inc.html#define_INDENT">_INDENT</a></span><span class="src-sym">;</span></li> |
833 |
|
|
<li> <span class="src-sym">}</span></li> |
834 |
|
|
<li> <span class="src-sym">}</span></li> |
835 |
|
|
</ol></pre></p></p>
|
836 |
|
|
<ul class="tags">
|
837 |
|
|
<li><span class="field">access:</span> public</li>
|
838 |
|
|
</ul>
|
839 |
|
|
|
840 |
|
|
<div class="method-signature">
|
841 |
|
|
<span class="method-result">void</span>
|
842 |
|
|
<span class="method-name">
|
843 |
|
|
set_indent_flag
|
844 |
|
|
</span>
|
845 |
|
|
(<span class="var-type">boolean</span> <span class="var-name">$flag</span>)
|
846 |
|
|
</div>
|
847 |
|
|
|
848 |
|
|
<ul class="parameters">
|
849 |
|
|
<li>
|
850 |
|
|
<span class="var-type">boolean</span>
|
851 |
|
|
<span class="var-name">$flag</span><span class="var-description">: TRUE or FALSE</span> </li>
|
852 |
|
|
</ul>
|
853 |
|
|
|
854 |
|
|
|
855 |
|
|
</div>
|
856 |
|
|
|
857 |
|
|
</div>
|
858 |
|
|
</div>
|
859 |
|
|
|
860 |
|
|
|
861 |
|
|
<p class="notes" id="credit">
|
862 |
|
|
Documentation generated on Thu, 1 Apr 2004 09:38:06 -0800 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC2</a>
|
863 |
|
|
</p>
|
864 |
|
|
</div></body>
|
865 |
|
|
</html>
|