function.yaz-es.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 159 行
HTML
159 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Prepares for an Extended Service Request</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.yaz-es-result.html">yaz_es_result</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.yaz-get-option.html">yaz_get_option</a></div> <div class="up"><a href="ref.yaz.html">YAZ Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.yaz-es" class="refentry"> <div class="refnamediv"> <h1 class="refname">yaz_es</h1> <p class="verinfo">(PECL yaz:0.9-1.0.9)</p><p class="refpurpose"><span class="refname">yaz_es</span> — <span class="dc-title"> Prepares for an Extended Service Request </span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type"><span class="type void">void</span></span> <span class="methodname"><b><b>yaz_es</b></b></span> ( <span class="methodparam"> <span class="type">resource</span> <tt class="parameter">$id</tt> </span> , <span class="methodparam"> <span class="type">string</span> <tt class="parameter">$type</tt> </span> , <span class="methodparam"> <span class="type">array</span> <tt class="parameter">$args</tt> </span> )</div> <p class="para rdfs-comment"> 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> <blockquote><p><b class="note">Note</b>: Many Z39.50 Servers do not support Extended Services. <br /> </p></blockquote> <p class="para"> The <b>yaz_es()</b> creates an Extended Service Request packages and puts it into a queue of operations. Use <a href="function.yaz-wait.html" class="function">yaz_wait()</a> to send the request(s) to the server. After completion of <a href="function.yaz-wait.html" class="function">yaz_wait()</a> the result of the Extended Service operation should be expected with a call to <a href="function.yaz-es-result.html" class="function">yaz_es_result()</a>. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">id</tt></i></span> <dd> <p class="para"> The connection resource returned by <a href="function.yaz-connect.html" class="function">yaz_connect()</a>. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">type</tt></i></span> <dd> <p class="para"> A string which represents the type of the Extended Service: <i>itemorder</i> (Item Order), <i>create</i> (Create Database), <i>drop</i> (Drop Database), <i>commit</i> (Commit Operation), <i>update</i> (Update Record), <i>xmlupdate</i> (XML Update). Each type is specified in the following section. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">args</tt></i></span> <dd> <p class="para"> 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" class="link external">» Extended Services</a>. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> No value is returned. </p> </div> <div class="refsect1 examples"> <h3 class="title">Examples</h3> <div class="example"> <p><b>Example #1 Record Update</b></p> <div class="example-contents"><div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB"><?php<br />$con </span><span style="color: #007700">= </span><span style="color: #0000BB">yaz_connect</span><span style="color: #007700">(</span><span style="color: #DD0000">"myhost/database"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$args </span><span style="color: #007700">= array (<br /> </span><span style="color: #DD0000">"record" </span><span style="color: #007700">=> </span><span style="color: #DD0000">"<gils><title>some title</title></gils>"</span><span style="color: #007700">,<br /> </span><span style="color: #DD0000">"syntax" </span><span style="color: #007700">=> </span><span style="color: #DD0000">"xml"</span><span style="color: #007700">,<br /> </span><span style="color: #DD0000">"action" </span><span style="color: #007700">=> </span><span style="color: #DD0000">"specialUpdate"<br /></span><span style="color: #007700">);<br /></span><span style="color: #0000BB">yaz_es</span><span style="color: #007700">(</span><span style="color: #0000BB">$con</span><span style="color: #007700">, </span><span style="color: #DD0000">"update"</span><span style="color: #007700">, </span><span style="color: #0000BB">$args</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">yaz_wait</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$result </span><span style="color: #007700">= </span><span style="color: #0000BB">yaz_es_result</span><span style="color: #007700">(</span><span style="color: #0000BB">$id</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?></span></span></code></div> </div> </div> </div> <div class="refsect1 seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"><a href="function.yaz-es-result.html" class="function" rel="rdfs-seeAlso">yaz_es_result()</a></li> </ul> </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.yaz-es-result.html">yaz_es_result</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.yaz-get-option.html">yaz_get_option</a></div> <div class="up"><a href="ref.yaz.html">YAZ Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?