From e53b217e3803e35fe5c60546b105287a9e2d1e4d Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 25 Apr 2006 20:38:54 +0000 Subject: [PATCH] Document yaz_es_result, yaz_es git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@211987 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/yaz/functions/yaz-es-result.xml | 28 ++++- reference/yaz/functions/yaz-es.xml | 146 ++++++++++++++++++++++ 2 files changed, 172 insertions(+), 2 deletions(-) create mode 100644 reference/yaz/functions/yaz-es.xml diff --git a/reference/yaz/functions/yaz-es-result.xml b/reference/yaz/functions/yaz-es-result.xml index 8c71efefa6..50d512532b 100755 --- a/reference/yaz/functions/yaz-es-result.xml +++ b/reference/yaz/functions/yaz-es-result.xml @@ -1,5 +1,5 @@ - + yaz_es_result @@ -14,7 +14,12 @@ resourceid - &warn.undocumented.func; + + This function inspects the last returned Extended Service + result from a server. An Extended Service is initiated + by either yaz_item_order or + yaz_es. + @@ -32,6 +37,25 @@ + + + &reftitle.returnvalues; + + Returns array with element targetReference + for the reference for the extended service operation (generated + and returned from the server). + + + + + &reftitle.seealso; + + + yaz_es + + + + + + + yaz_es + + Prepares for an Extended Service Request + + + + &reftitle.description; + + voidyes_es + + resourceid + + + stringtype + + + arrayargs + + + + This function prepares for an Extended Service Request. + Extended Services is family of various Z39.50 facilities, such + as Record Update, Item Order, Database administation etc. + + + + Many Z39.50 Servers do not support Extended Services. + + + + The yes_es creates an Extended Service Reuqest + packages and puts it into a queue of operations. + Use yaz_wait to send the request(s) to the server. + After completion of yaz_wait the result of + the Extended Service operation should be expected with + a call to yaz_es_result. + + + + &reftitle.parameters; + + + + id + + + The connection resource returned by yaz_connect. + + + + + type + + + A string which represents the type of the Extended Service: + itemorder (Item Order), + create (Create Database), + drop (Drop Database), + commit (Commit Operation), + update (Update Record), + xmlupdate (XML Update). + Each type is specified in the following section. + + + + + + args + + + 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 Extended Services. + + + + + + + + + + &reftitle.returnvalues; + + &return.void; + + + + + &reftitle.examples; + + Record Update + + "some title", + "syntax" => "xml", + "action" => "specialUpdate" +); +yaz_es($con, "update", $args); +yaz_wait(); +$result = yaz_es_result($id); +?> +]]> + + + + + + &reftitle.seealso; + + + yaz_es_result + + + + + + +