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:24:01 -0800' --> |
6 |
<TITLE>Docs For Class XMLDocumentClass</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 XMLDocumentClass">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 XMLDocumentClass |
30 |
</H2> (line <span class="linenumber">29</span>) |
31 |
<pre> |
32 |
<a href="../phpHtmlLib/Container.html">Container</a> |
33 |
| |
34 |
--XMLDocumentClass</pre> |
35 |
<SPAN class="type">Classes extended from XMLDocumentClass:</SPAN> |
36 |
<dl> |
37 |
<dt><a href="../phpHtmlLib/SVGDocumentClass.html">SVGDocumentClass</a></dt> |
38 |
<dd>This class lets you build a complete SVG document.</dd> |
39 |
</dl> |
40 |
<dl> |
41 |
<dt><a href="../phpHtmlLib/WMLDocumentClass.html">WMLDocumentClass</a></dt> |
42 |
<dd>This class lets you build a complete WML document and render it</dd> |
43 |
</dl> |
44 |
</p> |
45 |
<p> |
46 |
<b><i>Located in File: Program_Root/widgets/XMLDocumentClass.inc</i></b><br> |
47 |
</p> |
48 |
<hr> |
49 |
This class lets you build a complete xml document and render it. |
50 |
<br /> |
51 |
<p>It automatically creates the root xml tag that will contain all of the content. The name of the tag is the first parameter to the constructor. You can add/change the attributes to the root tag via the set_root_attributes() or the set_root_attribute() methods.</p> |
52 |
<UL> |
53 |
<LI><b>author</b> - <CODE>Walter A. Boring IV <<a href="mailto:waboring@buildabetterweb.com">mailto:waboring@buildabetterweb.com</a>></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/XMLDocumentClass.html#var$dtd">$dtd</A></B></CODE> |
70 |
<BR> |
71 |
<blockquote> Holds the url of dtd </blockquote> |
72 |
<blockquote> Default Value: <CODE>-> NULL<-</CODE> </blockquote> |
73 |
</TD> |
74 |
</TR> |
75 |
<!-- =========== Summary =========== --> |
76 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
77 |
<TD> |
78 |
<CODE><B><A HREF="../phpHtmlLib/XMLDocumentClass.html#var$root_name">$root_name</A></B></CODE> |
79 |
<BR> |
80 |
<blockquote> Holds the name of the root xml </blockquote> |
81 |
<blockquote> Default Value: <CODE>-> NULL<-</CODE> </blockquote> |
82 |
</TD> |
83 |
</TR> |
84 |
<!-- =========== Summary =========== --> |
85 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
86 |
<TD> |
87 |
<CODE><B><A HREF="../phpHtmlLib/XMLDocumentClass.html#var$_doctype_links">$_doctype_links</A></B></CODE> |
88 |
<BR> |
89 |
<blockquote> This contains the doctype links </blockquote> |
90 |
<blockquote> Default Value: <CODE>->array()<-</CODE> </blockquote> |
91 |
</TD> |
92 |
</TR> |
93 |
<!-- =========== Summary =========== --> |
94 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
95 |
<TD> |
96 |
<CODE><B><A HREF="../phpHtmlLib/XMLDocumentClass.html#var$_doctype_source">$_doctype_source</A></B></CODE> |
97 |
<BR> |
98 |
<blockquote> the DOCTYPE source attribute </blockquote> |
99 |
<blockquote> Default Value: <CODE>-> "SYSTEM"<-</CODE> </blockquote> |
100 |
</TD> |
101 |
</TR> |
102 |
<!-- =========== Summary =========== --> |
103 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
104 |
<TD> |
105 |
<CODE><B><A HREF="../phpHtmlLib/XMLDocumentClass.html#var$_http_content_type">$_http_content_type</A></B></CODE> |
106 |
<BR> |
107 |
<blockquote> The http content-type </blockquote> |
108 |
<blockquote> Default Value: <CODE>-> "application/xml"<-</CODE> </blockquote> |
109 |
</TD> |
110 |
</TR> |
111 |
<!-- =========== Summary =========== --> |
112 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
113 |
<TD> |
114 |
<CODE><B><A HREF="../phpHtmlLib/XMLDocumentClass.html#var$_root_tag">$_root_tag</A></B></CODE> |
115 |
<BR> |
116 |
<blockquote> The root xml tag for all data </blockquote> |
117 |
<blockquote> Default Value: <CODE>-> NULL<-</CODE> </blockquote> |
118 |
</TD> |
119 |
</TR> |
120 |
<!-- =========== Summary =========== --> |
121 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
122 |
<TD> |
123 |
<CODE><B><A HREF="../phpHtmlLib/XMLDocumentClass.html#var$_show_char_encoding">$_show_char_encoding</A></B></CODE> |
124 |
<BR> |
125 |
<blockquote> this is a hack to show the character encoding or not. </blockquote> |
126 |
<blockquote> Default Value: <CODE>-> TRUE<-</CODE> </blockquote> |
127 |
</TD> |
128 |
</TR> |
129 |
<!-- =========== Summary =========== --> |
130 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
131 |
<TD> |
132 |
<CODE><B><A HREF="../phpHtmlLib/XMLDocumentClass.html#var$_show_http_header">$_show_http_header</A></B></CODE> |
133 |
<BR> |
134 |
<blockquote> This flag tells if we should output the header content type. </blockquote> |
135 |
<blockquote> Default Value: <CODE>-> FALSE<-</CODE> </blockquote> |
136 |
</TD> |
137 |
</TR> |
138 |
<!-- =========== Summary =========== --> |
139 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
140 |
<TD> |
141 |
<CODE><B><A HREF="../phpHtmlLib/XMLDocumentClass.html#var$_xml_obj">$_xml_obj</A></B></CODE> |
142 |
<BR> |
143 |
<blockquote> holds the xml tag object that </blockquote> |
144 |
<blockquote> Default Value: <CODE>-> NULL<-</CODE> </blockquote> |
145 |
</TD> |
146 |
</TR> |
147 |
<!-- =========== Summary =========== --> |
148 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
149 |
<TD> |
150 |
<CODE><B><A HREF="../phpHtmlLib/XMLDocumentClass.html#var$_xml_stylesheet_container">$_xml_stylesheet_container</A></B></CODE> |
151 |
<BR> |
152 |
<blockquote> The container for all the xml-stylesheet tags </blockquote> |
153 |
<blockquote> Default Value: <CODE>-> NULL<-</CODE> </blockquote> |
154 |
</TD> |
155 |
</TR> |
156 |
</TABLE> |
157 |
<hr> |
158 |
<!-- =========== VAR INHERITED SUMMARY =========== --> |
159 |
<A NAME='var_inherited_summary'><!-- --></A> |
160 |
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border"> |
161 |
<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'> |
162 |
<TD> |
163 |
<span CLASS="font12bold">Inherited Class Variable Summary</span> |
164 |
<A HREF="#top" CLASS="links">^TOP</A> |
165 |
</TD> |
166 |
</TR> |
167 |
|
168 |
<!-- =========== Summary =========== --> |
169 |
<TR BGCOLOR='white'> |
170 |
<TD> |
171 |
<span CLASS="font10bold">Inherited From Class <a href="../phpHtmlLib/Container.html">Container</a></span> |
172 |
<table CELLPADDING='3' CELLSPACING='0' WIDTH='95%' CLASS="border" ALIGN="center"> |
173 |
<tr CLASS="tableheadingcolor"> |
174 |
<th>Variable</th> |
175 |
<th>Default Value</th> |
176 |
<th>Description</th> |
177 |
</tr> |
178 |
<tr> |
179 |
<td CLASS="font10bold"><a href="../phpHtmlLib/Container.html#var$_flags">Container::$_flags</a></td> |
180 |
<td CLASS="font10" STYLE="white-space: nowrap">-> _NEWLINEAFTERCONTENT<-</td> |
181 |
<td CLASS="font10">The flags that tell us</td> |
182 |
</tr> |
183 |
</table> |
184 |
<BR> |
185 |
</TD> |
186 |
</TR> |
187 |
</TABLE> |
188 |
|
189 |
<hr> |
190 |
<!-- =========== METHOD SUMMARY =========== --> |
191 |
<A NAME='method_summary'><!-- --></A> |
192 |
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' Class="border"> |
193 |
<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'> |
194 |
<TD> |
195 |
<span class="font12bold">Method Summary</span> |
196 |
<A HREF="#top" CLASS="links">^TOP</A> |
197 |
</TD> |
198 |
</TR> |
199 |
|
200 |
<!-- =========== Summary =========== --> |
201 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
202 |
<TD> |
203 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#methodXMLDocumentClass'>void constructor XMLDocumentClass ( $root_name, [$dtd = NULL], [$root_attributes = array()] )</A></B></CODE> |
204 |
<BR> |
205 |
<blockquote> The constructor </blockquote> |
206 |
</TD> |
207 |
</TR> |
208 |
<!-- =========== Summary =========== --> |
209 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
210 |
<TD> |
211 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#methodadd'>void add ( )</A></B></CODE> |
212 |
<BR> |
213 |
<blockquote> we override this class to make sure we push all content inside the local _xml_obj tag </blockquote> |
214 |
</TD> |
215 |
</TR> |
216 |
<!-- =========== Summary =========== --> |
217 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
218 |
<TD> |
219 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#methodadd_reference'>void add_reference ( &$content )</A></B></CODE> |
220 |
<BR> |
221 |
<blockquote> we override this class to make sure we push all content inside the local _xml_obj tag </blockquote> |
222 |
</TD> |
223 |
</TR> |
224 |
<!-- =========== Summary =========== --> |
225 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
226 |
<TD> |
227 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#methodadd_xml_stylesheet_link'>void add_xml_stylesheet_link ( $href )</A></B></CODE> |
228 |
<BR> |
229 |
<blockquote> This function is used to add a new xml-stylesheet tag to the top portion of the document. </blockquote> |
230 |
</TD> |
231 |
</TR> |
232 |
<!-- =========== Summary =========== --> |
233 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
234 |
<TD> |
235 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#methoddump_http_header'>void dump_http_header ( )</A></B></CODE> |
236 |
<BR> |
237 |
<blockquote> This function is used to output the http header for this document. </blockquote> |
238 |
</TD> |
239 |
</TR> |
240 |
<!-- =========== Summary =========== --> |
241 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
242 |
<TD> |
243 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#methodget_doctype_source'>string get_doctype_source ( )</A></B></CODE> |
244 |
<BR> |
245 |
<blockquote> This function returns the current DOCTYPE tag's source attribute </blockquote> |
246 |
</TD> |
247 |
</TR> |
248 |
<!-- =========== Summary =========== --> |
249 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
250 |
<TD> |
251 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#methodget_encoding'>string get_encoding ( )</A></B></CODE> |
252 |
<BR> |
253 |
<blockquote> This function gets the current encoding type </blockquote> |
254 |
</TD> |
255 |
</TR> |
256 |
<!-- =========== Summary =========== --> |
257 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
258 |
<TD> |
259 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#methodget_http_content_type'>string get_http_content_type ( )</A></B></CODE> |
260 |
<BR> |
261 |
<blockquote> This function returns the current value of the http header content type </blockquote> |
262 |
</TD> |
263 |
</TR> |
264 |
<!-- =========== Summary =========== --> |
265 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
266 |
<TD> |
267 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#methodget_root_attributes'>array get_root_attributes ( )</A></B></CODE> |
268 |
<BR> |
269 |
<blockquote> This function is used to get the root xml tag's attributes </blockquote> |
270 |
</TD> |
271 |
</TR> |
272 |
<!-- =========== Summary =========== --> |
273 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
274 |
<TD> |
275 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#methodget_root_name'>string get_root_name ( )</A></B></CODE> |
276 |
<BR> |
277 |
<blockquote> This function gets the document name </blockquote> |
278 |
</TD> |
279 |
</TR> |
280 |
<!-- =========== Summary =========== --> |
281 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
282 |
<TD> |
283 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#methodpush'>void push ( )</A></B></CODE> |
284 |
<BR> |
285 |
<blockquote> Same as add(). </blockquote> |
286 |
</TD> |
287 |
</TR> |
288 |
<!-- =========== Summary =========== --> |
289 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
290 |
<TD> |
291 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#methodpush_reference'>void push_reference ( &$content )</A></B></CODE> |
292 |
<BR> |
293 |
<blockquote> Same as add_reference NOTE : only exists for compatibility with 1.1.x </blockquote> |
294 |
</TD> |
295 |
</TR> |
296 |
<!-- =========== Summary =========== --> |
297 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
298 |
<TD> |
299 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#methodrender'>string render ( [$indent_level = 0] )</A></B></CODE> |
300 |
<BR> |
301 |
<blockquote> function that will render the XML Document. </blockquote> |
302 |
</TD> |
303 |
</TR> |
304 |
<!-- =========== Summary =========== --> |
305 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
306 |
<TD> |
307 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#methodreset_content'>void reset_content ( )</A></B></CODE> |
308 |
<BR> |
309 |
<blockquote> we override this class to make sure we push all content inside the local _xml_obj tag </blockquote> |
310 |
</TD> |
311 |
</TR> |
312 |
<!-- =========== Summary =========== --> |
313 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
314 |
<TD> |
315 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#methodset_doctype_link'>void set_doctype_link ( $link )</A></B></CODE> |
316 |
<BR> |
317 |
<blockquote> This method is used to set the link attributes </blockquote> |
318 |
</TD> |
319 |
</TR> |
320 |
<!-- =========== Summary =========== --> |
321 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
322 |
<TD> |
323 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#methodset_doctype_source'>void set_doctype_source ( $source )</A></B></CODE> |
324 |
<BR> |
325 |
<blockquote> this function is used to change the DOCTYPE tag's source attribute. By default it is set to SYSTEM. </blockquote> |
326 |
</TD> |
327 |
</TR> |
328 |
<!-- =========== Summary =========== --> |
329 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
330 |
<TD> |
331 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#methodset_encoding'>void set_encoding ( $charset )</A></B></CODE> |
332 |
<BR> |
333 |
<blockquote> set the character set </blockquote> |
334 |
</TD> |
335 |
</TR> |
336 |
<!-- =========== Summary =========== --> |
337 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
338 |
<TD> |
339 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#methodset_http_content_type'>void set_http_content_type ( [$type = "application/xml"] )</A></B></CODE> |
340 |
<BR> |
341 |
<blockquote> This function is used to set the http header content-type for output to browsers </blockquote> |
342 |
</TD> |
343 |
</TR> |
344 |
<!-- =========== Summary =========== --> |
345 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
346 |
<TD> |
347 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#methodset_root_attribute'>void set_root_attribute ( $name, $value )</A></B></CODE> |
348 |
<BR> |
349 |
<blockquote> This sets 1 root tag attribute value pair </blockquote> |
350 |
</TD> |
351 |
</TR> |
352 |
<!-- =========== Summary =========== --> |
353 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
354 |
<TD> |
355 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#methodset_root_attributes'>void set_root_attributes ( $attributes )</A></B></CODE> |
356 |
<BR> |
357 |
<blockquote> This function is used to set the root xml tag's attributes </blockquote> |
358 |
</TD> |
359 |
</TR> |
360 |
<!-- =========== Summary =========== --> |
361 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
362 |
<TD> |
363 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#methodset_root_name'>void set_root_name ( $root_name )</A></B></CODE> |
364 |
<BR> |
365 |
<blockquote> Set the document name and the root tag's name. </blockquote> |
366 |
</TD> |
367 |
</TR> |
368 |
<!-- =========== Summary =========== --> |
369 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
370 |
<TD> |
371 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#methodshow_character_encoding'>void show_character_encoding ( [$flag = TRUE] )</A></B></CODE> |
372 |
<BR> |
373 |
<blockquote> method to update the flag that lets us know to show/render the character encoding string in the xml tag or not </blockquote> |
374 |
</TD> |
375 |
</TR> |
376 |
<!-- =========== Summary =========== --> |
377 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
378 |
<TD> |
379 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#methodshow_http_header'>void show_http_header ( [$flag = TRUE] )</A></B></CODE> |
380 |
<BR> |
381 |
<blockquote> this function is used to set the flag that tells this class to automatically output the content type in the http header </blockquote> |
382 |
</TD> |
383 |
</TR> |
384 |
<!-- =========== Summary =========== --> |
385 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
386 |
<TD> |
387 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#method_build_doctype'>void _build_doctype ( )</A></B></CODE> |
388 |
<BR> |
389 |
<blockquote> This method builds the DOCTYPE tag for the document </blockquote> |
390 |
</TD> |
391 |
</TR> |
392 |
<!-- =========== Summary =========== --> |
393 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
394 |
<TD> |
395 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#method_build_root_tag'>void _build_root_tag ( )</A></B></CODE> |
396 |
<BR> |
397 |
<blockquote> This function builds the root xml </blockquote> |
398 |
</TD> |
399 |
</TR> |
400 |
<!-- =========== Summary =========== --> |
401 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
402 |
<TD> |
403 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#method_build_xml_stylesheet_container'>void _build_xml_stylesheet_container ( )</A></B></CODE> |
404 |
<BR> |
405 |
<blockquote> This function builds the _xml_stylesheet_container </blockquote> |
406 |
</TD> |
407 |
</TR> |
408 |
<!-- =========== Summary =========== --> |
409 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
410 |
<TD> |
411 |
<CODE><B><A HREF='../phpHtmlLib/XMLDocumentClass.html#method_create_xml_obj'><a href="../phpHtmlLib/XMLtag.html">XMLtag</a> _create_xml_obj ( )</A></B></CODE> |
412 |
<BR> |
413 |
<blockquote> This function builds the local </blockquote> |
414 |
</TD> |
415 |
</TR> |
416 |
</TABLE> |
417 |
<!-- =========== INHERITED METHOD SUMMARY =========== --> |
418 |
<A NAME='functions_inherited'><!-- --></A> |
419 |
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border"> |
420 |
<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'> |
421 |
<TD> |
422 |
<span CLASS="font12bold">Inherited Method Summary</span> |
423 |
<A HREF="#top" CLASS="links">^TOP</A> |
424 |
</TD> |
425 |
</TR> |
426 |
|
427 |
<!-- =========== Summary =========== --> |
428 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
429 |
<TD> |
430 |
<span CLASS="font10bold">Inherited From Class <a href="../phpHtmlLib/Container.html">Container</a></span> |
431 |
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='95%' CLASS="border" ALIGN="center"> |
432 |
<tr CLASS="tableheadingcolor"> |
433 |
<th>Function</th> |
434 |
<th>Description</th> |
435 |
</tr> |
436 |
<tr> |
437 |
<td CLASS="font10bold"><a href="../phpHtmlLib/Container.html#methodContainer">Container::Container()</a></td> |
438 |
<td CLASS="font10">The constructor.</td> |
439 |
<tr> |
440 |
<td CLASS="font10bold"><a href="../phpHtmlLib/Container.html#methodadd">Container::add()</a></td> |
441 |
<td CLASS="font10">add content onto content stack</td> |
442 |
<tr> |
443 |
<td CLASS="font10bold"><a href="../phpHtmlLib/Container.html#methodadd_reference">Container::add_reference()</a></td> |
444 |
<td CLASS="font10">Add content onto content stack so you can change the item later.</td> |
445 |
<tr> |
446 |
<td CLASS="font10bold"><a href="../phpHtmlLib/Container.html#methodcount_content">Container::count_content()</a></td> |
447 |
<td CLASS="font10">counts the number of content objects</td> |
448 |
<tr> |
449 |
<td CLASS="font10bold"><a href="../phpHtmlLib/Container.html#methodget_indent_flag">Container::get_indent_flag()</a></td> |
450 |
<td CLASS="font10">This flag gets the current value of the indent flag</td> |
451 |
<tr> |
452 |
<td CLASS="font10bold"><a href="../phpHtmlLib/Container.html#methodpush">Container::push()</a></td> |
453 |
<td CLASS="font10">Same as add().</td> |
454 |
<tr> |
455 |
<td CLASS="font10bold"><a href="../phpHtmlLib/Container.html#methodpush_reference">Container::push_reference()</a></td> |
456 |
<td CLASS="font10">Same as add_reference NOTE : only exists for compatibility with 1.1.x</td> |
457 |
<tr> |
458 |
<td CLASS="font10bold"><a href="../phpHtmlLib/Container.html#methodrender">Container::render()</a></td> |
459 |
<td CLASS="font10">This function is compatible with the rest of the phpHtmllib API spec.</td> |
460 |
<tr> |
461 |
<td CLASS="font10bold"><a href="../phpHtmlLib/Container.html#methodreset_content">Container::reset_content()</a></td> |
462 |
<td CLASS="font10">destroy existing content and start with new content.</td> |
463 |
<tr> |
464 |
<td CLASS="font10bold"><a href="../phpHtmlLib/Container.html#methodset_collapse">Container::set_collapse()</a></td> |
465 |
<td CLASS="font10">This function turns on the collapse flag</td> |
466 |
<tr> |
467 |
<td CLASS="font10bold"><a href="../phpHtmlLib/Container.html#methodset_indent_flag">Container::set_indent_flag()</a></td> |
468 |
<td CLASS="font10">function to set the indent flag</td> |
469 |
<tr> |
470 |
<td CLASS="font10bold"><a href="../phpHtmlLib/Container.html#method_set_flags">Container::_set_flags()</a></td> |
471 |
<td CLASS="font10">This method is used to set the bitmask flags for this tag. It tells the class how to render the tag.</td> |
472 |
</table> |
473 |
<br> |
474 |
</TD> |
475 |
</TR> |
476 |
</TABLE> |
477 |
<hr> |
478 |
<!-- ============ VARIABLE DETAIL =========== --> |
479 |
|
480 |
<A NAME='variable_detail'></A> |
481 |
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border"> |
482 |
<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'> |
483 |
<TD> |
484 |
<span CLASS="font12bold">Variable Detail</span> |
485 |
<A HREF="#top" CLASS="links">^TOP</A> |
486 |
</TD> |
487 |
</TR> |
488 |
</TABLE> |
489 |
|
490 |
<A NAME='var$dtd'><!-- --></A><H3>$dtd</H3> (line <span class="linenumber">69</span>)<br /> |
491 |
<b>Data type:</b> mixed<br>Holds the url of dtd |
492 |
<br /> |
493 |
|
494 |
<UL> |
495 |
</UL> |
496 |
<HR> |
497 |
<A NAME='var$root_name'><!-- --></A><H3>$root_name</H3> (line <span class="linenumber">76</span>)<br /> |
498 |
<b>Data type:</b> mixed<br>Holds the name of the root xml |
499 |
<br /> |
500 |
<p>element as well as the DOCTYPE document_element attribute</p> |
501 |
<UL> |
502 |
</UL> |
503 |
<HR> |
504 |
<A NAME='var$_doctype_links'><!-- --></A><H3>$_doctype_links</H3> (line <span class="linenumber">105</span>)<br /> |
505 |
<b>Data type:</b> mixed<br>This contains the doctype links |
506 |
<br /> |
507 |
<p>attributes. There can be a maximum of 2 according to the XML spec</p> |
508 |
<UL> |
509 |
</UL> |
510 |
<HR> |
511 |
<A NAME='var$_doctype_source'><!-- --></A><H3>$_doctype_source</H3> (line <span class="linenumber">98</span>)<br /> |
512 |
<b>Data type:</b> string<br>the DOCTYPE source attribute |
513 |
<br /> |
514 |
|
515 |
<UL> |
516 |
</UL> |
517 |
<HR> |
518 |
<A NAME='var$_http_content_type'><!-- --></A><H3>$_http_content_type</H3> (line <span class="linenumber">111</span>)<br /> |
519 |
<b>Data type:</b> mixed<br>The http content-type |
520 |
<br /> |
521 |
|
522 |
<UL> |
523 |
</UL> |
524 |
<HR> |
525 |
<A NAME='var$_root_tag'><!-- --></A><H3>$_root_tag</H3> (line <span class="linenumber">83</span>)<br /> |
526 |
<b>Data type:</b> <a href="../phpHtmlLib/XMLTagClass.html">XMLTagClass</a><br>The root xml tag for all data |
527 |
<br /> |
528 |
|
529 |
<UL> |
530 |
<LI><b>var</b> - <CODE>object</CODE></LI> |
531 |
</UL> |
532 |
<HR> |
533 |
<A NAME='var$_show_char_encoding'><!-- --></A><H3>$_show_char_encoding</H3> (line <span class="linenumber">64</span>)<br /> |
534 |
<b>Data type:</b> boolean<br>this is a hack to show the character encoding or not. |
535 |
<br /> |
536 |
<p>DEFAULT: on</p> |
537 |
<UL> |
538 |
</UL> |
539 |
<HR> |
540 |
<A NAME='var$_show_http_header'><!-- --></A><H3>$_show_http_header</H3> (line <span class="linenumber">55</span>)<br /> |
541 |
<b>Data type:</b> mixed<br>This flag tells if we should output the header content type. |
542 |
<br /> |
543 |
<p>this is usefull for folks using this class for output not destined for a browser.</p> |
544 |
<UL> |
545 |
</UL> |
546 |
<HR> |
547 |
<A NAME='var$_xml_obj'><!-- --></A><H3>$_xml_obj</H3> (line <span class="linenumber">37</span>)<br /> |
548 |
<b>Data type:</b> mixed<br>holds the xml tag object that |
549 |
<br /> |
550 |
<p>all content will be wrapped in</p> |
551 |
<UL> |
552 |
</UL> |
553 |
<HR> |
554 |
<A NAME='var$_xml_stylesheet_container'><!-- --></A><H3>$_xml_stylesheet_container</H3> (line <span class="linenumber">119</span>)<br /> |
555 |
<b>Data type:</b> object<br>The container for all the xml-stylesheet tags |
556 |
<br /> |
557 |
|
558 |
<UL> |
559 |
</UL> |
560 |
<HR> |
561 |
<hr> |
562 |
<!-- ============ METHOD DETAIL =========== --> |
563 |
|
564 |
<A NAME='method_detail'></A> |
565 |
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border"> |
566 |
<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'> |
567 |
<TD> |
568 |
<span class="font12bold">Method Detail</span> |
569 |
<A HREF="#top" CLASS="links">^TOP</A> |
570 |
</TD> |
571 |
</TR> |
572 |
</TABLE> |
573 |
<BR> |
574 |
<DIV CLASS="function"> |
575 |
<A NAME='methodXMLDocumentClass'><!-- --></A> |
576 |
<SPAN CLASS="font12bold">Constructor XMLDocumentClass</SPAN> (line <span class="linenumber">130</span>) |
577 |
<BR> |
578 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
579 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
580 |
<span class="font10bold" style="color: #0000FF">XMLDocumentClass( |
581 |
string |
582 |
$root_name, [string |
583 |
$dtd = NULL], [array |
584 |
$root_attributes = array()])</SPAN> |
585 |
<BR> |
586 |
|
587 |
<BR> |
588 |
<SPAN CLASS="font10bold">Description : </SPAN> |
589 |
The constructor |
590 |
<br /> |
591 |
|
592 |
<DL> |
593 |
<DT class="font10bold">Function Parameters:</DT> |
594 |
<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">$root_name</SPAN></SPAN> - the root xml tag's name</DD> |
595 |
<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">$dtd</SPAN></SPAN> - the link path to the DTD (if any)</DD> |
596 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">array</SPAN> <span style="color: #0000FF;font-weight:bold">$root_attributes</SPAN></SPAN> - the root tag's attributes</DD> |
597 |
|
598 |
<DT class="font10bold">Function Info:</DT> |
599 |
</DL> |
600 |
</DIV> |
601 |
<BR> |
602 |
<DIV CLASS="function"> |
603 |
<A NAME='methodadd'><!-- --></A> |
604 |
<SPAN CLASS="font12bold">add</SPAN> (line <span class="linenumber">194</span>) |
605 |
<BR> |
606 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
607 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
608 |
<span class="font10bold" style="color: #0000FF">add( |
609 |
mixed |
610 |
$content)</SPAN> |
611 |
<BR> |
612 |
|
613 |
<span class="font10bold" style="padding-left: 10px;">Overrides :</span> <a href="../phpHtmlLib/Container.html#methodadd">Container::add()</a> add content onto content stack |
614 |
<BR> |
615 |
<SPAN CLASS="font10bold">Description : </SPAN> |
616 |
we override this class to make sure we push all content inside the local _xml_obj tag |
617 |
<br /> |
618 |
<p>push content onto content stack 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> |
619 |
<DL> |
620 |
<DT class="font10bold">Function Parameters:</DT> |
621 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">mixed</SPAN> <span style="color: #0000FF;font-weight:bold">$content</SPAN></SPAN> - either string, or tag object.</DD> |
622 |
|
623 |
<DT class="font10bold">Function Info:</DT> |
624 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>access</b> - public</DD> |
625 |
</DL> |
626 |
</DIV> |
627 |
<BR> |
628 |
<DIV CLASS="function"> |
629 |
<A NAME='methodadd_reference'><!-- --></A> |
630 |
<SPAN CLASS="font12bold">add_reference</SPAN> (line <span class="linenumber">236</span>) |
631 |
<BR> |
632 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
633 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
634 |
<span class="font10bold" style="color: #0000FF">add_reference( |
635 |
mixed |
636 |
&$content, mixed |
637 |
$content)</SPAN> |
638 |
<BR> |
639 |
|
640 |
<span class="font10bold" style="padding-left: 10px;">Overrides :</span> <a href="../phpHtmlLib/Container.html#methodadd_reference">Container::add_reference()</a> Add content onto content stack so you can change the item later. |
641 |
<BR> |
642 |
<SPAN CLASS="font10bold">Description : </SPAN> |
643 |
we override this class to make sure we push all content inside the local _xml_obj tag |
644 |
<br /> |
645 |
<p>push content onto content stack 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> |
646 |
<DL> |
647 |
<DT class="font10bold">Function Parameters:</DT> |
648 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">mixed</SPAN> <span style="color: #0000FF;font-weight:bold">$content</SPAN></SPAN> - 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.</DD> |
649 |
|
650 |
<DT class="font10bold">Function Info:</DT> |
651 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>access</b> - public</DD> |
652 |
</DL> |
653 |
</DIV> |
654 |
<BR> |
655 |
<DIV CLASS="function"> |
656 |
<A NAME='methodadd_xml_stylesheet_link'><!-- --></A> |
657 |
<SPAN CLASS="font12bold">add_xml_stylesheet_link</SPAN> (line <span class="linenumber">266</span>) |
658 |
<BR> |
659 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
660 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
661 |
<span class="font10bold" style="color: #0000FF">add_xml_stylesheet_link( |
662 |
string |
663 |
$href)</SPAN> |
664 |
<BR> |
665 |
|
666 |
<BR> |
667 |
<SPAN CLASS="font10bold">Description : </SPAN> |
668 |
This function is used to add a new xml-stylesheet tag to the top portion of the document. |
669 |
<br /> |
670 |
<p>This will automatically get added after the xml tag and before the <!DOCTYPE > tag</p> |
671 |
<DL> |
672 |
<DT class="font10bold">Function Parameters:</DT> |
673 |
<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">$href</SPAN></SPAN> - the href for the stylesheet link</DD> |
674 |
|
675 |
<DT class="font10bold">Function Info:</DT> |
676 |
</DL> |
677 |
</DIV> |
678 |
<BR> |
679 |
<DIV CLASS="function"> |
680 |
<A NAME='methoddump_http_header'><!-- --></A> |
681 |
<SPAN CLASS="font12bold">dump_http_header</SPAN> (line <span class="linenumber">444</span>) |
682 |
<BR> |
683 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
684 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
685 |
<span class="font10bold" style="color: #0000FF">dump_http_header( |
686 |
)</SPAN> |
687 |
<BR> |
688 |
|
689 |
<BR> |
690 |
<SPAN CLASS="font10bold">Description : </SPAN> |
691 |
This function is used to output the http header for this document. |
692 |
<br /> |
693 |
<p>It makes a call to php's Header() to set the Content-type</p> |
694 |
<DL> |
695 |
|
696 |
<DT class="font10bold">Function Info:</DT> |
697 |
</DL> |
698 |
</DIV> |
699 |
<BR> |
700 |
<DIV CLASS="function"> |
701 |
<A NAME='methodget_doctype_source'><!-- --></A> |
702 |
<SPAN CLASS="font12bold">get_doctype_source</SPAN> (line <span class="linenumber">480</span>) |
703 |
<BR> |
704 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
705 |
<span class="font10bold" style="color: #FF0000">string</SPAN> |
706 |
<span class="font10bold" style="color: #0000FF">get_doctype_source( |
707 |
)</SPAN> |
708 |
<BR> |
709 |
|
710 |
<BR> |
711 |
<SPAN CLASS="font10bold">Description : </SPAN> |
712 |
This function returns the current DOCTYPE tag's source attribute |
713 |
<br /> |
714 |
|
715 |
<DL> |
716 |
|
717 |
<DT class="font10bold">Function Info:</DT> |
718 |
</DL> |
719 |
</DIV> |
720 |
<BR> |
721 |
<DIV CLASS="function"> |
722 |
<A NAME='methodget_encoding'><!-- --></A> |
723 |
<SPAN CLASS="font12bold">get_encoding</SPAN> (line <span class="linenumber">330</span>) |
724 |
<BR> |
725 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
726 |
<span class="font10bold" style="color: #FF0000">string</SPAN> |
727 |
<span class="font10bold" style="color: #0000FF">get_encoding( |
728 |
)</SPAN> |
729 |
<BR> |
730 |
|
731 |
<BR> |
732 |
<SPAN CLASS="font10bold">Description : </SPAN> |
733 |
This function gets the current encoding type |
734 |
<br /> |
735 |
|
736 |
<DL> |
737 |
|
738 |
<DT class="font10bold">Function Info:</DT> |
739 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - - the current encoding type for the xml</DD> |
740 |
</DL> |
741 |
</DIV> |
742 |
<BR> |
743 |
<DIV CLASS="function"> |
744 |
<A NAME='methodget_http_content_type'><!-- --></A> |
745 |
<SPAN CLASS="font12bold">get_http_content_type</SPAN> (line <span class="linenumber">433</span>) |
746 |
<BR> |
747 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
748 |
<span class="font10bold" style="color: #FF0000">string</SPAN> |
749 |
<span class="font10bold" style="color: #0000FF">get_http_content_type( |
750 |
)</SPAN> |
751 |
<BR> |
752 |
|
753 |
<BR> |
754 |
<SPAN CLASS="font10bold">Description : </SPAN> |
755 |
This function returns the current value of the http header content type |
756 |
<br /> |
757 |
|
758 |
<DL> |
759 |
|
760 |
<DT class="font10bold">Function Info:</DT> |
761 |
</DL> |
762 |
</DIV> |
763 |
<BR> |
764 |
<DIV CLASS="function"> |
765 |
<A NAME='methodget_root_attributes'><!-- --></A> |
766 |
<SPAN CLASS="font12bold">get_root_attributes</SPAN> (line <span class="linenumber">380</span>) |
767 |
<BR> |
768 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
769 |
<span class="font10bold" style="color: #FF0000">array</SPAN> |
770 |
<span class="font10bold" style="color: #0000FF">get_root_attributes( |
771 |
)</SPAN> |
772 |
<BR> |
773 |
|
774 |
<BR> |
775 |
<SPAN CLASS="font10bold">Description : </SPAN> |
776 |
This function is used to get the root xml tag's attributes |
777 |
<br /> |
778 |
|
779 |
<DL> |
780 |
|
781 |
<DT class="font10bold">Function Info:</DT> |
782 |
</DL> |
783 |
</DIV> |
784 |
<BR> |
785 |
<DIV CLASS="function"> |
786 |
<A NAME='methodget_root_name'><!-- --></A> |
787 |
<SPAN CLASS="font12bold">get_root_name</SPAN> (line <span class="linenumber">350</span>) |
788 |
<BR> |
789 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
790 |
<span class="font10bold" style="color: #FF0000">string</SPAN> |
791 |
<span class="font10bold" style="color: #0000FF">get_root_name( |
792 |
)</SPAN> |
793 |
<BR> |
794 |
|
795 |
<BR> |
796 |
<SPAN CLASS="font10bold">Description : </SPAN> |
797 |
This function gets the document name |
798 |
<br /> |
799 |
|
800 |
<DL> |
801 |
|
802 |
<DT class="font10bold">Function Info:</DT> |
803 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - - the current document name for the xml</DD> |
804 |
</DL> |
805 |
</DIV> |
806 |
<BR> |
807 |
<DIV CLASS="function"> |
808 |
<A NAME='methodpush'><!-- --></A> |
809 |
<SPAN CLASS="font12bold">push</SPAN> (line <span class="linenumber">213</span>) |
810 |
<BR> |
811 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
812 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
813 |
<span class="font10bold" style="color: #0000FF">push( |
814 |
mixed |
815 |
$content)</SPAN> |
816 |
<BR> |
817 |
|
818 |
<span class="font10bold" style="padding-left: 10px;">Overrides :</span> <a href="../phpHtmlLib/Container.html#methodpush">Container::push()</a> Same as add(). |
819 |
<BR> |
820 |
<SPAN CLASS="font10bold">Description : </SPAN> |
821 |
Same as add(). |
822 |
<br /> |
823 |
<p>NOTE: only exists for 1.1.x compatibility</p> |
824 |
<DL> |
825 |
<DT class="font10bold">Function Parameters:</DT> |
826 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">mixed</SPAN> <span style="color: #0000FF;font-weight:bold">$content</SPAN></SPAN> - either string, or tag object.</DD> |
827 |
|
828 |
<DT class="font10bold">Function Info:</DT> |
829 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>access</b> - public</DD> |
830 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>deprecated</b> - </DD> |
831 |
</DL> |
832 |
</DIV> |
833 |
<BR> |
834 |
<DIV CLASS="function"> |
835 |
<A NAME='methodpush_reference'><!-- --></A> |
836 |
<SPAN CLASS="font12bold">push_reference</SPAN> (line <span class="linenumber">252</span>) |
837 |
<BR> |
838 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
839 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
840 |
<span class="font10bold" style="color: #0000FF">push_reference( |
841 |
mixed |
842 |
&$content)</SPAN> |
843 |
<BR> |
844 |
|
845 |
<span class="font10bold" style="padding-left: 10px;">Overrides :</span> <a href="../phpHtmlLib/Container.html#methodpush_reference">Container::push_reference()</a> Same as add_reference NOTE : only exists for compatibility with 1.1.x |
846 |
<BR> |
847 |
<SPAN CLASS="font10bold">Description : </SPAN> |
848 |
Same as add_reference NOTE : only exists for compatibility with 1.1.x |
849 |
<br /> |
850 |
|
851 |
<DL> |
852 |
<DT class="font10bold">Function Parameters:</DT> |
853 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">mixed</SPAN> <span style="color: #0000FF;font-weight:bold">&$content</SPAN></SPAN> - a reference to some variable.</DD> |
854 |
|
855 |
<DT class="font10bold">Function Info:</DT> |
856 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>access</b> - public</DD> |
857 |
</DL> |
858 |
</DIV> |
859 |
<BR> |
860 |
<DIV CLASS="function"> |
861 |
<A NAME='methodrender'><!-- --></A> |
862 |
<SPAN CLASS="font12bold">render</SPAN> (line <span class="linenumber">149</span>) |
863 |
<BR> |
864 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
865 |
<span class="font10bold" style="color: #FF0000">string</SPAN> |
866 |
<span class="font10bold" style="color: #0000FF">render( |
867 |
int |
868 |
$indent_level, int |
869 |
1)</SPAN> |
870 |
<BR> |
871 |
|
872 |
<span class="font10bold" style="padding-left: 10px;">Overrides :</span> <a href="../phpHtmlLib/Container.html#methodrender">Container::render()</a> This function is compatible with the rest of the phpHtmllib API spec. |
873 |
<BR> |
874 |
<SPAN CLASS="font10bold">Description : </SPAN> |
875 |
function that will render the XML Document. |
876 |
<br /> |
877 |
|
878 |
<DL> |
879 |
<DT class="font10bold">Function Parameters:</DT> |
880 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">int</SPAN> <span style="color: #0000FF;font-weight:bold">1</SPAN></SPAN> - the output debug flag to maintain compatibility w/ the API.</DD> |
881 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">int</SPAN> <span style="color: #0000FF;font-weight:bold">$indent_level</SPAN></SPAN> - the indentation level for the container.</DD> |
882 |
|
883 |
<DT class="font10bold">Function Info:</DT> |
884 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - the raw html output.</DD> |
885 |
</DL> |
886 |
</DIV> |
887 |
<BR> |
888 |
<DIV CLASS="function"> |
889 |
<A NAME='methodreset_content'><!-- --></A> |
890 |
<SPAN CLASS="font12bold">reset_content</SPAN> (line <span class="linenumber">288</span>) |
891 |
<BR> |
892 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
893 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
894 |
<span class="font10bold" style="color: #0000FF">reset_content( |
895 |
mixed |
896 |
$content)</SPAN> |
897 |
<BR> |
898 |
|
899 |
<span class="font10bold" style="padding-left: 10px;">Overrides :</span> <a href="../phpHtmlLib/Container.html#methodreset_content">Container::reset_content()</a> destroy existing content and start with new content. |
900 |
<BR> |
901 |
<SPAN CLASS="font10bold">Description : </SPAN> |
902 |
we override this class to make sure we push all content inside the local _xml_obj tag |
903 |
<br /> |
904 |
<p>destroy existing content and start with new content.</p> |
905 |
<DL> |
906 |
<DT class="font10bold">Function Parameters:</DT> |
907 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">mixed</SPAN> <span style="color: #0000FF;font-weight:bold">$content</SPAN></SPAN> can be tag object, or raw (string).</DD> |
908 |
|
909 |
<DT class="font10bold">Function Info:</DT> |
910 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>access</b> - public</DD> |
911 |
</DL> |
912 |
</DIV> |
913 |
<BR> |
914 |
<DIV CLASS="function"> |
915 |
<A NAME='methodset_doctype_link'><!-- --></A> |
916 |
<SPAN CLASS="font12bold">set_doctype_link</SPAN> (line <span class="linenumber">389</span>) |
917 |
<BR> |
918 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
919 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
920 |
<span class="font10bold" style="color: #0000FF">set_doctype_link( |
921 |
mixed |
922 |
$link)</SPAN> |
923 |
<BR> |
924 |
|
925 |
<BR> |
926 |
<SPAN CLASS="font10bold">Description : </SPAN> |
927 |
This method is used to set the link attributes |
928 |
<br /> |
929 |
<p>for the DOCTYPE tag</p> |
930 |
<DL> |
931 |
|
932 |
<DT class="font10bold">Function Info:</DT> |
933 |
</DL> |
934 |
</DIV> |
935 |
<BR> |
936 |
<DIV CLASS="function"> |
937 |
<A NAME='methodset_doctype_source'><!-- --></A> |
938 |
<SPAN CLASS="font12bold">set_doctype_source</SPAN> (line <span class="linenumber">461</span>) |
939 |
<BR> |
940 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
941 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
942 |
<span class="font10bold" style="color: #0000FF">set_doctype_source( |
943 |
string |
944 |
$source)</SPAN> |
945 |
<BR> |
946 |
|
947 |
<BR> |
948 |
<SPAN CLASS="font10bold">Description : </SPAN> |
949 |
this function is used to change the DOCTYPE tag's source attribute. By default it is set to SYSTEM. |
950 |
<br /> |
951 |
<p>(ie <!DOCTYPE html SYSTEM > ) ^^^^^^</p><p>NOTE: only 2 valid values 'SYSTEM', 'PUBLIC'</p> |
952 |
<DL> |
953 |
<DT class="font10bold">Function Parameters:</DT> |
954 |
<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">$source</SPAN></SPAN> - the new source attribute</DD> |
955 |
|
956 |
<DT class="font10bold">Function Info:</DT> |
957 |
</DL> |
958 |
</DIV> |
959 |
<BR> |
960 |
<DIV CLASS="function"> |
961 |
<A NAME='methodset_encoding'><!-- --></A> |
962 |
<SPAN CLASS="font12bold">set_encoding</SPAN> (line <span class="linenumber">320</span>) |
963 |
<BR> |
964 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
965 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
966 |
<span class="font10bold" style="color: #0000FF">set_encoding( |
967 |
string |
968 |
$charset)</SPAN> |
969 |
<BR> |
970 |
|
971 |
<BR> |
972 |
<SPAN CLASS="font10bold">Description : </SPAN> |
973 |
set the character set |
974 |
<br /> |
975 |
|
976 |
<DL> |
977 |
<DT class="font10bold">Function Parameters:</DT> |
978 |
<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">$charset</SPAN></SPAN> - the charset for the meta tag</DD> |
979 |
|
980 |
<DT class="font10bold">Function Info:</DT> |
981 |
</DL> |
982 |
</DIV> |
983 |
<BR> |
984 |
<DIV CLASS="function"> |
985 |
<A NAME='methodset_http_content_type'><!-- --></A> |
986 |
<SPAN CLASS="font12bold">set_http_content_type</SPAN> (line <span class="linenumber">423</span>) |
987 |
<BR> |
988 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
989 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
990 |
<span class="font10bold" style="color: #0000FF">set_http_content_type( |
991 |
[string |
992 |
$type = "application/xml"])</SPAN> |
993 |
<BR> |
994 |
|
995 |
<BR> |
996 |
<SPAN CLASS="font10bold">Description : </SPAN> |
997 |
This function is used to set the http header content-type for output to browsers |
998 |
<br /> |
999 |
|
1000 |
<DL> |
1001 |
<DT class="font10bold">Function Parameters:</DT> |
1002 |
<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">$type</SPAN></SPAN> </DD> |
1003 |
|
1004 |
<DT class="font10bold">Function Info:</DT> |
1005 |
</DL> |
1006 |
</DIV> |
1007 |
<BR> |
1008 |
<DIV CLASS="function"> |
1009 |
<A NAME='methodset_root_attribute'><!-- --></A> |
1010 |
<SPAN CLASS="font12bold">set_root_attribute</SPAN> (line <span class="linenumber">370</span>) |
1011 |
<BR> |
1012 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
1013 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
1014 |
<span class="font10bold" style="color: #0000FF">set_root_attribute( |
1015 |
string |
1016 |
$name, string |
1017 |
$value)</SPAN> |
1018 |
<BR> |
1019 |
|
1020 |
<BR> |
1021 |
<SPAN CLASS="font10bold">Description : </SPAN> |
1022 |
This sets 1 root tag attribute value pair |
1023 |
<br /> |
1024 |
|
1025 |
<DL> |
1026 |
<DT class="font10bold">Function Parameters:</DT> |
1027 |
<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">$name</SPAN></SPAN> - the attribute name</DD> |
1028 |
<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 attribute value</DD> |
1029 |
|
1030 |
<DT class="font10bold">Function Info:</DT> |
1031 |
</DL> |
1032 |
</DIV> |
1033 |
<BR> |
1034 |
<DIV CLASS="function"> |
1035 |
<A NAME='methodset_root_attributes'><!-- --></A> |
1036 |
<SPAN CLASS="font12bold">set_root_attributes</SPAN> (line <span class="linenumber">360</span>) |
1037 |
<BR> |
1038 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
1039 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
1040 |
<span class="font10bold" style="color: #0000FF">set_root_attributes( |
1041 |
array |
1042 |
$attributes)</SPAN> |
1043 |
<BR> |
1044 |
|
1045 |
<BR> |
1046 |
<SPAN CLASS="font10bold">Description : </SPAN> |
1047 |
This function is used to set the root xml tag's attributes |
1048 |
<br /> |
1049 |
|
1050 |
<DL> |
1051 |
<DT class="font10bold">Function Parameters:</DT> |
1052 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">array</SPAN> <span style="color: #0000FF;font-weight:bold">$attributes</SPAN></SPAN> </DD> |
1053 |
|
1054 |
<DT class="font10bold">Function Info:</DT> |
1055 |
</DL> |
1056 |
</DIV> |
1057 |
<BR> |
1058 |
<DIV CLASS="function"> |
1059 |
<A NAME='methodset_root_name'><!-- --></A> |
1060 |
<SPAN CLASS="font12bold">set_root_name</SPAN> (line <span class="linenumber">340</span>) |
1061 |
<BR> |
1062 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
1063 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
1064 |
<span class="font10bold" style="color: #0000FF">set_root_name( |
1065 |
mixed |
1066 |
$root_name, string |
1067 |
$doc_name)</SPAN> |
1068 |
<BR> |
1069 |
|
1070 |
<BR> |
1071 |
<SPAN CLASS="font10bold">Description : </SPAN> |
1072 |
Set the document name and the root tag's name. |
1073 |
<br /> |
1074 |
|
1075 |
<DL> |
1076 |
<DT class="font10bold">Function Parameters:</DT> |
1077 |
<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">$doc_name</SPAN></SPAN> </DD> |
1078 |
|
1079 |
<DT class="font10bold">Function Info:</DT> |
1080 |
</DL> |
1081 |
</DIV> |
1082 |
<BR> |
1083 |
<DIV CLASS="function"> |
1084 |
<A NAME='methodshow_character_encoding'><!-- --></A> |
1085 |
<SPAN CLASS="font12bold">show_character_encoding</SPAN> (line <span class="linenumber">402</span>) |
1086 |
<BR> |
1087 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
1088 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
1089 |
<span class="font10bold" style="color: #0000FF">show_character_encoding( |
1090 |
[boolean |
1091 |
$flag = TRUE])</SPAN> |
1092 |
<BR> |
1093 |
|
1094 |
<BR> |
1095 |
<SPAN CLASS="font10bold">Description : </SPAN> |
1096 |
method to update the flag that lets us know to show/render the character encoding string in the xml tag or not |
1097 |
<br /> |
1098 |
|
1099 |
<DL> |
1100 |
<DT class="font10bold">Function Parameters:</DT> |
1101 |
<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">$flag</SPAN></SPAN> </DD> |
1102 |
|
1103 |
<DT class="font10bold">Function Info:</DT> |
1104 |
</DL> |
1105 |
</DIV> |
1106 |
<BR> |
1107 |
<DIV CLASS="function"> |
1108 |
<A NAME='methodshow_http_header'><!-- --></A> |
1109 |
<SPAN CLASS="font12bold">show_http_header</SPAN> (line <span class="linenumber">413</span>) |
1110 |
<BR> |
1111 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
1112 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
1113 |
<span class="font10bold" style="color: #0000FF">show_http_header( |
1114 |
[boolean |
1115 |
$flag = TRUE])</SPAN> |
1116 |
<BR> |
1117 |
|
1118 |
<BR> |
1119 |
<SPAN CLASS="font10bold">Description : </SPAN> |
1120 |
this function is used to set the flag that tells this class to automatically output the content type in the http header |
1121 |
<br /> |
1122 |
|
1123 |
<DL> |
1124 |
<DT class="font10bold">Function Parameters:</DT> |
1125 |
<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">$flag</SPAN></SPAN> </DD> |
1126 |
|
1127 |
<DT class="font10bold">Function Info:</DT> |
1128 |
</DL> |
1129 |
</DIV> |
1130 |
<BR> |
1131 |
<DIV CLASS="function"> |
1132 |
<A NAME='method_build_doctype'><!-- --></A> |
1133 |
<SPAN CLASS="font12bold">_build_doctype</SPAN> (line <span class="linenumber">489</span>) |
1134 |
<BR> |
1135 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
1136 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
1137 |
<span class="font10bold" style="color: #0000FF">_build_doctype( |
1138 |
)</SPAN> |
1139 |
<BR> |
1140 |
|
1141 |
<BR> |
1142 |
<SPAN CLASS="font10bold">Description : </SPAN> |
1143 |
This method builds the DOCTYPE tag for the document |
1144 |
<br /> |
1145 |
|
1146 |
<DL> |
1147 |
|
1148 |
<DT class="font10bold">Function Info:</DT> |
1149 |
</DL> |
1150 |
</DIV> |
1151 |
<BR> |
1152 |
<DIV CLASS="function"> |
1153 |
<A NAME='method_build_root_tag'><!-- --></A> |
1154 |
<SPAN CLASS="font12bold">_build_root_tag</SPAN> (line <span class="linenumber">311</span>) |
1155 |
<BR> |
1156 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
1157 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
1158 |
<span class="font10bold" style="color: #0000FF">_build_root_tag( |
1159 |
)</SPAN> |
1160 |
<BR> |
1161 |
|
1162 |
<BR> |
1163 |
<SPAN CLASS="font10bold">Description : </SPAN> |
1164 |
This function builds the root xml |
1165 |
<br /> |
1166 |
<p>tag that will contain all of the Document's xml tags</p> |
1167 |
<DL> |
1168 |
|
1169 |
<DT class="font10bold">Function Info:</DT> |
1170 |
</DL> |
1171 |
</DIV> |
1172 |
<BR> |
1173 |
<DIV CLASS="function"> |
1174 |
<A NAME='method_build_xml_stylesheet_container'><!-- --></A> |
1175 |
<SPAN CLASS="font12bold">_build_xml_stylesheet_container</SPAN> (line <span class="linenumber">274</span>) |
1176 |
<BR> |
1177 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
1178 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
1179 |
<span class="font10bold" style="color: #0000FF">_build_xml_stylesheet_container( |
1180 |
)</SPAN> |
1181 |
<BR> |
1182 |
|
1183 |
<BR> |
1184 |
<SPAN CLASS="font10bold">Description : </SPAN> |
1185 |
This function builds the _xml_stylesheet_container |
1186 |
<br /> |
1187 |
|
1188 |
<DL> |
1189 |
|
1190 |
<DT class="font10bold">Function Info:</DT> |
1191 |
</DL> |
1192 |
</DIV> |
1193 |
<BR> |
1194 |
<DIV CLASS="function"> |
1195 |
<A NAME='method_create_xml_obj'><!-- --></A> |
1196 |
<SPAN CLASS="font12bold">_create_xml_obj</SPAN> (line <span class="linenumber">301</span>) |
1197 |
<BR> |
1198 |
<SPAN CLASS="font10bold">Usage : </SPAN> |
1199 |
<span class="font10bold" style="color: #FF0000"><a href="../phpHtmlLib/XMLtag.html">XMLtag</a></SPAN> |
1200 |
<span class="font10bold" style="color: #0000FF">_create_xml_obj( |
1201 |
)</SPAN> |
1202 |
<BR> |
1203 |
|
1204 |
<BR> |
1205 |
<SPAN CLASS="font10bold">Description : </SPAN> |
1206 |
This function builds the local |
1207 |
<br /> |
1208 |
<p>xml container object that holds all xml tags that are pushed into this class</p> |
1209 |
<DL> |
1210 |
|
1211 |
<DT class="font10bold">Function Info:</DT> |
1212 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - object</DD> |
1213 |
</DL> |
1214 |
</DIV> |
1215 |
<BR> |
1216 |
<div id="credit"> |
1217 |
<hr> |
1218 |
Documention generated on Thu, 20 Feb 2003 16:24:01 -0800 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.2.0rc1</a> |
1219 |
</div> |
1220 |
</body> |
1221 |
</html> |