Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > by-pkgid > 703d980c580707c382b4e43e25965bc5 > files > 5095

php-manual-pt_BR-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>xml_set_notation_decl_handler</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="Manual do PHP"
HREF="index.html"><LINK
REL="UP"
TITLE="XML, Analisadores"
HREF="ref.xml.html"><LINK
REL="PREVIOUS"
TITLE="xml_set_external_entity_ref_handler"
HREF="function.xml-set-external-entity-ref-handler.html"><LINK
REL="NEXT"
TITLE="xml_set_object"
HREF="function.xml-set-object.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Manual do PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.xml-set-external-entity-ref-handler.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.xml-set-object.html"
ACCESSKEY="N"
>Próxima</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.xml-set-notation-decl-handler"
></A
>xml_set_notation_decl_handler</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN234790"
></A
><P
>    (PHP 3 &#62;= 3.0.6, PHP 4, PHP 5)</P
>xml_set_notation_decl_handler&nbsp;--&nbsp;Set up notation declaration handler</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN234793"
></A
><H2
>Description</H2
>bool <B
CLASS="methodname"
>xml_set_notation_decl_handler</B
> ( resource parser, callback handler )<BR
></BR
><P
>&#13;   Sets the notation declaration handler function for the XML parser
   <CODE
CLASS="parameter"
>parser</CODE
>.<CODE
CLASS="parameter"
>handler</CODE
> is
   a string containing the name of a function that must exist when
   <A
HREF="function.xml-parse.html"
><B
CLASS="function"
>xml_parse()</B
></A
> is called for
   <CODE
CLASS="parameter"
>parser</CODE
>.
  </P
><P
>&#13;   A notation declaration is part of the document's DTD and has the
   following format:    
   <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="xml"
>&#60;!NOTATION &#60;parameter&#62;name&#60;/parameter&#62;
{ &#60;parameter&#62;systemId&#60;/parameter&#62; | &#60;parameter&#62;publicId&#60;/parameter&#62;?&#62;</PRE
></TD
></TR
></TABLE
>
   See <A
HREF="http://www.w3.org/TR/1998/REC-xml-19980210#Notations"
TARGET="_top"
>section 4.7 of the XML 1.0
   spec</A
> for the definition of notation declarations.
  </P
><P
>&#13;   The function named by <CODE
CLASS="parameter"
>handler</CODE
> must accept
   five parameters:
   <B
CLASS="methodname"
><TT
CLASS="replaceable"
><I
>handler</I
></TT
></B
> ( resource parser, string notation_name, string base, string system_id, string public_id )<BR
></BR
>
   <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><CODE
CLASS="parameter"
>parser</CODE
></DT
><DD
><P
>&#13;       The first parameter, <TT
CLASS="replaceable"
><I
>parser</I
></TT
>, is a
       reference to the XML parser calling the handler.
      </P
></DD
><DT
><CODE
CLASS="parameter"
>notation_name</CODE
></DT
><DD
><P
>&#13;       This is the notation's <CODE
CLASS="parameter"
>name</CODE
>, as per
       the notation format described above.
      </P
></DD
><DT
><CODE
CLASS="parameter"
>base</CODE
></DT
><DD
><P
>&#13;       This is the base for resolving the system identifier
         (<CODE
CLASS="parameter"
>system_id</CODE
>) of the notation declaration.
       Currently this parameter will always be set to an empty string.
      </P
></DD
><DT
><CODE
CLASS="parameter"
>system_id</CODE
></DT
><DD
><P
>&#13;       System identifier of the external notation declaration.
      </P
></DD
><DT
><CODE
CLASS="parameter"
>public_id</CODE
></DT
><DD
><P
>&#13;       Public identifier of the external notation declaration.
      </P
></DD
></DL
></DIV
>
  </P
><P
>&#13;   If a handler function is set to an empty string, or <TT
CLASS="constant"
><B
>FALSE</B
></TT
>, the handler
   in question is disabled.
  </P
><P
>&#13;   <TT
CLASS="constant"
><B
>TRUE</B
></TT
> is returned if the handler is set up, <TT
CLASS="constant"
><B
>FALSE</B
></TT
> if
   <CODE
CLASS="parameter"
>parser</CODE
> is not a parser.
  </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Nota: </B
>Ao invés de um nome de função, um
 array contendo uma referência de objeto e ao nome de método também podem ser
 fornecidos.</P
></BLOCKQUOTE
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.xml-set-external-entity-ref-handler.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Principal</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.xml-set-object.html"
ACCESSKEY="N"
>Próxima</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>xml_set_external_entity_ref_handler</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.xml.html"
ACCESSKEY="U"
>Acima</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>xml_set_object</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>