<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >yaz_es</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="YAZ Functions" HREF="ref.yaz.html"><LINK REL="PREVIOUS" TITLE="yaz_es_result" HREF="function.yaz-es-result.html"><LINK REL="NEXT" TITLE="yaz_get_option" HREF="function.yaz-get-option.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.yaz-es-result.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.yaz-get-option.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.yaz-es" ></A >yaz_es</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN241126" ></A ><P > (PECL)</P >yaz_es -- Prepares for an Extended Service Request </DIV ><DIV CLASS="refsect1" ><A NAME="AEN241129" ></A ><H2 >Descrição</H2 >void <B CLASS="methodname" >yaz_es</B > ( resource id, string type, array args )<BR ></BR ><P > This function prepares for an Extended Service Request. Extended Services is family of various Z39.50 facilities, such as Record Update, Item Order, Database administration etc. </P ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Nota: </B > Many Z39.50 Servers do not support Extended Services. </P ></BLOCKQUOTE ></DIV ><P > The <B CLASS="function" >yaz_es()</B > creates an Extended Service Request packages and puts it into a queue of operations. Use <A HREF="function.yaz-wait.html" ><B CLASS="function" >yaz_wait()</B ></A > to send the request(s) to the server. After completion of <A HREF="function.yaz-wait.html" ><B CLASS="function" >yaz_wait()</B ></A > the result of the Extended Service operation should be expected with a call to <A HREF="function.yaz-es-result.html" ><B CLASS="function" >yaz_es_result()</B ></A >. </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN241151" ></A ><H2 >Parâmetros</H2 ><P > <P ></P ><DIV CLASS="variablelist" ><DL ><DT ><CODE CLASS="parameter" >id</CODE ></DT ><DD ><P > The connection resource returned by <A HREF="function.yaz-connect.html" ><B CLASS="function" >yaz_connect()</B ></A >. </P ></DD ><DT ><CODE CLASS="parameter" >type</CODE ></DT ><DD ><P > A string which represents the type of the Extended Service: <TT CLASS="literal" >itemorder</TT > (Item Order), <TT CLASS="literal" >create</TT > (Create Database), <TT CLASS="literal" >drop</TT > (Drop Database), <TT CLASS="literal" >commit</TT > (Commit Operation), <TT CLASS="literal" >update</TT > (Update Record), <TT CLASS="literal" >xmlupdate</TT > (XML Update). Each type is specified in the following section. </P ></DD ><DT ><CODE CLASS="parameter" >args</CODE ></DT ><DD ><P > An array with extended service options plus package specific options. The options are identical to those offered in the C API of ZOOM C. Refer to the ZOOM <A HREF="http://www.indexdata.dk/yaz/doc/zoom.tkl" TARGET="_top" >Extended Services</A >. </P ></DD ></DL ></DIV > </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN241178" ></A ><H2 >Valores de retornado</H2 ><P > Não há valor retornado. </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN241181" ></A ><H2 >Exemplos</H2 ><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="EXAMPLE" ><TR ><TD ><DIV CLASS="example" ><A NAME="AEN241183" ></A ><P ><B >Exemplo 1. Record Update</B ></P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><code><font color="#000000"> <font color="#0000BB"><?php<br />$con </font><font color="#007700">= </font><font color="#0000BB">yaz_connect</font><font color="#007700">(</font><font color="#DD0000">"myhost/database"</font><font color="#007700">);<br /></font><font color="#0000BB">$args </font><font color="#007700">= array (<br /> </font><font color="#DD0000">"record" </font><font color="#007700">=> </font><font color="#DD0000">"<gils><title>some title</title></gils>"</font><font color="#007700">,<br /> </font><font color="#DD0000">"syntax" </font><font color="#007700">=> </font><font color="#DD0000">"xml"</font><font color="#007700">,<br /> </font><font color="#DD0000">"action" </font><font color="#007700">=> </font><font color="#DD0000">"specialUpdate"<br /></font><font color="#007700">);<br /></font><font color="#0000BB">yaz_es</font><font color="#007700">(</font><font color="#0000BB">$con</font><font color="#007700">, </font><font color="#DD0000">"update"</font><font color="#007700">, </font><font color="#0000BB">$args</font><font color="#007700">);<br /></font><font color="#0000BB">yaz_wait</font><font color="#007700">();<br /></font><font color="#0000BB">$result </font><font color="#007700">= </font><font color="#0000BB">yaz_es_result</font><font color="#007700">(</font><font color="#0000BB">$id</font><font color="#007700">);<br /></font><font color="#0000BB">?></font> </font> </code></TD ></TR ></TABLE ></DIV ></TD ></TR ></TABLE ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN241186" ></A ><H2 >Veja também</H2 ><P > <P ></P ><TABLE BORDER="0" ><TBODY ><TR ><TD ><A HREF="function.yaz-es-result.html" ><B CLASS="function" >yaz_es_result()</B ></A ></TD ></TR ></TBODY ></TABLE ><P ></P > </P ></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.yaz-es-result.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.yaz-get-option.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >yaz_es_result</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.yaz.html" ACCESSKEY="U" >Acima</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >yaz_get_option</TD ></TR ></TABLE ></DIV ></BODY ></HTML >