Documentation for yaz_database.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@43452 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Adam Dickmeiss 2001-03-13 17:08:09 +00:00
parent 5c1f8a5852
commit 510ef4e605

View file

@ -164,8 +164,7 @@ if (empty($term) || count($host) == 0) {
<refnamediv>
<refname>yaz_connect</refname>
<refpurpose>
Prepares for a connection and Z-association with a target.
Returns a positive association ID on success; zero on failure
Prepares for a connection and Z-association to a Z39.50 target.
</refpurpose>
</refnamediv>
<refsect1>
@ -181,6 +180,10 @@ if (empty($term) || count($host) == 0) {
</paramdef>
</funcprototype>
</funcsynopsis>
<para>
This function returns a positive ID on success; zero on
failure.
</para>
<para>
<function>Yaz_connect</function> prepares for a connection to a
Z39.50 target. The zurl argument takes the form
@ -210,8 +213,8 @@ if (empty($term) || count($host) == 0) {
Returns error for target (last request). A positive value is
returned if the target returned a diagnostic code; a value of
zero is returned if no errors occurred (success); negative value
is returned for other errors targets didn't indicate the error in
question.
is returned for other errors (such as when the target
closed connection, etc).
</para>
<para>
<function>yaz_errno</function> should be called after network
@ -231,7 +234,7 @@ if (empty($term) || count($host) == 0) {
<title>Description</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>yaz_error</function></funcdef>
<funcdef>string <function>yaz_error</function></funcdef>
<paramdef>int <parameter>id</parameter></paramdef>
</funcprototype>
</funcsynopsis>
@ -296,6 +299,38 @@ if (empty($term) || count($host) == 0) {
</refsect1>
</refentry>
<refentry id="function.yaz-database">
<refnamediv>
<refname>yaz_database</refname>
<refpurpose>
Specifies the databases within a session
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>yaz_database</function></funcdef>
<paramdef>int <parameter>id</parameter></paramdef>
<paramdef>string <parameter>databases</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<para>
This function specifies one or more databases to be used in search,
retrieval, etc. - overriding databases specified in call to
<function>yaz_connect</function>. Multiple databases are
separated by a plus sign <literal>+</literal>.
</para>
<para>
This function allows you to use different sets of databases within
a session.
</para>
<para>
Returns true on success; false on error.
</para>
</refsect1>
</refentry>
<refentry id="function.yaz-range">
<refnamediv>
<refname>yaz_range</refname>