source: www/manuals/PHP_manual/function.xml-set-default-handler.html@ 1

Last change on this file since 1 was 1, checked in by george, 17 years ago

Prvotní import všeho

File size: 4.1 KB
Line 
1<HTML
2><HEAD
3><TITLE
4>xml_set_default_handler</TITLE
5><META
6NAME="GENERATOR"
7CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
8REL="HOME"
9TITLE="Manuál PHP"
10HREF="index.html"><LINK
11REL="UP"
12TITLE="XML parser functions"
13HREF="ref.xml.html"><LINK
14REL="PREVIOUS"
15TITLE="xml_set_character_data_handler"
16HREF="function.xml-set-character-data-handler.html"><LINK
17REL="NEXT"
18TITLE="xml_set_element_handler"
19HREF="function.xml-set-element-handler.html"><META
20HTTP-EQUIV="Content-type"
21CONTENT="text/html; charset=ISO-8859-2"></HEAD
22><BODY
23CLASS="refentry"
24BGCOLOR="#FFFFFF"
25TEXT="#000000"
26LINK="#0000FF"
27VLINK="#840084"
28ALINK="#0000FF"
29><DIV
30CLASS="NAVHEADER"
31><TABLE
32SUMMARY="Header navigation table"
33WIDTH="100%"
34BORDER="0"
35CELLPADDING="0"
36CELLSPACING="0"
37><TR
38><TH
39COLSPAN="3"
40ALIGN="center"
41>Manuál PHP</TH
42></TR
43><TR
44><TD
45WIDTH="10%"
46ALIGN="left"
47VALIGN="bottom"
48><A
49HREF="function.xml-set-character-data-handler.html"
50ACCESSKEY="P"
51>Pøedcházející</A
52></TD
53><TD
54WIDTH="80%"
55ALIGN="center"
56VALIGN="bottom"
57></TD
58><TD
59WIDTH="10%"
60ALIGN="right"
61VALIGN="bottom"
62><A
63HREF="function.xml-set-element-handler.html"
64ACCESSKEY="N"
65>Dal¹í</A
66></TD
67></TR
68></TABLE
69><HR
70ALIGN="LEFT"
71WIDTH="100%"></DIV
72><H1
73><A
74NAME="function.xml-set-default-handler"
75></A
76>xml_set_default_handler</H1
77><DIV
78CLASS="refnamediv"
79><A
80NAME="AEN88086"
81></A
82><P
83> (PHP 3&#62;= 3.0.6, PHP 4 )</P
84>xml_set_default_handler&nbsp;--&nbsp;set up default handler</DIV
85><DIV
86CLASS="refsect1"
87><A
88NAME="AEN88089"
89></A
90><H2
91>Description</H2
92>bool <B
93CLASS="methodname"
94>xml_set_default_handler</B
95> ( resource parser, string handler)<BR
96></BR
97><P
98>&#13; Sets the default handler function for the XML parser
99 <TT
100CLASS="parameter"
101><I
102>parser</I
103></TT
104>. <TT
105CLASS="parameter"
106><I
107>handler</I
108></TT
109> is a
110 string containing the name of a function that must exist when
111 <A
112HREF="function.xml-parse.html"
113><B
114CLASS="function"
115>xml_parse()</B
116></A
117> is called for
118 <TT
119CLASS="parameter"
120><I
121>parser</I
122></TT
123>.
124 </P
125><P
126>&#13; The function named by <TT
127CLASS="parameter"
128><I
129>handler</I
130></TT
131> must accept
132 two parameters:
133 <B
134CLASS="methodname"
135><TT
136CLASS="replaceable"
137><I
138>handler</I
139></TT
140></B
141> ( resource parser, string data)<BR
142></BR
143>
144 <P
145></P
146><DIV
147CLASS="variablelist"
148><DL
149><DT
150><TT
151CLASS="parameter"
152><I
153>parser</I
154></TT
155></DT
156><DD
157><P
158>&#13; The first parameter, <TT
159CLASS="replaceable"
160><I
161>parser</I
162></TT
163>, is a
164 reference to the XML parser calling the handler.
165 </P
166></DD
167><DT
168><TT
169CLASS="parameter"
170><I
171>data</I
172></TT
173></DT
174><DD
175><P
176>&#13; The second parameter, <TT
177CLASS="parameter"
178><I
179>data</I
180></TT
181>, contains
182 the character data. This may be the XML declaration,
183 document type declaration, entities or other data for which
184 no other handler exists.
185 </P
186></DD
187></DL
188></DIV
189>
190 </P
191><P
192>&#13; If a handler function is set to an empty string, or <TT
193CLASS="constant"
194><B
195>FALSE</B
196></TT
197>, the handler
198 in question is disabled.
199 </P
200><P
201>&#13; <TT
202CLASS="constant"
203><B
204>TRUE</B
205></TT
206> is returned if the handler is set up, <TT
207CLASS="constant"
208><B
209>FALSE</B
210></TT
211> if
212 <TT
213CLASS="parameter"
214><I
215>parser</I
216></TT
217> is not a parser.
218 </P
219><DIV
220CLASS="note"
221><BLOCKQUOTE
222CLASS="note"
223><P
224><B
225>Poznámka: </B
226>Místo názvu funkce mù¾e pou¾ito
227pole obsahující odkaz na objekt a název metody.</P
228></BLOCKQUOTE
229></DIV
230></DIV
231><DIV
232CLASS="NAVFOOTER"
233><HR
234ALIGN="LEFT"
235WIDTH="100%"><TABLE
236SUMMARY="Footer navigation table"
237WIDTH="100%"
238BORDER="0"
239CELLPADDING="0"
240CELLSPACING="0"
241><TR
242><TD
243WIDTH="33%"
244ALIGN="left"
245VALIGN="top"
246><A
247HREF="function.xml-set-character-data-handler.html"
248ACCESSKEY="P"
249>Pøedcházející</A
250></TD
251><TD
252WIDTH="34%"
253ALIGN="center"
254VALIGN="top"
255><A
256HREF="index.html"
257ACCESSKEY="H"
258>Domù</A
259></TD
260><TD
261WIDTH="33%"
262ALIGN="right"
263VALIGN="top"
264><A
265HREF="function.xml-set-element-handler.html"
266ACCESSKEY="N"
267>Dal¹í</A
268></TD
269></TR
270><TR
271><TD
272WIDTH="33%"
273ALIGN="left"
274VALIGN="top"
275>xml_set_character_data_handler</TD
276><TD
277WIDTH="34%"
278ALIGN="center"
279VALIGN="top"
280><A
281HREF="ref.xml.html"
282ACCESSKEY="U"
283>Nahoru</A
284></TD
285><TD
286WIDTH="33%"
287ALIGN="right"
288VALIGN="top"
289>xml_set_element_handler</TD
290></TR
291></TABLE
292></DIV
293></BODY
294></HTML
295>
Note: See TracBrowser for help on using the repository browser.