cvs: phpdoc /en/reference/ibase/functions ibase-add-user.xml ibase-affected-rows.xml ibase-backup.xml ibase-blob-add.xml ibase-blob-cancel.xml
ibase-blob-close.xml ibase-blob-create.xml ibase-blob-echo.xml ibase-blob-get.xml ibase-blob-import.xml ibase-blob-info.xml ibase-blob-open.xml
ibase-close.xml ibase-commit-ret.xml ibase-commit.xml ibase-connect.xml ibase-db-info.xml ibase-delete-user.xml ibase-drop-db.xml ibase-errcode.xml
ibase-errmsg.xml ibase-execute.xml ibase-fetch-assoc.xml ibase-fetch-object.xml ibase-fetch-row.xml ibase-field-info.xml ibase-free-event-handler.xml
ibase-free-query.xml ibase-free-result.xml ibase-gen-id.xml ibase-maintain-db.xml ibase-modify-user.xml ibase-name-result.xml ibase-num-fields.xml
ibase-num-params.xml ibase-param-info.xml ibase-pconnect.xml ibase-prepare.xml ibase-query.xml ibase-restore.xml ibase-rollback-ret.xml
ibase-rollback.xml ibase-server-info.xml ibase-service-attach.xml ibase-service-detach.xml ibase-set-event-handl! er.xml ibase-timefmt.xml
ibase-trans.xml ibase-wait-event.xml
| From: | Mehdi Achour | Date: | Sat, 16 Jun 2007 21:54:21 +0000 |
| Subject: | cvs: phpdoc /en/reference/ibase/functions ibase-add-user.xml ibase-affected-rows.xml ibase-backup.xml ibase-blob-add.xml ibase-blob-cancel.xml ibase-blob-close.xml ibase-blob-create.xml ibase-blob-echo.xml ibase-blob-get.xml ibase-blob-import.xml ibase-blob-info.xml ibase-blob-open.xml ibase-close.xml ibase-commit-ret.xml ibase-commit.xml ibase-connect.xml ibase-db-info.xml ibase-delete-user.xml ibase-drop-db.xml ibase-errcode.xml ibase-errmsg.xml ibase-execute.xml ibase-fetch-assoc.xml ibase-fetch-object.xml ibase-fetch-row.xml ibase-field-info.xml ibase-free-event-handler.xml ibase-free-query.xml ibase-free-result.xml ibase-gen-id.xml ibase-maintain-db.xml ibase-modify-user.xml ibase-name-result.xml ibase-num-fields.xml ibase-num-params.xml ibase-param-info.xml ibase-pconnect.xml ibase-prepare.xml ibase-query.xml ibase-restore.xml ibase-rollback-ret.xml ibase-rollback.xml ibase-server-info.xml ibase-service-attach.xml ibase-service-detach.xml ibase-set-event-handl! er.xml ibase-timefmt.xml ibase-trans.xml ibase-wait-event.xml |
||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969376730@lists.php.net to get a copy of this message | ||
didou Sat Jun 16 21:54:21 2007 UTC
Modified files:
/phpdoc/en/reference/ibase/functions ibase-add-user.xml
ibase-affected-rows.xml
ibase-backup.xml
ibase-blob-add.xml
ibase-blob-cancel.xml
ibase-blob-close.xml
ibase-blob-create.xml
ibase-blob-echo.xml
ibase-blob-get.xml
ibase-blob-import.xml
ibase-blob-info.xml
ibase-blob-open.xml
ibase-close.xml
ibase-commit-ret.xml
ibase-commit.xml
ibase-connect.xml
ibase-db-info.xml
ibase-delete-user.xml
ibase-drop-db.xml
ibase-errcode.xml
ibase-errmsg.xml
ibase-execute.xml
ibase-fetch-assoc.xml
ibase-fetch-object.xml
ibase-fetch-row.xml
ibase-field-info.xml
ibase-free-event-handler.xml
ibase-free-query.xml
ibase-free-result.xml
ibase-gen-id.xml
ibase-maintain-db.xml
ibase-modify-user.xml
ibase-name-result.xml
ibase-num-fields.xml
ibase-num-params.xml
ibase-param-info.xml
ibase-pconnect.xml
ibase-prepare.xml
ibase-query.xml
ibase-restore.xml
ibase-rollback-ret.xml
ibase-rollback.xml
ibase-server-info.xml
ibase-service-attach.xml
ibase-service-detach.xml
ibase-set-event-handler.xml
ibase-timefmt.xml
ibase-trans.xml
ibase-wait-event.xml
Log:
ref.ibase: new doc style
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-add-user.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-add-user.xml diff -u phpdoc/en/reference/ibase/functions/ibase-add-user.xml:1.4 phpdoc/en/reference/ibase/functions/ibase-add-user.xml:1.5 --- phpdoc/en/reference/ibase/functions/ibase-add-user.xml:1.4 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-add-user.xml Sat Jun 16 21:54:20 2007 @@ -1,12 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="function.ibase-add-user"> <refnamediv> <refname>ibase_add_user</refname> <refpurpose>Add a user to a security database (only for IB6 or later)</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_add_user</methodname> <methodparam><type>resource</type><parameter>service_handle</parameter></methodparam> @@ -16,7 +17,6 @@ <methodparam choice="opt"><type>string</type><parameter>middle_name</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>last_name</parameter></methodparam> </methodsynopsis> - <para> PHP 4 uses <parameter>server</parameter>, <parameter>dba_user_name</parameter> and @@ -24,13 +24,25 @@ <parameter>service_handle</parameter> parameter. </para> &warn.undocumented.func; + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_modify_user</function> and - <function>ibase_delete_user</function>. + &return.success; </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_modify_user</function></member> + <member><function>ibase_delete_user</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-affected-rows.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-affected-rows.xml diff -u phpdoc/en/reference/ibase/functions/ibase-affected-rows.xml:1.4 phpdoc/en/reference/ibase/functions/ibase-affected-rows.xml:1.5 --- phpdoc/en/reference/ibase/functions/ibase-affected-rows.xml:1.4 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-affected-rows.xml Sat Jun 16 21:54:20 2007 @@ -1,29 +1,58 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="function.ibase-affected-rows"> <refnamediv> <refname>ibase_affected_rows</refname> <refpurpose>Return the number of rows that were affected by the previous query</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>int</type><methodname>ibase_affected_rows</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> This function returns the number of rows that were affected by the - previous query (INSERT, UPDATE or DELETE) that was - executed from within the transaction context specified by <parameter>link_identifier</parameter>. - If <parameter>link_identifier</parameter> is a connection resource, its default transaction - is used. + previous query (INSERT, UPDATE or DELETE) that was executed from within + the specified transaction context. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>link_identifier</parameter></term> + <listitem> + <para> + A transaction context. If <parameter>link_identifier</parameter> is a + connection resource, its default transaction is used. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_query</function> and - <function>ibase_execute</function>. + Returns the number of rows as an integer. </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_query</function></member> + <member><function>ibase_execute</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-backup.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-backup.xml diff -u phpdoc/en/reference/ibase/functions/ibase-backup.xml:1.2 phpdoc/en/reference/ibase/functions/ibase-backup.xml:1.3 --- phpdoc/en/reference/ibase/functions/ibase-backup.xml:1.2 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-backup.xml Sat Jun 16 21:54:20 2007 @@ -1,12 +1,13 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.ibase-backup"> <refnamediv> <refname>ibase_backup</refname> <refpurpose>Initiates a backup task in the service manager and returns immediately</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>mixed</type><methodname>ibase_backup</methodname> <methodparam><type>resource</type><parameter>service_handle</parameter></methodparam> @@ -19,6 +20,7 @@ &warn.undocumented.func; </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-blob-add.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-blob-add.xml diff -u phpdoc/en/reference/ibase/functions/ibase-blob-add.xml:1.6 phpdoc/en/reference/ibase/functions/ibase-blob-add.xml:1.7 --- phpdoc/en/reference/ibase/functions/ibase-blob-add.xml:1.6 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-blob-add.xml Sat Jun 16 21:54:20 2007 @@ -1,31 +1,67 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.39 --> +<!-- $Revision: 1.7 $ --> <refentry id='function.ibase-blob-add'> <refnamediv> <refname>ibase_blob_add</refname> <refpurpose>Add data into a newly created blob</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>void</type><methodname>ibase_blob_add</methodname> <methodparam><type>resource</type><parameter>blob_handle</parameter></methodparam> <methodparam><type>string</type><parameter>data</parameter></methodparam> </methodsynopsis> <para> - <function>ibase_blob_add</function> adds data into a blob - created with <function>ibase_blob_create</function>. - Returns &null; on success or &false; on failure. + <function>ibase_blob_add</function> adds data into a blob created with + <function>ibase_blob_create</function>. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>blob_handle</parameter></term> + <listitem> + <para> + A blob handle opened with <function>ibase_blob_create</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>data</parameter></term> + <listitem> + <para> + The data to be added. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_blob_cancel</function>, - <function>ibase_blob_close</function>, - <function>ibase_blob_create</function> and - <function>ibase_blob_import</function>. + &return.void; </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_blob_cancel</function></member> + <member><function>ibase_blob_close</function></member> + <member><function>ibase_blob_create</function></member> + <member><function>ibase_blob_import</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-blob-cancel.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-blob-cancel.xml diff -u phpdoc/en/reference/ibase/functions/ibase-blob-cancel.xml:1.5 phpdoc/en/reference/ibase/functions/ibase-blob-cancel.xml:1.6 --- phpdoc/en/reference/ibase/functions/ibase-blob-cancel.xml:1.5 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-blob-cancel.xml Sat Jun 16 21:54:20 2007 @@ -1,29 +1,57 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.39 --> +<!-- $Revision: 1.6 $ --> <refentry id='function.ibase-blob-cancel'> <refnamediv> <refname>ibase_blob_cancel</refname> <refpurpose>Cancel creating blob</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_blob_cancel</methodname> <methodparam><type>resource</type><parameter>blob_handle</parameter></methodparam> </methodsynopsis> <para> - This function will discard a BLOB created by <function>ibase_create_blob</function> - if it has not yet been closed by <function>ibase_blob_close</function>. + This function will discard a BLOB if it has not yet been closed by + <function>ibase_blob_close</function>. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>blob_handle</parameter></term> + <listitem> + <para> + A BLOB handle opened with <function>ibase_create_blob</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> &return.success; </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also - <function>ibase_blob_close</function>, - <function>ibase_blob_create</function> and - <function>ibase_blob_import</function>. + <simplelist> + <member><function>ibase_blob_close</function></member> + <member><function>ibase_blob_create</function></member> + <member><function>ibase_blob_import</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-blob-close.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-blob-close.xml diff -u phpdoc/en/reference/ibase/functions/ibase-blob-close.xml:1.5 phpdoc/en/reference/ibase/functions/ibase-blob-close.xml:1.6 --- phpdoc/en/reference/ibase/functions/ibase-blob-close.xml:1.5 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-blob-close.xml Sat Jun 16 21:54:20 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.39 --> +<!-- $Revision: 1.6 $ --> <refentry id='function.ibase-blob-close'> <refnamediv> <refname>ibase_blob_close</refname> <refpurpose>Close blob</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>mixed</type><methodname>ibase_blob_close</methodname> <methodparam><type>resource</type><parameter>blob_handle</parameter></methodparam> @@ -15,17 +15,47 @@ <para> This function closes a BLOB that has either been opened for reading by <function>ibase_open_blob</function> or has been opened for writing by - <function>ibase_create_blob</function>. If the BLOB was being read, this function - returns &true; on success, if the BLOB was being written to, this function - returns a string containing the BLOB id that has been assigned to it by the database. - On failure, this function returns &false;. + <function>ibase_create_blob</function>. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>blob_handle</parameter></term> + <listitem> + <para> + A BLOB handle opened with <function>ibase_create_blob</function> or + <function>ibase_open_blob</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_blob_cancel</function> and - <function>ibase_blob_open</function>. + If the BLOB was being read, this function returns &true; on success, if + the BLOB was being written to, this function returns a string containing + the BLOB id that has been assigned to it by the database. On failure, this + function returns &false;. </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_blob_cancel</function></member> + <member><function>ibase_blob_open</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-blob-create.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-blob-create.xml diff -u phpdoc/en/reference/ibase/functions/ibase-blob-create.xml:1.5 phpdoc/en/reference/ibase/functions/ibase-blob-create.xml:1.6 --- phpdoc/en/reference/ibase/functions/ibase-blob-create.xml:1.5 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-blob-create.xml Sat Jun 16 21:54:20 2007 @@ -1,30 +1,60 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.39 --> +<!-- $Revision: 1.6 $ --> <refentry id='function.ibase-blob-create'> <refnamediv> <refname>ibase_blob_create</refname> <refpurpose>Create a new blob for adding data</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>resource</type><methodname>ibase_blob_create</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> - <function>ibase_blob_create</function> creates a new BLOB for - filling with data. It returns a BLOB handle for later use with + <function>ibase_blob_create</function> creates a new BLOB for filling with + data. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>link_identifier</parameter></term> + <listitem> + <para> + An InterBase link identifier. If omitted, the last opened link is + assumed. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns a BLOB handle for later use with <function>ibase_blob_add</function> or &false; on failure. </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also - <function>ibase_blob_add</function>, - <function>ibase_blob_cancel</function>, - <function>ibase_blob_close</function> and - <function>ibase_blob_import</function>. + <simplelist> + <member><function>ibase_blob_add</function></member> + <member><function>ibase_blob_cancel</function></member> + <member><function>ibase_blob_close</function></member> + <member><function>ibase_blob_import</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-blob-echo.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-blob-echo.xml diff -u phpdoc/en/reference/ibase/functions/ibase-blob-echo.xml:1.6 phpdoc/en/reference/ibase/functions/ibase-blob-echo.xml:1.7 --- phpdoc/en/reference/ibase/functions/ibase-blob-echo.xml:1.6 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-blob-echo.xml Sat Jun 16 21:54:20 2007 @@ -1,34 +1,66 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.39 --> +<!-- $Revision: 1.7 $ --> <refentry id='function.ibase-blob-echo'> <refnamediv> <refname>ibase_blob_echo</refname> <refpurpose>Output blob contents to browser</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>bool</type><methodname>ibase_blob_echo</methodname> - <methodparam><type>resource</type><parameter>link_identifier</parameter></methodparam> - <methodparam><type>string</type><parameter>blob_id</parameter></methodparam> - </methodsynopsis> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_blob_echo</methodname> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> <methodparam><type>string</type><parameter>blob_id</parameter></methodparam> </methodsynopsis> <para> - This function opens a BLOB for reading and sends its contents directly - to standard output (the browser, in most cases). + This function opens a BLOB for reading and sends its contents directly to + standard output (the browser, in most cases). + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>link_identifier</parameter></term> + <listitem> + <para> + An InterBase link identifier. If omitted, the last opened link is + assumed. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>blob_id</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> &return.success; </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also - <function>ibase_blob_open</function>, - <function>ibase_blob_close</function> and - <function>ibase_blob_get</function>. + <simplelist> + <member><function>ibase_blob_open</function></member> + <member><function>ibase_blob_close</function></member> + <member><function>ibase_blob_get</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-blob-get.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-blob-get.xml diff -u phpdoc/en/reference/ibase/functions/ibase-blob-get.xml:1.6 phpdoc/en/reference/ibase/functions/ibase-blob-get.xml:1.7 --- phpdoc/en/reference/ibase/functions/ibase-blob-get.xml:1.6 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-blob-get.xml Sat Jun 16 21:54:20 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.41 --> +<!-- $Revision: 1.7 $ --> <refentry id='function.ibase-blob-get'> <refnamediv> <refname>ibase_blob_get</refname> <refpurpose>Get len bytes data from open blob</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>string</type><methodname>ibase_blob_get</methodname> <methodparam><type>resource</type><parameter>blob_handle</parameter></methodparam> @@ -16,23 +16,6 @@ <para> This function returns at most <parameter>len</parameter> bytes from a BLOB that has been opened for reading by <function>ibase_blob_open</function>. - Returns &false; on failure. - <informalexample> - <programlisting role="php"> -<![CDATA[ -<?php - $sql = "SELECT blob_value FROM table"; - $result = ibase_query($sql); - $data = ibase_fetch_object($result); - $blob_data = ibase_blob_info($data->BLOB_VALUE); - $blob_hndl = ibase_blob_open($data->BLOB_VALUE); - echo ibase_blob_get($blob_hndl, $blob_data[0]); -?> -]]> - </programlisting> - </informalexample> - Whilst this example doesn't do much more than a 'ibase_blob_echo($data->BLOB_VALUE)' would do, - it does show you how to get information into a $variable to manipulate as you please. </para> <note> <para> @@ -40,13 +23,74 @@ by <function>ibase_blob_create</function>. </para> </note> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; <para> - See also - <function>ibase_blob_open</function>, - <function>ibase_blob_close</function> and - <function>ibase_blob_echo</function>. + <variablelist> + <varlistentry> + <term><parameter>blob_handle</parameter></term> + <listitem> + <para> + A BLOB handle opened with <function>ibase_blob_open</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>len</parameter></term> + <listitem> + <para> + Size of returned data. + </para> + </listitem> + </varlistentry> + </variablelist> </para> </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns at most <parameter>len</parameter> bytes from the BLOB, or &false; + on failure. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>ibase_blob_get</function> example</title> + <programlisting role="php"> +<![CDATA[ +<?php +$result = ibase_query("SELECT blob_value FROM table"); +$data = ibase_fetch_object($result); +$blob_data = ibase_blob_info($data->BLOB_VALUE); +$blob_hndl = ibase_blob_open($data->BLOB_VALUE); +echo ibase_blob_get($blob_hndl, $blob_data[0]); +?> +]]> + </programlisting> + </example> + Whilst this example doesn't do much more than a + 'ibase_blob_echo($data->BLOB_VALUE)' would do, it does show you how to get + information into a $variable to manipulate as you please. + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_blob_open</function></member> + <member><function>ibase_blob_close</function></member> + <member><function>ibase_blob_echo</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-blob-import.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-blob-import.xml diff -u phpdoc/en/reference/ibase/functions/ibase-blob-import.xml:1.8 phpdoc/en/reference/ibase/functions/ibase-blob-import.xml:1.9 --- phpdoc/en/reference/ibase/functions/ibase-blob-import.xml:1.8 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-blob-import.xml Sat Jun 16 21:54:20 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.39 --> +<!-- $Revision: 1.9 $ --> <refentry id='function.ibase-blob-import'> <refnamediv> <refname>ibase_blob_import</refname> <refpurpose>Create blob, copy file in it, and close it</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>string</type><methodname>ibase_blob_import</methodname> <methodparam><type>resource</type><parameter>link_identifier</parameter></methodparam> @@ -19,9 +19,44 @@ </methodsynopsis> <para> This function creates a BLOB, reads an entire file into it, closes it and - returns the assigned BLOB id. The file handle is a handle returned by - <function>fopen</function>. Returns &false; on failure. + returns the assigned BLOB id. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>link_identifier</parameter></term> + <listitem> + <para> + An InterBase link identifier. If omitted, the last opened link is + assumed. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>file_handle</parameter></term> + <listitem> + <para> + The file handle is a handle returned by <function>fopen</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns the BLOB id on success, or &false; on error. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; <para> <example> <title><function>ibase_blob_import</function> example</title> @@ -54,14 +89,20 @@ </programlisting> </example> </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also - <function>ibase_blob_add</function>, - <function>ibase_blob_cancel</function>, - <function>ibase_blob_close</function> and - <function>ibase_blob_create</function>. + <simplelist> + <member><function>ibase_blob_add</function></member> + <member><function>ibase_blob_cancel</function></member> + <member><function>ibase_blob_close</function></member> + <member><function>ibase_blob_create</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-blob-info.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-blob-info.xml diff -u phpdoc/en/reference/ibase/functions/ibase-blob-info.xml:1.5 phpdoc/en/reference/ibase/functions/ibase-blob-info.xml:1.6 --- phpdoc/en/reference/ibase/functions/ibase-blob-info.xml:1.5 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-blob-info.xml Sat Jun 16 21:54:20 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.39 --> +<!-- $Revision: 1.6 $ --> <refentry id='function.ibase-blob-info'> <refnamediv> <refname>ibase_blob_info</refname> <refpurpose>Return blob length and other useful info</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>array</type><methodname>ibase_blob_info</methodname> <methodparam><type>resource</type><parameter>link_identifier</parameter></methodparam> @@ -18,11 +18,44 @@ <methodparam><type>string</type><parameter>blob_id</parameter></methodparam> </methodsynopsis> <para> + Returns the BLOB length and other useful information. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>link_identifier</parameter></term> + <listitem> + <para> + An InterBase link identifier. If omitted, the last opened link is + assumed. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>blob_id</parameter></term> + <listitem> + <para> + A BLOB id. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> Returns an array containing information about a BLOB. The information returned consists of the length of the BLOB, the number of segments it contains, the size of the largest segment, and whether it is a stream BLOB or a segmented BLOB. </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-blob-open.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-blob-open.xml diff -u phpdoc/en/reference/ibase/functions/ibase-blob-open.xml:1.5 phpdoc/en/reference/ibase/functions/ibase-blob-open.xml:1.6 --- phpdoc/en/reference/ibase/functions/ibase-blob-open.xml:1.5 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-blob-open.xml Sat Jun 16 21:54:20 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.39 --> +<!-- $Revision: 1.6 $ --> <refentry id='function.ibase-blob-open'> <refnamediv> <refname>ibase_blob_open</refname> <refpurpose>Open blob for retrieving data parts</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>resource</type><methodname>ibase_blob_open</methodname> <methodparam><type>resource</type><parameter>link_identifier</parameter></methodparam> @@ -18,17 +18,54 @@ <methodparam><type>string</type><parameter>blob_id</parameter></methodparam> </methodsynopsis> <para> - <function>ibase_blob_open</function> opens an existing BLOB for - reading. It returns a BLOB handle for later use with + Opens an existing BLOB for reading. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>link_identifier</parameter></term> + <listitem> + <para> + An InterBase link identifier. If omitted, the last opened link is + assumed. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>blob_id</parameter></term> + <listitem> + <para> + A BLOB id. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns a BLOB handle for later use with <function>ibase_blob_get</function> or &false; on failure. </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also - <function>ibase_blob_close</function>, - <function>ibase_blob_echo</function> and - <function>ibase_blob_get</function>. + <simplelist> + <member><function>ibase_blob_close</function></member> + <member><function>ibase_blob_echo</function></member> + <member><function>ibase_blob_get</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-close.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-close.xml diff -u phpdoc/en/reference/ibase/functions/ibase-close.xml:1.4 phpdoc/en/reference/ibase/functions/ibase-close.xml:1.5 --- phpdoc/en/reference/ibase/functions/ibase-close.xml:1.4 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-close.xml Sat Jun 16 21:54:20 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.2 --> +<!-- $Revision: 1.5 $ --> <refentry id="function.ibase-close"> <refnamediv> <refname>ibase_close</refname> <refpurpose>Close a connection to an InterBase database</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_close</methodname> <methodparam choice="opt"><type>resource</type><parameter>connection_id</parameter></methodparam> @@ -15,16 +15,46 @@ <para> Closes the link to an InterBase database that's associated with a connection id returned from <function>ibase_connect</function>. - If the connection id is omitted, the last opened link is assumed. Default transaction on link is committed, other transactions are - rolled back. &return.success; + rolled back. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>connection_id</parameter></term> + <listitem> + <para> + An InterBase link identifier returned from + <function>ibase_connect</function>. If omitted, the last opened link + is assumed. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_connect</function> and - <function>ibase_pconnect</function>. + &return.success; </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_connect</function></member> + <member><function>ibase_pconnect</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-commit-ret.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-commit-ret.xml diff -u phpdoc/en/reference/ibase/functions/ibase-commit-ret.xml:1.3 phpdoc/en/reference/ibase/functions/ibase-commit-ret.xml:1.4 --- phpdoc/en/reference/ibase/functions/ibase-commit-ret.xml:1.3 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-commit-ret.xml Sat Jun 16 21:54:20 2007 @@ -1,26 +1,51 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="function.ibase-commit-ret"> <refnamediv> <refname>ibase_commit_ret</refname> <refpurpose>Commit a transaction without closing it</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_commit_ret</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_or_trans_identifier</parameter></methodparam> </methodsynopsis> <para> - If called without an argument, this function commits the default transaction - of the default link. If the argument is a connection identifier, the default - transaction of the corresponding connection will be committed. If the argument - is a transaction identifier, the corresponding transaction will be committed. - The transaction context will be retained, so statements executed from within - this transaction will not be invalidated. + Commits a transaction without closing it. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>link_or_trans_identifier</parameter></term> + <listitem> + <para> + If called without an argument, this function commits the default + transaction of the default link. If the argument is a connection + identifier, the default transaction of the corresponding connection + will be committed. If the argument is a transaction identifier, the + corresponding transaction will be committed. The transaction context + will be retained, so statements executed from within this transaction + will not be invalidated. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> &return.success; </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-commit.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-commit.xml diff -u phpdoc/en/reference/ibase/functions/ibase-commit.xml:1.6 phpdoc/en/reference/ibase/functions/ibase-commit.xml:1.7 --- phpdoc/en/reference/ibase/functions/ibase-commit.xml:1.6 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-commit.xml Sat Jun 16 21:54:20 2007 @@ -1,25 +1,49 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.23 --> +<!-- $Revision: 1.7 $ --> <refentry id="function.ibase-commit"> <refnamediv> <refname>ibase_commit</refname> <refpurpose>Commit a transaction</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_commit</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_or_trans_identifier</parameter></methodparam> </methodsynopsis> <para> - If called without an argument, this function commits the default transaction - of the default link. If the argument is a connection identifier, the default - transaction of the corresponding connection will be committed. If the argument - is a transaction identifier, the corresponding transaction will be committed. + Commits a transaction. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>link_or_trans_identifier</parameter></term> + <listitem> + <para> + If called without an argument, this function commits the default + transaction of the default link. If the argument is a connection + identifier, the default transaction of the corresponding connection + will be committed. If the argument is a transaction identifier, the + corresponding transaction will be committed. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> &return.success; </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-connect.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-connect.xml diff -u phpdoc/en/reference/ibase/functions/ibase-connect.xml:1.8 phpdoc/en/reference/ibase/functions/ibase-connect.xml:1.9 --- phpdoc/en/reference/ibase/functions/ibase-connect.xml:1.8 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-connect.xml Sat Jun 16 21:54:20 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.2 --> +<!-- $Revision: 1.9 $ --> <refentry id="function.ibase-connect"> <refnamediv> <refname>ibase_connect</refname> <refpurpose>Open a connection to an InterBase database</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>resource</type><methodname>ibase_connect</methodname> <methodparam choice="opt"><type>string</type><parameter>database</parameter></methodparam> @@ -21,80 +21,177 @@ </methodsynopsis> <para> Establishes a connection to an InterBase server. - The <parameter>database</parameter> argument - has to be a valid path to database file on the server it resides on. - If the server is not local, it must be prefixed with either - 'hostname:' (TCP/IP), '//hostname/' (NetBEUI) or 'hostname@' (IPX/SPX), - depending on the connection protocol used. <parameter>username</parameter> - and <parameter>password</parameter> can also - be specified with PHP configuration directives ibase.default_user and - ibase.default_password. <parameter>charset</parameter> is the default - character set for a database. <parameter>buffers</parameter> is the number - of database buffers to allocate for the server-side cache. If 0 or omitted, - server chooses its own default. <parameter>dialect</parameter> selects - the default SQL dialect for any statement executed within a connection, - and it defaults to the highest one supported by client libraries. - </para> - <para> - In case a second call is made to - <function>ibase_connect</function> with the same arguments, no new link - will be established, but instead, the link identifier of the already opened - link will be returned. The link to the server will be closed as soon as the - execution of the script ends, unless it's closed earlier by explicitly calling - <function>ibase_close</function>. + </para> + <para> + In case a second call is made to <function>ibase_connect</function> with + the same arguments, no new link will be established, but instead, the link + identifier of the already opened link will be returned. The link to the + server will be closed as soon as the execution of the script ends, unless + it's closed earlier by explicitly calling <function>ibase_close</function>. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>database</parameter></term> + <listitem> + <para> + The <parameter>database</parameter> argument has to be a valid path to + database file on the server it resides on. If the server is not local, + it must be prefixed with either 'hostname:' (TCP/IP), '//hostname/' + (NetBEUI) or 'hostname@' (IPX/SPX), depending on the connection + protocol used. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>username</parameter></term> + <listitem> + <para> + The user name. Can be set with the + <literal>ibase.default_user</literal> &php.ini; directive. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>password</parameter></term> + <listitem> + <para> + The password for <parameter>username</parameter>. Can be set with the + <literal>ibase.default_password</literal> &php.ini; directive. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>charset</parameter></term> + <listitem> + <para> + <parameter>charset</parameter> is the default character set for a + database. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>buffers</parameter></term> + <listitem> + <para> + <parameter>buffers</parameter> is the number of database buffers to + allocate for the server-side cache. If 0 or omitted, server chooses + its own default. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>dialect</parameter></term> + <listitem> + <para> + <parameter>dialect</parameter> selects the default SQL dialect for any + statement executed within a connection, and it defaults to the highest + one supported by client libraries. Functional only with InterBase 6 + and up. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>role</parameter></term> + <listitem> + <para> + Functional only with InterBase 5 and up. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>sync</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns an InterBase link identifier on success, or &false; on error. + </para> + </refsect1> + + <refsect1 role="errors"> + &reftitle.errors; + <para> + If you get some error like "arithmetic exception, numeric overflow, or + string truncation. Cannot transliterate character between character sets" + (this occurs when you try use some character with accents) when using this + and after <function>ibase_query</function> you must set the character set + (i.e. ISO8859_1 or your current character set). + </para> + </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>4.0.0</entry> + <entry> + The <parameter>buffers</parameter>, <parameter>dialect</parameter> + and <parameter>role</parameter> parameters were added + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> <example> <title><function>ibase_connect</function> example</title> <programlisting role="php"> <![CDATA[ <?php - $host = 'localhost:/path/to/your.gdb'; +$host = 'localhost:/path/to/your.gdb'; - $dbh = ibase_connect($host, $username, $password); - $stmt = 'SELECT * FROM tblname'; - $sth = ibase_query($dbh, $stmt); - while ($row = ibase_fetch_object($sth)) { - echo $row->email, "\n"; - } - ibase_free_result($sth); - ibase_close($dbh); +$dbh = ibase_connect($host, $username, $password); +$stmt = 'SELECT * FROM tblname'; +$sth = ibase_query($dbh, $stmt); +while ($row = ibase_fetch_object($sth)) { + echo $row->email, "\n"; +} +ibase_free_result($sth); +ibase_close($dbh); ?> ]]> </programlisting> </example> </para> - <note> - <para> - The optional <parameter>buffers</parameter> parameter was added in - PHP 4.0.0. - </para> - </note> - <note> - <para> - The optional <parameter>dialect</parameter> parameter was added in PHP - 4.0.0 and is functional only with InterBase 6 and up. - </para> - </note> - <note> - <para> - The optional <parameter>role</parameter> parameter was added in PHP - 4.0.0 and is functional only with InterBase 5 and up. - </para> - </note> - <note> - <para> - If you get some error like "arithmetic exception, numeric overflow, - or string truncation. Cannot transliterate character between character - sets" (this occurs when you try use some character with accents) - when using this and after <function>ibase_query</function> you must - set the character set (i.e. ISO8859_1 or your current character set). - </para> - </note> - <para> - See also - <function>ibase_pconnect</function> and - <function>ibase_close</function>. + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_pconnect</function></member> + <member><function>ibase_close</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-db-info.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-db-info.xml diff -u phpdoc/en/reference/ibase/functions/ibase-db-info.xml:1.2 phpdoc/en/reference/ibase/functions/ibase-db-info.xml:1.3 --- phpdoc/en/reference/ibase/functions/ibase-db-info.xml:1.2 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-db-info.xml Sat Jun 16 21:54:20 2007 @@ -1,12 +1,13 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.ibase-db-info"> <refnamediv> <refname>ibase_db_info</refname> <refpurpose>Request statistics about a database</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>string</type><methodname>ibase_db_info</methodname> <methodparam><type>resource</type><parameter>service_handle</parameter></methodparam> @@ -18,6 +19,7 @@ &warn.undocumented.func; </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-delete-user.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-delete-user.xml diff -u phpdoc/en/reference/ibase/functions/ibase-delete-user.xml:1.4 phpdoc/en/reference/ibase/functions/ibase-delete-user.xml:1.5 --- phpdoc/en/reference/ibase/functions/ibase-delete-user.xml:1.4 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-delete-user.xml Sat Jun 16 21:54:20 2007 @@ -1,12 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="function.ibase-delete-user"> <refnamediv> <refname>ibase_delete_user</refname> <refpurpose>Delete a user from a security database (only for IB6 or later)</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_delete_user</methodname> <methodparam><type>resource</type><parameter>service_handle</parameter></methodparam> @@ -21,12 +22,25 @@ </para> &warn.undocumented.func; + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_add_user</function> and - <function>ibase_modify_user</function>. + &return.success; </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_add_user</function></member> + <member><function>ibase_modify_user</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-drop-db.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-drop-db.xml diff -u phpdoc/en/reference/ibase/functions/ibase-drop-db.xml:1.3 phpdoc/en/reference/ibase/functions/ibase-drop-db.xml:1.4 --- phpdoc/en/reference/ibase/functions/ibase-drop-db.xml:1.3 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-drop-db.xml Sat Jun 16 21:54:20 2007 @@ -1,12 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="function.ibase-drop-db"> <refnamediv> <refname>ibase_drop_db</refname> <refpurpose>Drops a database</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_drop_db</methodname> <methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam> @@ -14,14 +15,43 @@ <para> This functions drops a database that was opened by either <function>ibase_connect</function> or <function>ibase_pconnect</function>. The database is closed and deleted from the server. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>connection</parameter></term> + <listitem> + <para> + An InterBase link identifier. If omitted, the last opened link is + assumed. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> &return.success; </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also - <function>ibase_connect</function> and - <function>ibase_pconnect</function>. + <simplelist> + <member><function>ibase_connect</function></member> + <member><function>ibase_pconnect</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-errcode.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-errcode.xml diff -u phpdoc/en/reference/ibase/functions/ibase-errcode.xml:1.2 phpdoc/en/reference/ibase/functions/ibase-errcode.xml:1.3 --- phpdoc/en/reference/ibase/functions/ibase-errcode.xml:1.2 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-errcode.xml Sat Jun 16 21:54:20 2007 @@ -1,25 +1,39 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.ibase-errcode"> <refnamediv> <refname>ibase_errcode</refname> <refpurpose>Return an error code</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>int</type><methodname>ibase_errcode</methodname> <void/> </methodsynopsis> <para> Returns the error code that resulted from the most recent InterBase function - call. Returns &false; if no error occurred. + call. </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_errmsg</function>. + Returns the error code as an integer, or &false; if no error occured. </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_errmsg</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-errmsg.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-errmsg.xml diff -u phpdoc/en/reference/ibase/functions/ibase-errmsg.xml:1.5 phpdoc/en/reference/ibase/functions/ibase-errmsg.xml:1.6 --- phpdoc/en/reference/ibase/functions/ibase-errmsg.xml:1.5 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-errmsg.xml Sat Jun 16 21:54:20 2007 @@ -1,26 +1,39 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.37 --> +<!-- $Revision: 1.6 $ --> <refentry id="function.ibase-errmsg"> <refnamediv> <refname>ibase_errmsg</refname> <refpurpose>Return error messages</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>string</type><methodname>ibase_errmsg</methodname> <void/> </methodsynopsis> <simpara> Returns the error message that resulted from the most recent InterBase function - call. Returns &false; if no error occurred. + call. </simpara> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_errcode</function>. + Returns the error message as a string, or &false; if no error occured. </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_errcode</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-execute.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-execute.xml diff -u phpdoc/en/reference/ibase/functions/ibase-execute.xml:1.11 phpdoc/en/reference/ibase/functions/ibase-execute.xml:1.12 --- phpdoc/en/reference/ibase/functions/ibase-execute.xml:1.11 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-execute.xml Sat Jun 16 21:54:20 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.2 --> +<!-- $Revision: 1.12 $ --> <refentry id="function.ibase-execute"> <refnamediv> <refname>ibase_execute</refname> <refpurpose>Execute a previously prepared query</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>resource</type><methodname>ibase_execute</methodname> <methodparam><type>resource</type><parameter>query</parameter></methodparam> @@ -15,17 +15,65 @@ <methodparam choice="opt"><type>mixed</type><parameter>...</parameter></methodparam> </methodsynopsis> <para> - Execute a query prepared by <function>ibase_prepare</function>. If - the query raises an error, returns &false;. If it is successful and - there is a (possibly empty) result set (such as with a SELECT query), - returns a result identifier. If the query was successful and there were - no results, returns &true;. + Execute a query prepared by <function>ibase_prepare</function>. </para> <para> This is a lot more effective than using <function>ibase_query</function> if you are repeating a same kind of query several times with only some parameters changing. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>query</parameter></term> + <listitem> + <para> + An InterBase query prepared by <function>ibase_prepare</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>bind_arg</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>...</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + If the query raises an error, returns &false;. If it is successful and + there is a (possibly empty) result set (such as with a SELECT query), + returns a result identifier. If the query was successful and there were + no results, returns &true;. + </para> + <note> + <para> + In PHP 5.0.0 and up, this function returns the number of rows affected by + the query (if > 0 and applicable to the statement type). A query that + succeeded, but did not affect any rows (e.g. an UPDATE of a non-existent + record) will return &true;. + </para> + </note> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; <para> <example> <title><function>ibase_execute</function> example</title> @@ -52,18 +100,17 @@ </programlisting> </example> </para> - <note> - <para> - In PHP 5.0.0 and up, this function returns the number of rows affected by - the query (if > 0 and applicable to the statement type). A query that succeeded, - but did not affect any rows (e.g. an UPDATE of a non-existent record) will return - &true;. - </para> - </note> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also <function>ibase_query</function>. + <simplelist> + <member><function>ibase_query</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-fetch-assoc.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-fetch-assoc.xml diff -u phpdoc/en/reference/ibase/functions/ibase-fetch-assoc.xml:1.4 phpdoc/en/reference/ibase/functions/ibase-fetch-assoc.xml:1.5 --- phpdoc/en/reference/ibase/functions/ibase-fetch-assoc.xml:1.4 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-fetch-assoc.xml Sat Jun 16 21:54:20 2007 @@ -1,22 +1,20 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="function.ibase-fetch-assoc"> <refnamediv> <refname>ibase_fetch_assoc</refname> <refpurpose>Fetch a result row from a query as an associative array</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>array</type><methodname>ibase_fetch_assoc</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>fetch_flag</parameter></methodparam> </methodsynopsis> <para> - <function>ibase_fetch_assoc</function> returns an associative array - that corresponds to the fetched row. Subsequent calls will return - the next row in the result set, or &false; if there are no more - rows. + Fetch a result row from a query as an associative array. </para> <para> <function>ibase_fetch_assoc</function> fetches one row of data from the @@ -26,18 +24,56 @@ the result with numeric indices by using <function>ibase_fetch_row</function> or use alias names in your query. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; <para> - <parameter>fetch_flag</parameter> is a combination of the constants IBASE_TEXT and IBASE_UNIXTIME - ORed together. Passing IBASE_TEXT will cause this function to return BLOB contents - instead of BLOB ids. Passing IBASE_UNIXTIME will cause this function to return - date/time values as Unix timestamps instead of as formatted strings. + <variablelist> + <varlistentry> + <term><parameter>result</parameter></term> + <listitem> + <para> + The result handle. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>fetch_flag</parameter></term> + <listitem> + <para> + <parameter>fetch_flag</parameter> is a combination of the constants + <constant>IBASE_TEXT</constant> and <constant>IBASE_UNIXTIME</constant> + ORed together. Passing <constant>IBASE_TEXT</constant> will cause this + function to return BLOB contents instead of BLOB ids. Passing + <constant>IBASE_UNIXTIME</constant> will cause this function to return + date/time values as Unix timestamps instead of as formatted strings. + </para> + </listitem> + </varlistentry> + </variablelist> </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_fetch_row</function> and - <function>ibase_fetch_object</function>. + Returns an associative array that corresponds to the fetched row. + Subsequent calls will return the next row in the result set, or &false; if + there are no more rows. </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_fetch_row</function></member> + <member><function>ibase_fetch_object</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-fetch-object.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-fetch-object.xml diff -u phpdoc/en/reference/ibase/functions/ibase-fetch-object.xml:1.9 phpdoc/en/reference/ibase/functions/ibase-fetch-object.xml:1.10 --- phpdoc/en/reference/ibase/functions/ibase-fetch-object.xml:1.9 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-fetch-object.xml Sat Jun 16 21:54:20 2007 @@ -1,56 +1,97 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.9 --> +<!-- $Revision: 1.10 $ --> <refentry id="function.ibase-fetch-object"> <refnamediv> <refname>ibase_fetch_object</refname> <refpurpose>Get an object from a InterBase database</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>object</type><methodname>ibase_fetch_object</methodname> <methodparam><type>resource</type><parameter>result_id</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>fetch_flag</parameter></methodparam> </methodsynopsis> <para> - Fetches a row as a pseudo-object from a - <parameter>result_id</parameter> obtained either by - <function>ibase_query</function> or - <function>ibase_execute</function>. - <informalexample> + Fetches a row as a pseudo-object from a given result identifier. + </para> + <para> + Subsequent calls to <function>ibase_fetch_object</function> + return the next row in the result set. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>result_id</parameter></term> + <listitem> + <para> + An InterBase result identifier obtained either by + <function>ibase_query</function> or <function>ibase_execute</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>fetch_flag</parameter></term> + <listitem> + <para> + <parameter>fetch_flag</parameter> is a combination of the constants + <constant>IBASE_TEXT</constant> and <constant>IBASE_UNIXTIME</constant> + ORed together. Passing <constant>IBASE_TEXT</constant> will cause this + function to return BLOB contents instead of BLOB ids. Passing + <constant>IBASE_UNIXTIME</constant> will cause this function to return + date/time values as Unix timestamps instead of as formatted strings. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns an object with the next row information, or &false; if there are + no more rows. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>ibase_fetch_object</function> example</title> <programlisting role="php"> <![CDATA[ <?php - $dbh = ibase_connect($host, $username, $password); - $stmt = 'SELECT * FROM tblname'; - $sth = ibase_query($dbh, $stmt); - while ($row = ibase_fetch_object($sth)) { - echo $row->email . "\n"; - } - ibase_close($dbh); +$dbh = ibase_connect($host, $username, $password); +$stmt = 'SELECT * FROM tblname'; +$sth = ibase_query($dbh, $stmt); +while ($row = ibase_fetch_object($sth)) { + echo $row->email . "\n"; +} +ibase_close($dbh); ?> ]]> </programlisting> - </informalexample> - </para> - <para> - Subsequent calls to <function>ibase_fetch_object</function> - return the next row in the result set, or &false; if there are no - more rows. - </para> - <para> - <parameter>fetch_flag</parameter> is a combination of the constants IBASE_TEXT and IBASE_UNIXTIME - ORed together. Passing IBASE_TEXT will cause this function to return BLOB contents - instead of BLOB ids. Passing IBASE_UNIXTIME will cause this function to return - date/time values as Unix timestamps instead of as formatted strings. + </example> </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also - <function>ibase_fetch_row</function> and - <function>ibase_fetch_assoc</function>. + <simplelist> + <member><function>ibase_fetch_row</function></member> + <member><function>ibase_fetch_assoc</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-fetch-row.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-fetch-row.xml diff -u phpdoc/en/reference/ibase/functions/ibase-fetch-row.xml:1.7 phpdoc/en/reference/ibase/functions/ibase-fetch-row.xml:1.8 --- phpdoc/en/reference/ibase/functions/ibase-fetch-row.xml:1.7 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-fetch-row.xml Sat Jun 16 21:54:20 2007 @@ -1,46 +1,77 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.2 --> +<!-- $Revision: 1.8 $ --> <refentry id="function.ibase-fetch-row"> <refnamediv> <refname>ibase_fetch_row</refname> <refpurpose>Fetch a row from an InterBase database</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>array</type><methodname>ibase_fetch_row</methodname> <methodparam><type>resource</type><parameter>result_identifier</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>fetch_flag</parameter></methodparam> </methodsynopsis> <para> - Returns an array that corresponds to the fetched row, or &false; - if there are no more rows. - </para> - <para> - <function>ibase_fetch_row</function> fetches one row of data from - the result associated with the specified - <parameter>result_identifier</parameter>. The row is returned as - an array. Each result column is stored in an array offset, - starting at offset 0. + <function>ibase_fetch_row</function> fetches one row of data from the + given result set. </para> <para> Subsequent calls to <function>ibase_fetch_row</function> return the next row in the result set, or &false; if there are no more rows. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; <para> - <parameter>fetch_flag</parameter> is a combination of the constants IBASE_TEXT and IBASE_UNIXTIME - ORed together. Passing IBASE_TEXT will cause this function to return BLOB contents - instead of BLOB ids. Passing IBASE_UNIXTIME will cause this function to return - date/time values as Unix timestamps instead of as formatted strings. + <variablelist> + <varlistentry> + <term><parameter>result_identifier</parameter></term> + <listitem> + <para> + An InterBase result identifier. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>fetch_flag</parameter></term> + <listitem> + <para> + <parameter>fetch_flag</parameter> is a combination of the constants + <constant>IBASE_TEXT</constant> and <constant>IBASE_UNIXTIME</constant> + ORed together. Passing <constant>IBASE_TEXT</constant> will cause this + function to return BLOB contents instead of BLOB ids. Passing + <constant>IBASE_UNIXTIME</constant> will cause this function to return + date/time values as Unix timestamps instead of as formatted strings. + </para> + </listitem> + </varlistentry> + </variablelist> </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_fetch_assoc</function> and - <function>ibase_fetch_object</function>. + Returns an array that corresponds to the fetched row, or &false; if there + are no more rows. Each result column is stored in an array offset, + starting at offset 0. + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_fetch_assoc</function></member> + <member><function>ibase_fetch_object</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-field-info.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-field-info.xml diff -u phpdoc/en/reference/ibase/functions/ibase-field-info.xml:1.8 phpdoc/en/reference/ibase/functions/ibase-field-info.xml:1.9 --- phpdoc/en/reference/ibase/functions/ibase-field-info.xml:1.8 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-field-info.xml Sat Jun 16 21:54:20 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.23 --> +<!-- $Revision: 1.9 $ --> <refentry id="function.ibase-field-info"> <refnamediv> <refname>ibase_field_info</refname> <refpurpose>Get information about a field</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>array</type><methodname>ibase_field_info</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> @@ -15,33 +15,77 @@ </methodsynopsis> <para> Returns an array with information about a field after a select - query has been run. The array is in the form of name, alias, - relation, length, type. + query has been run. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; <para> - <informalexample> + <variablelist> + <varlistentry> + <term><parameter>result</parameter></term> + <listitem> + <para> + An InterBase result identifier. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>field_number</parameter></term> + <listitem> + <para> + Field offset. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns an array with the following keys: <literal>name</literal>, + <literal>alias</literal>, <literal>relation</literal>, + <literal>length</literal> and <literal>type</literal>. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>ibase_field_info</function> example</title> <programlisting role="php"> <![CDATA[ <?php - $rs = ibase_query("SELECT * FROM tablename"); - $coln = ibase_num_fields($rs); - for ($i = 0; $i < $coln; $i++) { - $col_info = ibase_field_info($rs, $i); - echo "name: ". $col_info['name']. "\n"; - echo "alias: ". $col_info['alias']. "\n"; - echo "relation: ". $col_info['relation']. "\n"; - echo "length: ". $col_info['length']. "\n"; - echo "type: ". $col_info['type']. "\n"; - } +$rs = ibase_query("SELECT * FROM tablename"); +$coln = ibase_num_fields($rs); +for ($i = 0; $i < $coln; $i++) { + $col_info = ibase_field_info($rs, $i); + echo "name: ". $col_info['name']. "\n"; + echo "alias: ". $col_info['alias']. "\n"; + echo "relation: ". $col_info['relation']. "\n"; + echo "length: ". $col_info['length']. "\n"; + echo "type: ". $col_info['type']. "\n"; +} ?> ]]> </programlisting> - </informalexample> + </example> </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also: <function>ibase_num_fields</function>. + <simplelist> + <member><function>ibase_num_fields</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-free-event-handler.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-free-event-handler.xml diff -u phpdoc/en/reference/ibase/functions/ibase-free-event-handler.xml:1.2 phpdoc/en/reference/ibase/functions/ibase-free-event-handler.xml:1.3 --- phpdoc/en/reference/ibase/functions/ibase-free-event-handler.xml:1.2 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-free-event-handler.xml Sat Jun 16 21:54:20 2007 @@ -1,27 +1,57 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.ibase-free-event-handler"> <refnamediv> <refname>ibase_free_event_handler</refname> <refpurpose>Cancels a registered event handler</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_free_event_handler</methodname> <methodparam><type>resource</type><parameter>event</parameter></methodparam> </methodsynopsis> <para> This function causes the registered event handler specified by - <parameter>event</parameter> to be cancelled. The callback function - will no longer be called for the events it was registered to handle. + <parameter>event</parameter> to be cancelled. The callback function will + no longer be called for the events it was registered to handle. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>event</parameter></term> + <listitem> + <para> + An event resource, created by + <function>ibase_set_event_handler</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> &return.success; </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also - <function>ibase_set_event_handler</function>. + <simplelist> + <member><function>ibase_set_event_handler</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-free-query.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-free-query.xml diff -u phpdoc/en/reference/ibase/functions/ibase-free-query.xml:1.4 phpdoc/en/reference/ibase/functions/ibase-free-query.xml:1.5 --- phpdoc/en/reference/ibase/functions/ibase-free-query.xml:1.4 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-free-query.xml Sat Jun 16 21:54:20 2007 @@ -1,22 +1,45 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.37 --> +<!-- $Revision: 1.5 $ --> <refentry id="function.ibase-free-query"> <refnamediv> <refname>ibase_free_query</refname> <refpurpose>Free memory allocated by a prepared query</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_free_query</methodname> <methodparam><type>resource</type><parameter>query</parameter></methodparam> </methodsynopsis> - <simpara> - Free a query prepared by <function>ibase_prepare</function>. + <para> + Frees a prepared query. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>query</parameter></term> + <listitem> + <para> + A query prepared with <function>ibase_prepare</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> &return.success; - </simpara> + </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-free-result.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-free-result.xml diff -u phpdoc/en/reference/ibase/functions/ibase-free-result.xml:1.5 phpdoc/en/reference/ibase/functions/ibase-free-result.xml:1.6 --- phpdoc/en/reference/ibase/functions/ibase-free-result.xml:1.5 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-free-result.xml Sat Jun 16 21:54:20 2007 @@ -1,23 +1,46 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> <refentry id="function.ibase-free-result"> <refnamediv> <refname>ibase_free_result</refname> <refpurpose>Free a result set</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_free_result</methodname> <methodparam><type>resource</type><parameter>result_identifier</parameter></methodparam> </methodsynopsis> - <simpara> - Frees a result set that has been created by - <function>ibase_query</function> or <function>ibase_execute</function>. + <para> + Frees a result set. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>result_identifier</parameter></term> + <listitem> + <para> + A result set created by <function>ibase_query</function> or + <function>ibase_execute</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> &return.success; - </simpara> + </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-gen-id.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-gen-id.xml diff -u phpdoc/en/reference/ibase/functions/ibase-gen-id.xml:1.4 phpdoc/en/reference/ibase/functions/ibase-gen-id.xml:1.5 --- phpdoc/en/reference/ibase/functions/ibase-gen-id.xml:1.4 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-gen-id.xml Sat Jun 16 21:54:20 2007 @@ -1,13 +1,14 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- Generated by xml_proto.php v2.0. Found in /scripts directory of phpdoc. --> <refentry id="function.ibase-gen-id"> <refnamediv> <refname>ibase_gen_id</refname> <refpurpose>Increments the named generator and returns its new value</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>mixed</type><methodname>ibase_gen_id</methodname> <methodparam><type>string</type><parameter>generator</parameter></methodparam> @@ -16,11 +17,16 @@ </methodsynopsis> &warn.undocumented.func; + + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> Returns new generator value as integer, or as string if the value is too big. </para> - </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-maintain-db.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-maintain-db.xml diff -u phpdoc/en/reference/ibase/functions/ibase-maintain-db.xml:1.2 phpdoc/en/reference/ibase/functions/ibase-maintain-db.xml:1.3 --- phpdoc/en/reference/ibase/functions/ibase-maintain-db.xml:1.2 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-maintain-db.xml Sat Jun 16 21:54:20 2007 @@ -1,12 +1,13 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.ibase-maintain-db"> <refnamediv> <refname>ibase_maintain_db</refname> <refpurpose>Execute a maintenance command on the database server</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_maintain_db</methodname> <methodparam><type>resource</type><parameter>service_handle</parameter></methodparam> @@ -18,6 +19,14 @@ &warn.undocumented.func; </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-modify-user.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-modify-user.xml diff -u phpdoc/en/reference/ibase/functions/ibase-modify-user.xml:1.4 phpdoc/en/reference/ibase/functions/ibase-modify-user.xml:1.5 --- phpdoc/en/reference/ibase/functions/ibase-modify-user.xml:1.4 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-modify-user.xml Sat Jun 16 21:54:20 2007 @@ -1,12 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="function.ibase-modify-user"> <refnamediv> <refname>ibase_modify_user</refname> <refpurpose>Modify a user to a security database (only for IB6 or later)</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_modify_user</methodname> <methodparam><type>resource</type><parameter>service_handle</parameter></methodparam> @@ -16,21 +17,32 @@ <methodparam choice="opt"><type>string</type><parameter>middle_name</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>last_name</parameter></methodparam> </methodsynopsis> - + &warn.undocumented.func; <para> PHP 4 uses <parameter>server</parameter>, <parameter>dba_user_name</parameter> and <parameter>dba_user_password</parameter> instead of <parameter>service_handle</parameter> parameter. </para> - &warn.undocumented.func; + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_add_user</function> and - <function>ibase_delete_user</function>. + &return.success; </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_add_user</function></member> + <member><function>ibase_delete_user</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-name-result.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-name-result.xml diff -u phpdoc/en/reference/ibase/functions/ibase-name-result.xml:1.4 phpdoc/en/reference/ibase/functions/ibase-name-result.xml:1.5 --- phpdoc/en/reference/ibase/functions/ibase-name-result.xml:1.4 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-name-result.xml Sat Jun 16 21:54:20 2007 @@ -1,12 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="function.ibase-name-result"> <refnamediv> <refname>ibase_name_result</refname> <refpurpose>Assigns a name to a result set</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_name_result</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> @@ -15,30 +16,73 @@ <para> This function assigns a name to a result set. This name can be used later in UPDATE|DELETE ... WHERE CURRENT OF <parameter>name</parameter> statements. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>result</parameter></term> + <listitem> + <para> + An InterBase result set. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>name</parameter></term> + <listitem> + <para> + Tbe name to be assigned. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> &return.success; - <informalexample> + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>ibase_name_result</function> example</title> <programlisting role="php"> <![CDATA[ <?php - $result = ibase_query("SELECT field1,field2 FROM table FOR UPDATE"); - ibase_name_result($result, "my_cursor"); +$result = ibase_query("SELECT field1,field2 FROM table FOR UPDATE"); +ibase_name_result($result, "my_cursor"); - $updateqry = ibase_prepare("UPDATE table SET field2 = ? WHERE CURRENT OF my_cursor"); +$updateqry = ibase_prepare("UPDATE table SET field2 = ? WHERE CURRENT OF my_cursor"); - for ($i = 0; ibase_fetch_row($result); ++$i) { - ibase_execute($updateqry, $i); - } +for ($i = 0; ibase_fetch_row($result); ++$i) { + ibase_execute($updateqry, $i); +} ?> ]]> </programlisting> - </informalexample> + </example> </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also - <function>ibase_prepare</function> and - <function>ibase_execute</function>. + <simplelist> + <member><function>ibase_prepare</function></member> + <member><function>ibase_execute</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-num-fields.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-num-fields.xml diff -u phpdoc/en/reference/ibase/functions/ibase-num-fields.xml:1.6 phpdoc/en/reference/ibase/functions/ibase-num-fields.xml:1.7 --- phpdoc/en/reference/ibase/functions/ibase-num-fields.xml:1.6 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-num-fields.xml Sat Jun 16 21:54:21 2007 @@ -1,43 +1,79 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.12 --> +<!-- $Revision: 1.7 $ --> <refentry id="function.ibase-num-fields"> <refnamediv> <refname>ibase_num_fields</refname> <refpurpose>Get the number of fields in a result set</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>int</type><methodname>ibase_num_fields</methodname> <methodparam><type>resource</type><parameter>result_id</parameter></methodparam> </methodsynopsis> <para> - Returns an integer containing the number of fields in a result - set. - <informalexample> + Get the number of fields in a result set. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>result_id</parameter></term> + <listitem> + <para> + An InterBase result identifier. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns the number of fields as an integer. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>ibase_num_fields</function> example</title> <programlisting role="php"> <![CDATA[ <?php - $rs = ibase_query("SELECT * FROM tablename"); - $coln = ibase_num_fields($rs); - for ($i = 0; $i < $coln; $i++) { - $col_info = ibase_field_info($rs, $i); - echo "name: " . $col_info['name'] . "\n"; - echo "alias: " . $col_info['alias'] . "\n"; - echo "relation: " . $col_info['relation'] . "\n"; - echo "length: " . $col_info['length'] . "\n"; - echo "type: " . $col_info['type'] . "\n"; - } +$rs = ibase_query("SELECT * FROM tablename"); +$coln = ibase_num_fields($rs); +for ($i = 0; $i < $coln; $i++) { + $col_info = ibase_field_info($rs, $i); + echo "name: " . $col_info['name'] . "\n"; + echo "alias: " . $col_info['alias'] . "\n"; + echo "relation: " . $col_info['relation'] . "\n"; + echo "length: " . $col_info['length'] . "\n"; + echo "type: " . $col_info['type'] . "\n"; +} ?> ]]> </programlisting> - </informalexample> + </example> </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also: <function>ibase_field_info</function>. + <simplelist> + <member><function>ibase_field_info</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-num-params.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-num-params.xml diff -u phpdoc/en/reference/ibase/functions/ibase-num-params.xml:1.2 phpdoc/en/reference/ibase/functions/ibase-num-params.xml:1.3 --- phpdoc/en/reference/ibase/functions/ibase-num-params.xml:1.2 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-num-params.xml Sat Jun 16 21:54:21 2007 @@ -1,12 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.ibase-num-params"> <refnamediv> <refname>ibase_num_params</refname> <refpurpose>Return the number of parameters in a prepared query</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>int</type><methodname>ibase_num_params</methodname> <methodparam><type>resource</type><parameter>query</parameter></methodparam> @@ -16,12 +17,41 @@ by <parameter>query</parameter>. This is the number of binding arguments that must be present when calling <function>ibase_execute</function>. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>query</parameter></term> + <listitem> + <para> + The prepared query handle. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_prepare</function> and - <function>ibase_param_info</function>. + Returns the number of parameters as an integer. </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_prepare</function></member> + <member><function>ibase_param_info</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-param-info.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-param-info.xml diff -u phpdoc/en/reference/ibase/functions/ibase-param-info.xml:1.3 phpdoc/en/reference/ibase/functions/ibase-param-info.xml:1.4 --- phpdoc/en/reference/ibase/functions/ibase-param-info.xml:1.3 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-param-info.xml Sat Jun 16 21:54:21 2007 @@ -1,12 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="function.ibase-param-info"> <refnamediv> <refname>ibase_param_info</refname> <refpurpose>Return information about a parameter in a prepared query</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>array</type><methodname>ibase_param_info</methodname> <methodparam><type>resource</type><parameter>query</parameter></methodparam> @@ -14,15 +15,53 @@ </methodsynopsis> <para> Returns an array with information about a parameter after a - query has been prepared. The array is in the form of name, alias, - relation, length, type. + query has been prepared. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>query</parameter></term> + <listitem> + <para> + An InterBase prepared query handle. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>param_number</parameter></term> + <listitem> + <para> + Parameter offset. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_field_info</function> and - <function>ibase_num_params</function>. + Returns an array with the following keys: <literal>name</literal>, + <literal>alias</literal>, <literal>relation</literal>, + <literal>length</literal> and <literal>type</literal>. </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_field_info</function></member> + <member><function>ibase_num_params</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-pconnect.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-pconnect.xml diff -u phpdoc/en/reference/ibase/functions/ibase-pconnect.xml:1.7 phpdoc/en/reference/ibase/functions/ibase-pconnect.xml:1.8 --- phpdoc/en/reference/ibase/functions/ibase-pconnect.xml:1.7 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-pconnect.xml Sat Jun 16 21:54:21 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.2 --> +<!-- $Revision: 1.8 $ --> <refentry id="function.ibase-pconnect"> <refnamediv> <refname>ibase_pconnect</refname> <refpurpose>Open a persistent connection to an InterBase database</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>resource</type><methodname>ibase_pconnect</methodname> <methodparam choice="opt"><type>string</type><parameter>database</parameter></methodparam> @@ -20,41 +20,151 @@ <methodparam choice="opt"><type>int</type><parameter>sync</parameter></methodparam> </methodsynopsis> <para> + Opens a persistent connection to an InterBase database. + </para> + <para> <function>ibase_pconnect</function> acts very much like <function>ibase_connect</function> with two major differences. - First, when connecting, the function will first try to find a - (persistent) link that's already opened with the same parameters. - If one is found, an identifier for it will be returned instead of - opening a new connection. Second, the connection to the InterBase - server will not be closed when the execution of the script ends. - Instead, the link will remain open for future use - (<function>ibase_close</function> will not close links established - by <function>ibase_pconnect</function>). This type of link is + </para> + <para> + First, when connecting, the function will first try to find a (persistent) + link that's already opened with the same parameters. If one is found, an + identifier for it will be returned instead of opening a new connection. + </para> + <para> + Second, the connection to the InterBase server will not be closed when the + execution of the script ends. Instead, the link will remain open for + future use (<function>ibase_close</function> will not close links + established by <function>ibase_pconnect</function>). This type of link is therefore called 'persistent'. </para> - <note> - <para> - <parameter>buffers</parameter> was added in PHP 4.0.0. - </para> - </note> - <note> - <para> - <parameter>dialect</parameter> was added in PHP 4.0.0. It is - functional only with InterBase 6 and versions higher than that. - </para> - </note> - <note> - <para> - <parameter>role</parameter> was added in PHP 4.0.0. It is - functional only with InterBase 5 and versions higher than that. - </para> - </note> - <para> - See also <function>ibase_close</function> and - <function>ibase_connect</function> for the meaning of - parameters passed to this function. They are exactly the same. + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>database</parameter></term> + <listitem> + <para> + The <parameter>database</parameter> argument has to be a valid path to + database file on the server it resides on. If the server is not local, + it must be prefixed with either 'hostname:' (TCP/IP), '//hostname/' + (NetBEUI) or 'hostname@' (IPX/SPX), depending on the connection + protocol used. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>username</parameter></term> + <listitem> + <para> + The user name. Can be set with the + <literal>ibase.default_user</literal> &php.ini; directive. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>password</parameter></term> + <listitem> + <para> + The password for <parameter>username</parameter>. Can be set with the + <literal>ibase.default_password</literal> &php.ini; directive. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>charset</parameter></term> + <listitem> + <para> + <parameter>charset</parameter> is the default character set for a + database. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>buffers</parameter></term> + <listitem> + <para> + <parameter>buffers</parameter> is the number of database buffers to + allocate for the server-side cache. If 0 or omitted, server chooses + its own default. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>dialect</parameter></term> + <listitem> + <para> + <parameter>dialect</parameter> selects the default SQL dialect for any + statement executed within a connection, and it defaults to the highest + one supported by client libraries. Functional only with InterBase 6 + and up. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>role</parameter></term> + <listitem> + <para> + Functional only with InterBase 5 and up. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>sync</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns an InterBase link identifier on success, or &false; on error. + </para> + </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>4.0.0</entry> + <entry> + The <parameter>buffers</parameter>, <parameter>dialect</parameter> + and <parameter>role</parameter> parameters were added + </entry> + </row> + </tbody> + </tgroup> + </informaltable> </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_close</function></member> + <member><function>ibase_connect</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-prepare.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-prepare.xml diff -u phpdoc/en/reference/ibase/functions/ibase-prepare.xml:1.5 phpdoc/en/reference/ibase/functions/ibase-prepare.xml:1.6 --- phpdoc/en/reference/ibase/functions/ibase-prepare.xml:1.5 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-prepare.xml Sat Jun 16 21:54:21 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> <refentry id="function.ibase-prepare"> <refnamediv> <refname>ibase_prepare</refname> <refpurpose>Prepare a query for later binding of parameter placeholders and execution</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>resource</type><methodname>ibase_prepare</methodname> <methodparam><type>string</type><parameter>query</parameter></methodparam> @@ -24,10 +24,34 @@ <methodparam><type>string</type><parameter>query</parameter></methodparam> </methodsynopsis> <simpara> - Prepare a query for later binding of parameter placeholders and - execution (via <function>ibase_execute</function>). + Prepare a query for later binding of parameter placeholders and execution + (via <function>ibase_execute</function>). </simpara> </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>query</parameter></term> + <listitem> + <para> + An InterBase query. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns a prepared query handle, or &false; on error. + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-query.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-query.xml diff -u phpdoc/en/reference/ibase/functions/ibase-query.xml:1.7 phpdoc/en/reference/ibase/functions/ibase-query.xml:1.8 --- phpdoc/en/reference/ibase/functions/ibase-query.xml:1.7 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-query.xml Sat Jun 16 21:54:21 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.2 --> +<!-- $Revision: 1.8 $ --> <refentry id="function.ibase-query"> <refnamediv> <refname>ibase_query</refname> <refpurpose>Execute a query on an InterBase database</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>resource</type><methodname>ibase_query</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> @@ -15,11 +15,73 @@ <methodparam choice="opt"><type>int</type><parameter>bind_args</parameter></methodparam> </methodsynopsis> <simpara> - Performs a query on an InterBase database. If the query raises an error, - returns &false;. If it is successful and there is a (possibly empty) - result set (such as with a SELECT query), returns a result identifier. If - the query was successful and there were no results, returns &true;. + Performs a query on an InterBase database. </simpara> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>link_identifier</parameter></term> + <listitem> + <para> + An InterBase link identifier. If omitted, the last opened link is + assumed. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>query</parameter></term> + <listitem> + <para> + An InterBase query. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>bind_args</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + If the query raises an error, returns &false;. If it is successful and + there is a (possibly empty) result set (such as with a SELECT query), + returns a result identifier. If the query was successful and there were + no results, returns &true;. + </para> + <note> + <para> + In PHP 5.0.0 and up, this function will return the number of rows + affected by the query for INSERT, UPDATE and DELETE statements. In order + to retain backward compatibility, it will return &true; for these + statements if the query succeeded without affecting any rows. + </para> + </note> + </refsect1> + + <refsect1 role="errors"> + &reftitle.errors; + <para> + If you get some error like "arithmetic exception, numeric overflow, or + string truncation. Cannot transliterate character between character sets" + (this occurs when you try use some character with accents) when using this + and after <function>ibase_query</function> you must set the character set + (i.e. ISO8859_1 or your current character set). + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; <para> <example> <title><function>ibase_query</function> example</title> @@ -27,42 +89,32 @@ <![CDATA[ <?php - $host = 'localhost:/path/to/your.gdb'; +$host = 'localhost:/path/to/your.gdb'; - $dbh = ibase_connect($host, $username, $password); - $stmt = 'SELECT * FROM tblname'; +$dbh = ibase_connect($host, $username, $password); +$stmt = 'SELECT * FROM tblname'; - $sth = ibase_query($dbh, $stmt) or die(ibase_errmsg()); +$sth = ibase_query($dbh, $stmt) or die(ibase_errmsg()); ?> ]]> </programlisting> </example> </para> - <note> - <para> - In PHP 5.0.0 and up, this function will return the number of rows affected by - the query for INSERT, UPDATE and DELETE statements. In order to retain backward - compatibility, it will return &true; for these statements if the query succeeded - without affecting any rows. - </para> - </note> - <note> - <para> - If you get some error like "arithmetic exception, numeric overflow, - or string truncation. Cannot transliterate character between character - sets" (this occurs when you try use some character with accents) - when using this and after <function>ibase_query</function> you must - set the character set (i.e. ISO8859_1 or your current character set). - </para> - </note> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also <function>ibase_errmsg</function>, - <function>ibase_fetch_row</function>, - <function>ibase_fetch_object</function>, and - <function>ibase_free_result</function>. + <simplelist> + <member><function>ibase_errmsg</function></member> + <member><function>ibase_fetch_row</function></member> + <member><function>ibase_fetch_object</function></member> + <member><function>ibase_free_result</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-restore.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-restore.xml diff -u phpdoc/en/reference/ibase/functions/ibase-restore.xml:1.2 phpdoc/en/reference/ibase/functions/ibase-restore.xml:1.3 --- phpdoc/en/reference/ibase/functions/ibase-restore.xml:1.2 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-restore.xml Sat Jun 16 21:54:21 2007 @@ -1,12 +1,13 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.ibase-restore"> <refnamediv> <refname>ibase_restore</refname> <refpurpose>Initiates a restore task in the service manager and returns immediately</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>mixed</type><methodname>ibase_restore</methodname> <methodparam><type>resource</type><parameter>service_handle</parameter></methodparam> @@ -19,6 +20,7 @@ &warn.undocumented.func; </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-rollback-ret.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-rollback-ret.xml diff -u phpdoc/en/reference/ibase/functions/ibase-rollback-ret.xml:1.3 phpdoc/en/reference/ibase/functions/ibase-rollback-ret.xml:1.4 --- phpdoc/en/reference/ibase/functions/ibase-rollback-ret.xml:1.3 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-rollback-ret.xml Sat Jun 16 21:54:21 2007 @@ -1,26 +1,51 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="function.ibase-rollback-ret"> <refnamediv> <refname>ibase_rollback_ret</refname> <refpurpose>Roll back a transaction without closing it</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_rollback_ret</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_or_trans_identifier</parameter></methodparam> </methodsynopsis> <para> - If called without an argument, this function rolls back the default transaction - of the default link. If the argument is a connection identifier, the default - transaction of the corresponding connection will be rolled back. If the argument - is a transaction identifier, the corresponding transaction will be rolled back. - The transaction context will be retained, so statements executed from within - this transaction will not be invalidated. + Rolls back a transaction without closing it. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>link_or_trans_identifier</parameter></term> + <listitem> + <para> + If called without an argument, this function rolls back the default + transaction of the default link. If the argument is a connection + identifier, the default transaction of the corresponding connection + will be rolled back. If the argument is a transaction identifier, the + corresponding transaction will be rolled back. The transaction context + will be retained, so statements executed from within this transaction + will not be invalidated. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> &return.success; </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-rollback.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-rollback.xml diff -u phpdoc/en/reference/ibase/functions/ibase-rollback.xml:1.6 phpdoc/en/reference/ibase/functions/ibase-rollback.xml:1.7 --- phpdoc/en/reference/ibase/functions/ibase-rollback.xml:1.6 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-rollback.xml Sat Jun 16 21:54:21 2007 @@ -1,25 +1,49 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.23 --> +<!-- $Revision: 1.7 $ --> <refentry id="function.ibase-rollback"> <refnamediv> <refname>ibase_rollback</refname> <refpurpose>Roll back a transaction</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_rollback</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_or_trans_identifier</parameter></methodparam> </methodsynopsis> <para> - If called without an argument, this function rolls back the default transaction - of the default link. If the argument is a connection identifier, the default - transaction of the corresponding connection will be rolled back. If the argument - is a transaction identifier, the corresponding transaction will be rolled back. + Rolls back a transaction. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>link_or_trans_identifier</parameter></term> + <listitem> + <para> + If called without an argument, this function rolls back the default + transaction of the default link. If the argument is a connection + identifier, the default transaction of the corresponding connection + will be rolled back. If the argument is a transaction identifier, the + corresponding transaction will be rolled back. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> &return.success; </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-server-info.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-server-info.xml diff -u phpdoc/en/reference/ibase/functions/ibase-server-info.xml:1.2 phpdoc/en/reference/ibase/functions/ibase-server-info.xml:1.3 --- phpdoc/en/reference/ibase/functions/ibase-server-info.xml:1.2 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-server-info.xml Sat Jun 16 21:54:21 2007 @@ -1,12 +1,13 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.ibase-server-info"> <refnamediv> <refname>ibase_server_info</refname> <refpurpose>Request information about a database server</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>string</type><methodname>ibase_server_info</methodname> <methodparam><type>resource</type><parameter>service_handle</parameter></methodparam> @@ -16,6 +17,7 @@ &warn.undocumented.func; </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-service-attach.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-service-attach.xml diff -u phpdoc/en/reference/ibase/functions/ibase-service-attach.xml:1.2 phpdoc/en/reference/ibase/functions/ibase-service-attach.xml:1.3 --- phpdoc/en/reference/ibase/functions/ibase-service-attach.xml:1.2 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-service-attach.xml Sat Jun 16 21:54:21 2007 @@ -1,12 +1,13 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.ibase-service-attach"> <refnamediv> <refname>ibase_service_attach</refname> <refpurpose>Connect to the service manager</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>resource</type><methodname>ibase_service_attach</methodname> <methodparam><type>string</type><parameter>host</parameter></methodparam> @@ -17,6 +18,7 @@ &warn.undocumented.func; </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-service-detach.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-service-detach.xml diff -u phpdoc/en/reference/ibase/functions/ibase-service-detach.xml:1.2 phpdoc/en/reference/ibase/functions/ibase-service-detach.xml:1.3 --- phpdoc/en/reference/ibase/functions/ibase-service-detach.xml:1.2 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-service-detach.xml Sat Jun 16 21:54:21 2007 @@ -1,12 +1,13 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.ibase-service-detach"> <refnamediv> <refname>ibase_service_detach</refname> <refpurpose>Disconnect from the service manager</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_service_detach</methodname> <methodparam><type>resource</type><parameter>service_handle</parameter></methodparam> @@ -15,6 +16,14 @@ &warn.undocumented.func; </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-set-event-handler.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-set-event-handler.xml diff -u phpdoc/en/reference/ibase/functions/ibase-set-event-handler.xml:1.9 phpdoc/en/reference/ibase/functions/ibase-set-event-handler.xml:1.10 --- phpdoc/en/reference/ibase/functions/ibase-set-event-handler.xml:1.9 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-set-event-handler.xml Sat Jun 16 21:54:21 2007 @@ -1,12 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <refentry id="function.ibase-set-event-handler"> <refnamediv> <refname>ibase_set_event_handler</refname> <refpurpose>Register a callback function to be called when events are posted</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>resource</type><methodname>ibase_set_event_handler</methodname> <methodparam><type>callback</type><parameter>event_handler</parameter></methodparam> @@ -23,24 +24,79 @@ <methodparam choice="opt"><type>string</type><parameter>...</parameter></methodparam> </methodsynopsis> <para> - This function registers a PHP user function as event handler for the specified - events. The callback is called with the event name and the link resource as arguments - whenever one of the specified events is posted by the database. The callback must - return &false; if the event handler should be canceled. Any other return value is ignored. - This function accepts up to 15 event arguments. + This function registers a PHP user function as event handler for the + specified events. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>event_handler</parameter></term> + <listitem> + <para> + The callback is called with the event name and the link resource as + arguments whenever one of the specified events is posted by the + database. + </para> + <para> + The callback must return &false; if the event handler should be + canceled. Any other return value is ignored. This function accepts up + to 15 event arguments. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>event_name1</parameter></term> + <listitem> + <para> + An event name. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>event_name2</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>...</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - <informalexample> + The return value is an event resource. This resource can be used to free + the event handler using <function>ibase_free_event_handler</function>. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>ibase_set_event_handler</function> example</title> <programlisting role="php"> <![CDATA[ <?php function event_handler($event_name, $link) { - if ($event_name=="NEW ORDER") { + if ($event_name == "NEW ORDER") { // process new order ibase_query($link, "UPDATE orders SET status='handled'"); - } else if ($event_name=="DB_SHUTDOWN") { + } else if ($event_name == "DB_SHUTDOWN") { // free event handler return false; } @@ -50,18 +106,20 @@ ?> ]]> </programlisting> - </informalexample> - </para> - <para> - The return value is an event resource. This resource can be used to free the event handler - using <function>ibase_free_event_handler</function>. + </example> </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also - <function>ibase_free_event_handler</function> and - <function>ibase_wait_event</function>. + <simplelist> + <member><function>ibase_free_event_handler</function></member> + <member><function>ibase_wait_event</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-timefmt.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-timefmt.xml diff -u phpdoc/en/reference/ibase/functions/ibase-timefmt.xml:1.7 phpdoc/en/reference/ibase/functions/ibase-timefmt.xml:1.8 --- phpdoc/en/reference/ibase/functions/ibase-timefmt.xml:1.7 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-timefmt.xml Sat Jun 16 21:54:21 2007 @@ -1,49 +1,89 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.2 --> +<!-- $Revision: 1.8 $ --> <refentry id="function.ibase-timefmt"> <refnamediv> <refname>ibase_timefmt</refname> <refpurpose>Sets the format of timestamp, date and time type columns returned from queries</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> - <type>int</type><methodname>ibase_timefmt</methodname> + <type>bool</type><methodname>ibase_timefmt</methodname> <methodparam><type>string</type><parameter>format</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>columntype</parameter></methodparam> </methodsynopsis> <para> - Sets the format of timestamp, date or time type columns returned - from queries. Internally, the columns are formatted by c-function - strftime(), so refer to its documentation regarding to the format - of the string. <parameter>columntype</parameter> is one of the - constants IBASE_TIMESTAMP, IBASE_DATE and IBASE_TIME. If omitted, - defaults to IBASE_TIMESTAMP for backwards compatibility. + Sets the format of timestamp, date or time type columns returned from + queries. </para> <para> - <informalexample> + You can set defaults for these formats with the PHP configuration + directives <literal>ibase.timestampformat</literal>, + <literal>ibase.dateformat</literal> and + <literal>ibase.timeformat</literal>. + </para> + <note> + <para> + This function has been removed from PHP 5, use + <function>ini_set</function> instead. + </para> + </note> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>format</parameter></term> + <listitem> + <para> + Internally, the columns are formatted by c-function strftime(), so + refer to its documentation regarding to the format of the string. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>columntype</parameter></term> + <listitem> + <para> + <parameter>columntype</parameter> is one of the constants + <constant>IBASE_TIMESTAMP</constant>, <constant>IBASE_DATE</constant> + and <constant>IBASE_TIME</constant>. If omitted, defaults to + <constant>IBASE_TIMESTAMP</constant> for backwards compatibility. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>ibase_timefmt</function> example</title> <programlisting role="php"> <![CDATA[ <?php - /* InterBase 6 TIME-type columns will be returned in - * the form '05 hours 37 minutes'. */ - ibase_timefmt("%H hours %M minutes", IBASE_TIME); +/* InterBase 6 TIME-type columns will be returned in + * the form '05 hours 37 minutes'. */ +ibase_timefmt("%H hours %M minutes", IBASE_TIME); ?> ]]> </programlisting> - </informalexample> - </para> - <para> - You can set defaults for these formats with the PHP configuration - directives ibase.timestampformat, ibase.dateformat and ibase.timeformat. + </example> </para> - <note> - <para> - This function has been removed from PHP 5, use <function>ini_set</function> instead. - </para> - </note> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-trans.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-trans.xml diff -u phpdoc/en/reference/ibase/functions/ibase-trans.xml:1.7 phpdoc/en/reference/ibase/functions/ibase-trans.xml:1.8 --- phpdoc/en/reference/ibase/functions/ibase-trans.xml:1.7 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-trans.xml Sat Jun 16 21:54:21 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.23 --> +<!-- $Revision: 1.8 $ --> <refentry id="function.ibase-trans"> <refnamediv> <refname>ibase_trans</refname> <refpurpose>Begin a transaction</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>resource</type><methodname>ibase_trans</methodname> <methodparam choice="opt"><type>int</type><parameter>trans_args</parameter></methodparam> @@ -16,12 +16,6 @@ <para> Begins a transaction. </para> - <para> - <parameter>trans_args</parameter> can be a combination of - IBASE_READ, IBASE_WRITE, IBASE_COMMITTED, IBASE_CONSISTENCY, - IBASE_CONCURRENCY, IBASE_REC_VERSION, IBASE_REC_NO_VERSION, - IBASE_WAIT and IBASE_NOWAIT. - </para> <note> <para> The behaviour of this function has been changed in PHP 5.0.0. The first call @@ -48,6 +42,48 @@ </para> </note> </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>trans_args</parameter></term> + <listitem> + <para> + <parameter>trans_args</parameter> can be a combination of + <constant>IBASE_READ</constant>, + <constant>IBASE_WRITE</constant>, + <constant>IBASE_COMMITTED</constant>, + <constant>IBASE_CONSISTENCY</constant>, + <constant>IBASE_CONCURRENCY</constant>, + <constant>IBASE_REC_VERSION</constant>, + <constant>IBASE_REC_NO_VERSION</constant>, + <constant>IBASE_WAIT</constant> and + <constant>IBASE_NOWAIT</constant>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>link_identifier</parameter></term> + <listitem> + <para> + An InterBase link identifier. If omitted, the last opened link is + assumed. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns a transaction handle, or &false; on error. + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-wait-event.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-wait-event.xml diff -u phpdoc/en/reference/ibase/functions/ibase-wait-event.xml:1.4 phpdoc/en/reference/ibase/functions/ibase-wait-event.xml:1.5 --- phpdoc/en/reference/ibase/functions/ibase-wait-event.xml:1.4 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-wait-event.xml Sat Jun 16 21:54:21 2007 @@ -1,12 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="function.ibase-wait-event"> <refnamediv> <refname>ibase_wait_event</refname> <refpurpose>Wait for an event to be posted by the database</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>string</type><methodname>ibase_wait_event</methodname> <methodparam><type>string</type><parameter>event_name1</parameter></methodparam> @@ -25,12 +26,55 @@ is posted by the database. The name of the event that was posted is returned. This function accepts up to 15 event arguments. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>event_name1</parameter></term> + <listitem> + <para> + The event name. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>event_name2</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>...</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_set_event_handler</function> and - <function>ibase_free_event_handler</function>. + Returns the name of the event that was posted. </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_set_event_handler</function></member> + <member><function>ibase_free_event_handler</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-add-user.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-add-user.xml diff -u phpdoc/en/reference/ibase/functions/ibase-add-user.xml:1.4 phpdoc/en/reference/ibase/functions/ibase-add-user.xml:1.5 --- phpdoc/en/reference/ibase/functions/ibase-add-user.xml:1.4 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-add-user.xml Sat Jun 16 21:54:20 2007 @@ -1,12 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="function.ibase-add-user"> <refnamediv> <refname>ibase_add_user</refname> <refpurpose>Add a user to a security database (only for IB6 or later)</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_add_user</methodname> <methodparam><type>resource</type><parameter>service_handle</parameter></methodparam> @@ -16,7 +17,6 @@ <methodparam choice="opt"><type>string</type><parameter>middle_name</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>last_name</parameter></methodparam> </methodsynopsis> - <para> PHP 4 uses <parameter>server</parameter>, <parameter>dba_user_name</parameter> and @@ -24,13 +24,25 @@ <parameter>service_handle</parameter> parameter. </para> &warn.undocumented.func; + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_modify_user</function> and - <function>ibase_delete_user</function>. + &return.success; </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_modify_user</function></member> + <member><function>ibase_delete_user</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-affected-rows.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-affected-rows.xml diff -u phpdoc/en/reference/ibase/functions/ibase-affected-rows.xml:1.4 phpdoc/en/reference/ibase/functions/ibase-affected-rows.xml:1.5 --- phpdoc/en/reference/ibase/functions/ibase-affected-rows.xml:1.4 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-affected-rows.xml Sat Jun 16 21:54:20 2007 @@ -1,29 +1,58 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="function.ibase-affected-rows"> <refnamediv> <refname>ibase_affected_rows</refname> <refpurpose>Return the number of rows that were affected by the previous query</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>int</type><methodname>ibase_affected_rows</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> This function returns the number of rows that were affected by the - previous query (INSERT, UPDATE or DELETE) that was - executed from within the transaction context specified by <parameter>link_identifier</parameter>. - If <parameter>link_identifier</parameter> is a connection resource, its default transaction - is used. + previous query (INSERT, UPDATE or DELETE) that was executed from within + the specified transaction context. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>link_identifier</parameter></term> + <listitem> + <para> + A transaction context. If <parameter>link_identifier</parameter> is a + connection resource, its default transaction is used. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_query</function> and - <function>ibase_execute</function>. + Returns the number of rows as an integer. </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_query</function></member> + <member><function>ibase_execute</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-backup.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-backup.xml diff -u phpdoc/en/reference/ibase/functions/ibase-backup.xml:1.2 phpdoc/en/reference/ibase/functions/ibase-backup.xml:1.3 --- phpdoc/en/reference/ibase/functions/ibase-backup.xml:1.2 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-backup.xml Sat Jun 16 21:54:20 2007 @@ -1,12 +1,13 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.ibase-backup"> <refnamediv> <refname>ibase_backup</refname> <refpurpose>Initiates a backup task in the service manager and returns immediately</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>mixed</type><methodname>ibase_backup</methodname> <methodparam><type>resource</type><parameter>service_handle</parameter></methodparam> @@ -19,6 +20,7 @@ &warn.undocumented.func; </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-blob-add.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-blob-add.xml diff -u phpdoc/en/reference/ibase/functions/ibase-blob-add.xml:1.6 phpdoc/en/reference/ibase/functions/ibase-blob-add.xml:1.7 --- phpdoc/en/reference/ibase/functions/ibase-blob-add.xml:1.6 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-blob-add.xml Sat Jun 16 21:54:20 2007 @@ -1,31 +1,67 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.39 --> +<!-- $Revision: 1.7 $ --> <refentry id='function.ibase-blob-add'> <refnamediv> <refname>ibase_blob_add</refname> <refpurpose>Add data into a newly created blob</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>void</type><methodname>ibase_blob_add</methodname> <methodparam><type>resource</type><parameter>blob_handle</parameter></methodparam> <methodparam><type>string</type><parameter>data</parameter></methodparam> </methodsynopsis> <para> - <function>ibase_blob_add</function> adds data into a blob - created with <function>ibase_blob_create</function>. - Returns &null; on success or &false; on failure. + <function>ibase_blob_add</function> adds data into a blob created with + <function>ibase_blob_create</function>. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>blob_handle</parameter></term> + <listitem> + <para> + A blob handle opened with <function>ibase_blob_create</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>data</parameter></term> + <listitem> + <para> + The data to be added. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_blob_cancel</function>, - <function>ibase_blob_close</function>, - <function>ibase_blob_create</function> and - <function>ibase_blob_import</function>. + &return.void; </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_blob_cancel</function></member> + <member><function>ibase_blob_close</function></member> + <member><function>ibase_blob_create</function></member> + <member><function>ibase_blob_import</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-blob-cancel.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-blob-cancel.xml diff -u phpdoc/en/reference/ibase/functions/ibase-blob-cancel.xml:1.5 phpdoc/en/reference/ibase/functions/ibase-blob-cancel.xml:1.6 --- phpdoc/en/reference/ibase/functions/ibase-blob-cancel.xml:1.5 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-blob-cancel.xml Sat Jun 16 21:54:20 2007 @@ -1,29 +1,57 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.39 --> +<!-- $Revision: 1.6 $ --> <refentry id='function.ibase-blob-cancel'> <refnamediv> <refname>ibase_blob_cancel</refname> <refpurpose>Cancel creating blob</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_blob_cancel</methodname> <methodparam><type>resource</type><parameter>blob_handle</parameter></methodparam> </methodsynopsis> <para> - This function will discard a BLOB created by <function>ibase_create_blob</function> - if it has not yet been closed by <function>ibase_blob_close</function>. + This function will discard a BLOB if it has not yet been closed by + <function>ibase_blob_close</function>. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>blob_handle</parameter></term> + <listitem> + <para> + A BLOB handle opened with <function>ibase_create_blob</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> &return.success; </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also - <function>ibase_blob_close</function>, - <function>ibase_blob_create</function> and - <function>ibase_blob_import</function>. + <simplelist> + <member><function>ibase_blob_close</function></member> + <member><function>ibase_blob_create</function></member> + <member><function>ibase_blob_import</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-blob-close.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-blob-close.xml diff -u phpdoc/en/reference/ibase/functions/ibase-blob-close.xml:1.5 phpdoc/en/reference/ibase/functions/ibase-blob-close.xml:1.6 --- phpdoc/en/reference/ibase/functions/ibase-blob-close.xml:1.5 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-blob-close.xml Sat Jun 16 21:54:20 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.39 --> +<!-- $Revision: 1.6 $ --> <refentry id='function.ibase-blob-close'> <refnamediv> <refname>ibase_blob_close</refname> <refpurpose>Close blob</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>mixed</type><methodname>ibase_blob_close</methodname> <methodparam><type>resource</type><parameter>blob_handle</parameter></methodparam> @@ -15,17 +15,47 @@ <para> This function closes a BLOB that has either been opened for reading by <function>ibase_open_blob</function> or has been opened for writing by - <function>ibase_create_blob</function>. If the BLOB was being read, this function - returns &true; on success, if the BLOB was being written to, this function - returns a string containing the BLOB id that has been assigned to it by the database. - On failure, this function returns &false;. + <function>ibase_create_blob</function>. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>blob_handle</parameter></term> + <listitem> + <para> + A BLOB handle opened with <function>ibase_create_blob</function> or + <function>ibase_open_blob</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_blob_cancel</function> and - <function>ibase_blob_open</function>. + If the BLOB was being read, this function returns &true; on success, if + the BLOB was being written to, this function returns a string containing + the BLOB id that has been assigned to it by the database. On failure, this + function returns &false;. </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_blob_cancel</function></member> + <member><function>ibase_blob_open</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-blob-create.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-blob-create.xml diff -u phpdoc/en/reference/ibase/functions/ibase-blob-create.xml:1.5 phpdoc/en/reference/ibase/functions/ibase-blob-create.xml:1.6 --- phpdoc/en/reference/ibase/functions/ibase-blob-create.xml:1.5 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-blob-create.xml Sat Jun 16 21:54:20 2007 @@ -1,30 +1,60 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.39 --> +<!-- $Revision: 1.6 $ --> <refentry id='function.ibase-blob-create'> <refnamediv> <refname>ibase_blob_create</refname> <refpurpose>Create a new blob for adding data</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>resource</type><methodname>ibase_blob_create</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> - <function>ibase_blob_create</function> creates a new BLOB for - filling with data. It returns a BLOB handle for later use with + <function>ibase_blob_create</function> creates a new BLOB for filling with + data. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>link_identifier</parameter></term> + <listitem> + <para> + An InterBase link identifier. If omitted, the last opened link is + assumed. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns a BLOB handle for later use with <function>ibase_blob_add</function> or &false; on failure. </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also - <function>ibase_blob_add</function>, - <function>ibase_blob_cancel</function>, - <function>ibase_blob_close</function> and - <function>ibase_blob_import</function>. + <simplelist> + <member><function>ibase_blob_add</function></member> + <member><function>ibase_blob_cancel</function></member> + <member><function>ibase_blob_close</function></member> + <member><function>ibase_blob_import</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-blob-echo.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-blob-echo.xml diff -u phpdoc/en/reference/ibase/functions/ibase-blob-echo.xml:1.6 phpdoc/en/reference/ibase/functions/ibase-blob-echo.xml:1.7 --- phpdoc/en/reference/ibase/functions/ibase-blob-echo.xml:1.6 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-blob-echo.xml Sat Jun 16 21:54:20 2007 @@ -1,34 +1,66 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.39 --> +<!-- $Revision: 1.7 $ --> <refentry id='function.ibase-blob-echo'> <refnamediv> <refname>ibase_blob_echo</refname> <refpurpose>Output blob contents to browser</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>bool</type><methodname>ibase_blob_echo</methodname> - <methodparam><type>resource</type><parameter>link_identifier</parameter></methodparam> - <methodparam><type>string</type><parameter>blob_id</parameter></methodparam> - </methodsynopsis> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_blob_echo</methodname> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> <methodparam><type>string</type><parameter>blob_id</parameter></methodparam> </methodsynopsis> <para> - This function opens a BLOB for reading and sends its contents directly - to standard output (the browser, in most cases). + This function opens a BLOB for reading and sends its contents directly to + standard output (the browser, in most cases). + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>link_identifier</parameter></term> + <listitem> + <para> + An InterBase link identifier. If omitted, the last opened link is + assumed. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>blob_id</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> &return.success; </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also - <function>ibase_blob_open</function>, - <function>ibase_blob_close</function> and - <function>ibase_blob_get</function>. + <simplelist> + <member><function>ibase_blob_open</function></member> + <member><function>ibase_blob_close</function></member> + <member><function>ibase_blob_get</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-blob-get.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-blob-get.xml diff -u phpdoc/en/reference/ibase/functions/ibase-blob-get.xml:1.6 phpdoc/en/reference/ibase/functions/ibase-blob-get.xml:1.7 --- phpdoc/en/reference/ibase/functions/ibase-blob-get.xml:1.6 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-blob-get.xml Sat Jun 16 21:54:20 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.41 --> +<!-- $Revision: 1.7 $ --> <refentry id='function.ibase-blob-get'> <refnamediv> <refname>ibase_blob_get</refname> <refpurpose>Get len bytes data from open blob</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>string</type><methodname>ibase_blob_get</methodname> <methodparam><type>resource</type><parameter>blob_handle</parameter></methodparam> @@ -16,23 +16,6 @@ <para> This function returns at most <parameter>len</parameter> bytes from a BLOB that has been opened for reading by <function>ibase_blob_open</function>. - Returns &false; on failure. - <informalexample> - <programlisting role="php"> -<![CDATA[ -<?php - $sql = "SELECT blob_value FROM table"; - $result = ibase_query($sql); - $data = ibase_fetch_object($result); - $blob_data = ibase_blob_info($data->BLOB_VALUE); - $blob_hndl = ibase_blob_open($data->BLOB_VALUE); - echo ibase_blob_get($blob_hndl, $blob_data[0]); -?> -]]> - </programlisting> - </informalexample> - Whilst this example doesn't do much more than a 'ibase_blob_echo($data->BLOB_VALUE)' would do, - it does show you how to get information into a $variable to manipulate as you please. </para> <note> <para> @@ -40,13 +23,74 @@ by <function>ibase_blob_create</function>. </para> </note> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; <para> - See also - <function>ibase_blob_open</function>, - <function>ibase_blob_close</function> and - <function>ibase_blob_echo</function>. + <variablelist> + <varlistentry> + <term><parameter>blob_handle</parameter></term> + <listitem> + <para> + A BLOB handle opened with <function>ibase_blob_open</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>len</parameter></term> + <listitem> + <para> + Size of returned data. + </para> + </listitem> + </varlistentry> + </variablelist> </para> </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns at most <parameter>len</parameter> bytes from the BLOB, or &false; + on failure. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>ibase_blob_get</function> example</title> + <programlisting role="php"> +<![CDATA[ +<?php +$result = ibase_query("SELECT blob_value FROM table"); +$data = ibase_fetch_object($result); +$blob_data = ibase_blob_info($data->BLOB_VALUE); +$blob_hndl = ibase_blob_open($data->BLOB_VALUE); +echo ibase_blob_get($blob_hndl, $blob_data[0]); +?> +]]> + </programlisting> + </example> + Whilst this example doesn't do much more than a + 'ibase_blob_echo($data->BLOB_VALUE)' would do, it does show you how to get + information into a $variable to manipulate as you please. + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_blob_open</function></member> + <member><function>ibase_blob_close</function></member> + <member><function>ibase_blob_echo</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-blob-import.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-blob-import.xml diff -u phpdoc/en/reference/ibase/functions/ibase-blob-import.xml:1.8 phpdoc/en/reference/ibase/functions/ibase-blob-import.xml:1.9 --- phpdoc/en/reference/ibase/functions/ibase-blob-import.xml:1.8 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-blob-import.xml Sat Jun 16 21:54:20 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.39 --> +<!-- $Revision: 1.9 $ --> <refentry id='function.ibase-blob-import'> <refnamediv> <refname>ibase_blob_import</refname> <refpurpose>Create blob, copy file in it, and close it</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>string</type><methodname>ibase_blob_import</methodname> <methodparam><type>resource</type><parameter>link_identifier</parameter></methodparam> @@ -19,9 +19,44 @@ </methodsynopsis> <para> This function creates a BLOB, reads an entire file into it, closes it and - returns the assigned BLOB id. The file handle is a handle returned by - <function>fopen</function>. Returns &false; on failure. + returns the assigned BLOB id. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>link_identifier</parameter></term> + <listitem> + <para> + An InterBase link identifier. If omitted, the last opened link is + assumed. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>file_handle</parameter></term> + <listitem> + <para> + The file handle is a handle returned by <function>fopen</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns the BLOB id on success, or &false; on error. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; <para> <example> <title><function>ibase_blob_import</function> example</title> @@ -54,14 +89,20 @@ </programlisting> </example> </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also - <function>ibase_blob_add</function>, - <function>ibase_blob_cancel</function>, - <function>ibase_blob_close</function> and - <function>ibase_blob_create</function>. + <simplelist> + <member><function>ibase_blob_add</function></member> + <member><function>ibase_blob_cancel</function></member> + <member><function>ibase_blob_close</function></member> + <member><function>ibase_blob_create</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-blob-info.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-blob-info.xml diff -u phpdoc/en/reference/ibase/functions/ibase-blob-info.xml:1.5 phpdoc/en/reference/ibase/functions/ibase-blob-info.xml:1.6 --- phpdoc/en/reference/ibase/functions/ibase-blob-info.xml:1.5 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-blob-info.xml Sat Jun 16 21:54:20 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.39 --> +<!-- $Revision: 1.6 $ --> <refentry id='function.ibase-blob-info'> <refnamediv> <refname>ibase_blob_info</refname> <refpurpose>Return blob length and other useful info</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>array</type><methodname>ibase_blob_info</methodname> <methodparam><type>resource</type><parameter>link_identifier</parameter></methodparam> @@ -18,11 +18,44 @@ <methodparam><type>string</type><parameter>blob_id</parameter></methodparam> </methodsynopsis> <para> + Returns the BLOB length and other useful information. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>link_identifier</parameter></term> + <listitem> + <para> + An InterBase link identifier. If omitted, the last opened link is + assumed. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>blob_id</parameter></term> + <listitem> + <para> + A BLOB id. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> Returns an array containing information about a BLOB. The information returned consists of the length of the BLOB, the number of segments it contains, the size of the largest segment, and whether it is a stream BLOB or a segmented BLOB. </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-blob-open.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-blob-open.xml diff -u phpdoc/en/reference/ibase/functions/ibase-blob-open.xml:1.5 phpdoc/en/reference/ibase/functions/ibase-blob-open.xml:1.6 --- phpdoc/en/reference/ibase/functions/ibase-blob-open.xml:1.5 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-blob-open.xml Sat Jun 16 21:54:20 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.39 --> +<!-- $Revision: 1.6 $ --> <refentry id='function.ibase-blob-open'> <refnamediv> <refname>ibase_blob_open</refname> <refpurpose>Open blob for retrieving data parts</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>resource</type><methodname>ibase_blob_open</methodname> <methodparam><type>resource</type><parameter>link_identifier</parameter></methodparam> @@ -18,17 +18,54 @@ <methodparam><type>string</type><parameter>blob_id</parameter></methodparam> </methodsynopsis> <para> - <function>ibase_blob_open</function> opens an existing BLOB for - reading. It returns a BLOB handle for later use with + Opens an existing BLOB for reading. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>link_identifier</parameter></term> + <listitem> + <para> + An InterBase link identifier. If omitted, the last opened link is + assumed. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>blob_id</parameter></term> + <listitem> + <para> + A BLOB id. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns a BLOB handle for later use with <function>ibase_blob_get</function> or &false; on failure. </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also - <function>ibase_blob_close</function>, - <function>ibase_blob_echo</function> and - <function>ibase_blob_get</function>. + <simplelist> + <member><function>ibase_blob_close</function></member> + <member><function>ibase_blob_echo</function></member> + <member><function>ibase_blob_get</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-close.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-close.xml diff -u phpdoc/en/reference/ibase/functions/ibase-close.xml:1.4 phpdoc/en/reference/ibase/functions/ibase-close.xml:1.5 --- phpdoc/en/reference/ibase/functions/ibase-close.xml:1.4 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-close.xml Sat Jun 16 21:54:20 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.2 --> +<!-- $Revision: 1.5 $ --> <refentry id="function.ibase-close"> <refnamediv> <refname>ibase_close</refname> <refpurpose>Close a connection to an InterBase database</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_close</methodname> <methodparam choice="opt"><type>resource</type><parameter>connection_id</parameter></methodparam> @@ -15,16 +15,46 @@ <para> Closes the link to an InterBase database that's associated with a connection id returned from <function>ibase_connect</function>. - If the connection id is omitted, the last opened link is assumed. Default transaction on link is committed, other transactions are - rolled back. &return.success; + rolled back. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>connection_id</parameter></term> + <listitem> + <para> + An InterBase link identifier returned from + <function>ibase_connect</function>. If omitted, the last opened link + is assumed. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_connect</function> and - <function>ibase_pconnect</function>. + &return.success; </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_connect</function></member> + <member><function>ibase_pconnect</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-commit-ret.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-commit-ret.xml diff -u phpdoc/en/reference/ibase/functions/ibase-commit-ret.xml:1.3 phpdoc/en/reference/ibase/functions/ibase-commit-ret.xml:1.4 --- phpdoc/en/reference/ibase/functions/ibase-commit-ret.xml:1.3 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-commit-ret.xml Sat Jun 16 21:54:20 2007 @@ -1,26 +1,51 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="function.ibase-commit-ret"> <refnamediv> <refname>ibase_commit_ret</refname> <refpurpose>Commit a transaction without closing it</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_commit_ret</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_or_trans_identifier</parameter></methodparam> </methodsynopsis> <para> - If called without an argument, this function commits the default transaction - of the default link. If the argument is a connection identifier, the default - transaction of the corresponding connection will be committed. If the argument - is a transaction identifier, the corresponding transaction will be committed. - The transaction context will be retained, so statements executed from within - this transaction will not be invalidated. + Commits a transaction without closing it. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>link_or_trans_identifier</parameter></term> + <listitem> + <para> + If called without an argument, this function commits the default + transaction of the default link. If the argument is a connection + identifier, the default transaction of the corresponding connection + will be committed. If the argument is a transaction identifier, the + corresponding transaction will be committed. The transaction context + will be retained, so statements executed from within this transaction + will not be invalidated. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> &return.success; </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-commit.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-commit.xml diff -u phpdoc/en/reference/ibase/functions/ibase-commit.xml:1.6 phpdoc/en/reference/ibase/functions/ibase-commit.xml:1.7 --- phpdoc/en/reference/ibase/functions/ibase-commit.xml:1.6 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-commit.xml Sat Jun 16 21:54:20 2007 @@ -1,25 +1,49 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.23 --> +<!-- $Revision: 1.7 $ --> <refentry id="function.ibase-commit"> <refnamediv> <refname>ibase_commit</refname> <refpurpose>Commit a transaction</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_commit</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_or_trans_identifier</parameter></methodparam> </methodsynopsis> <para> - If called without an argument, this function commits the default transaction - of the default link. If the argument is a connection identifier, the default - transaction of the corresponding connection will be committed. If the argument - is a transaction identifier, the corresponding transaction will be committed. + Commits a transaction. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>link_or_trans_identifier</parameter></term> + <listitem> + <para> + If called without an argument, this function commits the default + transaction of the default link. If the argument is a connection + identifier, the default transaction of the corresponding connection + will be committed. If the argument is a transaction identifier, the + corresponding transaction will be committed. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> &return.success; </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-connect.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-connect.xml diff -u phpdoc/en/reference/ibase/functions/ibase-connect.xml:1.8 phpdoc/en/reference/ibase/functions/ibase-connect.xml:1.9 --- phpdoc/en/reference/ibase/functions/ibase-connect.xml:1.8 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-connect.xml Sat Jun 16 21:54:20 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.2 --> +<!-- $Revision: 1.9 $ --> <refentry id="function.ibase-connect"> <refnamediv> <refname>ibase_connect</refname> <refpurpose>Open a connection to an InterBase database</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>resource</type><methodname>ibase_connect</methodname> <methodparam choice="opt"><type>string</type><parameter>database</parameter></methodparam> @@ -21,80 +21,177 @@ </methodsynopsis> <para> Establishes a connection to an InterBase server. - The <parameter>database</parameter> argument - has to be a valid path to database file on the server it resides on. - If the server is not local, it must be prefixed with either - 'hostname:' (TCP/IP), '//hostname/' (NetBEUI) or 'hostname@' (IPX/SPX), - depending on the connection protocol used. <parameter>username</parameter> - and <parameter>password</parameter> can also - be specified with PHP configuration directives ibase.default_user and - ibase.default_password. <parameter>charset</parameter> is the default - character set for a database. <parameter>buffers</parameter> is the number - of database buffers to allocate for the server-side cache. If 0 or omitted, - server chooses its own default. <parameter>dialect</parameter> selects - the default SQL dialect for any statement executed within a connection, - and it defaults to the highest one supported by client libraries. - </para> - <para> - In case a second call is made to - <function>ibase_connect</function> with the same arguments, no new link - will be established, but instead, the link identifier of the already opened - link will be returned. The link to the server will be closed as soon as the - execution of the script ends, unless it's closed earlier by explicitly calling - <function>ibase_close</function>. + </para> + <para> + In case a second call is made to <function>ibase_connect</function> with + the same arguments, no new link will be established, but instead, the link + identifier of the already opened link will be returned. The link to the + server will be closed as soon as the execution of the script ends, unless + it's closed earlier by explicitly calling <function>ibase_close</function>. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>database</parameter></term> + <listitem> + <para> + The <parameter>database</parameter> argument has to be a valid path to + database file on the server it resides on. If the server is not local, + it must be prefixed with either 'hostname:' (TCP/IP), '//hostname/' + (NetBEUI) or 'hostname@' (IPX/SPX), depending on the connection + protocol used. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>username</parameter></term> + <listitem> + <para> + The user name. Can be set with the + <literal>ibase.default_user</literal> &php.ini; directive. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>password</parameter></term> + <listitem> + <para> + The password for <parameter>username</parameter>. Can be set with the + <literal>ibase.default_password</literal> &php.ini; directive. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>charset</parameter></term> + <listitem> + <para> + <parameter>charset</parameter> is the default character set for a + database. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>buffers</parameter></term> + <listitem> + <para> + <parameter>buffers</parameter> is the number of database buffers to + allocate for the server-side cache. If 0 or omitted, server chooses + its own default. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>dialect</parameter></term> + <listitem> + <para> + <parameter>dialect</parameter> selects the default SQL dialect for any + statement executed within a connection, and it defaults to the highest + one supported by client libraries. Functional only with InterBase 6 + and up. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>role</parameter></term> + <listitem> + <para> + Functional only with InterBase 5 and up. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>sync</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns an InterBase link identifier on success, or &false; on error. + </para> + </refsect1> + + <refsect1 role="errors"> + &reftitle.errors; + <para> + If you get some error like "arithmetic exception, numeric overflow, or + string truncation. Cannot transliterate character between character sets" + (this occurs when you try use some character with accents) when using this + and after <function>ibase_query</function> you must set the character set + (i.e. ISO8859_1 or your current character set). + </para> + </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>4.0.0</entry> + <entry> + The <parameter>buffers</parameter>, <parameter>dialect</parameter> + and <parameter>role</parameter> parameters were added + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> <example> <title><function>ibase_connect</function> example</title> <programlisting role="php"> <![CDATA[ <?php - $host = 'localhost:/path/to/your.gdb'; +$host = 'localhost:/path/to/your.gdb'; - $dbh = ibase_connect($host, $username, $password); - $stmt = 'SELECT * FROM tblname'; - $sth = ibase_query($dbh, $stmt); - while ($row = ibase_fetch_object($sth)) { - echo $row->email, "\n"; - } - ibase_free_result($sth); - ibase_close($dbh); +$dbh = ibase_connect($host, $username, $password); +$stmt = 'SELECT * FROM tblname'; +$sth = ibase_query($dbh, $stmt); +while ($row = ibase_fetch_object($sth)) { + echo $row->email, "\n"; +} +ibase_free_result($sth); +ibase_close($dbh); ?> ]]> </programlisting> </example> </para> - <note> - <para> - The optional <parameter>buffers</parameter> parameter was added in - PHP 4.0.0. - </para> - </note> - <note> - <para> - The optional <parameter>dialect</parameter> parameter was added in PHP - 4.0.0 and is functional only with InterBase 6 and up. - </para> - </note> - <note> - <para> - The optional <parameter>role</parameter> parameter was added in PHP - 4.0.0 and is functional only with InterBase 5 and up. - </para> - </note> - <note> - <para> - If you get some error like "arithmetic exception, numeric overflow, - or string truncation. Cannot transliterate character between character - sets" (this occurs when you try use some character with accents) - when using this and after <function>ibase_query</function> you must - set the character set (i.e. ISO8859_1 or your current character set). - </para> - </note> - <para> - See also - <function>ibase_pconnect</function> and - <function>ibase_close</function>. + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_pconnect</function></member> + <member><function>ibase_close</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-db-info.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-db-info.xml diff -u phpdoc/en/reference/ibase/functions/ibase-db-info.xml:1.2 phpdoc/en/reference/ibase/functions/ibase-db-info.xml:1.3 --- phpdoc/en/reference/ibase/functions/ibase-db-info.xml:1.2 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-db-info.xml Sat Jun 16 21:54:20 2007 @@ -1,12 +1,13 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.ibase-db-info"> <refnamediv> <refname>ibase_db_info</refname> <refpurpose>Request statistics about a database</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>string</type><methodname>ibase_db_info</methodname> <methodparam><type>resource</type><parameter>service_handle</parameter></methodparam> @@ -18,6 +19,7 @@ &warn.undocumented.func; </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-delete-user.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-delete-user.xml diff -u phpdoc/en/reference/ibase/functions/ibase-delete-user.xml:1.4 phpdoc/en/reference/ibase/functions/ibase-delete-user.xml:1.5 --- phpdoc/en/reference/ibase/functions/ibase-delete-user.xml:1.4 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-delete-user.xml Sat Jun 16 21:54:20 2007 @@ -1,12 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="function.ibase-delete-user"> <refnamediv> <refname>ibase_delete_user</refname> <refpurpose>Delete a user from a security database (only for IB6 or later)</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_delete_user</methodname> <methodparam><type>resource</type><parameter>service_handle</parameter></methodparam> @@ -21,12 +22,25 @@ </para> &warn.undocumented.func; + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_add_user</function> and - <function>ibase_modify_user</function>. + &return.success; </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_add_user</function></member> + <member><function>ibase_modify_user</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-drop-db.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-drop-db.xml diff -u phpdoc/en/reference/ibase/functions/ibase-drop-db.xml:1.3 phpdoc/en/reference/ibase/functions/ibase-drop-db.xml:1.4 --- phpdoc/en/reference/ibase/functions/ibase-drop-db.xml:1.3 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-drop-db.xml Sat Jun 16 21:54:20 2007 @@ -1,12 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="function.ibase-drop-db"> <refnamediv> <refname>ibase_drop_db</refname> <refpurpose>Drops a database</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_drop_db</methodname> <methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam> @@ -14,14 +15,43 @@ <para> This functions drops a database that was opened by either <function>ibase_connect</function> or <function>ibase_pconnect</function>. The database is closed and deleted from the server. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>connection</parameter></term> + <listitem> + <para> + An InterBase link identifier. If omitted, the last opened link is + assumed. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> &return.success; </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also - <function>ibase_connect</function> and - <function>ibase_pconnect</function>. + <simplelist> + <member><function>ibase_connect</function></member> + <member><function>ibase_pconnect</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-errcode.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-errcode.xml diff -u phpdoc/en/reference/ibase/functions/ibase-errcode.xml:1.2 phpdoc/en/reference/ibase/functions/ibase-errcode.xml:1.3 --- phpdoc/en/reference/ibase/functions/ibase-errcode.xml:1.2 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-errcode.xml Sat Jun 16 21:54:20 2007 @@ -1,25 +1,39 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.ibase-errcode"> <refnamediv> <refname>ibase_errcode</refname> <refpurpose>Return an error code</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>int</type><methodname>ibase_errcode</methodname> <void/> </methodsynopsis> <para> Returns the error code that resulted from the most recent InterBase function - call. Returns &false; if no error occurred. + call. </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_errmsg</function>. + Returns the error code as an integer, or &false; if no error occured. </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_errmsg</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-errmsg.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-errmsg.xml diff -u phpdoc/en/reference/ibase/functions/ibase-errmsg.xml:1.5 phpdoc/en/reference/ibase/functions/ibase-errmsg.xml:1.6 --- phpdoc/en/reference/ibase/functions/ibase-errmsg.xml:1.5 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-errmsg.xml Sat Jun 16 21:54:20 2007 @@ -1,26 +1,39 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.37 --> +<!-- $Revision: 1.6 $ --> <refentry id="function.ibase-errmsg"> <refnamediv> <refname>ibase_errmsg</refname> <refpurpose>Return error messages</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>string</type><methodname>ibase_errmsg</methodname> <void/> </methodsynopsis> <simpara> Returns the error message that resulted from the most recent InterBase function - call. Returns &false; if no error occurred. + call. </simpara> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_errcode</function>. + Returns the error message as a string, or &false; if no error occured. </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_errcode</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-execute.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-execute.xml diff -u phpdoc/en/reference/ibase/functions/ibase-execute.xml:1.11 phpdoc/en/reference/ibase/functions/ibase-execute.xml:1.12 --- phpdoc/en/reference/ibase/functions/ibase-execute.xml:1.11 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-execute.xml Sat Jun 16 21:54:20 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.2 --> +<!-- $Revision: 1.12 $ --> <refentry id="function.ibase-execute"> <refnamediv> <refname>ibase_execute</refname> <refpurpose>Execute a previously prepared query</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>resource</type><methodname>ibase_execute</methodname> <methodparam><type>resource</type><parameter>query</parameter></methodparam> @@ -15,17 +15,65 @@ <methodparam choice="opt"><type>mixed</type><parameter>...</parameter></methodparam> </methodsynopsis> <para> - Execute a query prepared by <function>ibase_prepare</function>. If - the query raises an error, returns &false;. If it is successful and - there is a (possibly empty) result set (such as with a SELECT query), - returns a result identifier. If the query was successful and there were - no results, returns &true;. + Execute a query prepared by <function>ibase_prepare</function>. </para> <para> This is a lot more effective than using <function>ibase_query</function> if you are repeating a same kind of query several times with only some parameters changing. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>query</parameter></term> + <listitem> + <para> + An InterBase query prepared by <function>ibase_prepare</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>bind_arg</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>...</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + If the query raises an error, returns &false;. If it is successful and + there is a (possibly empty) result set (such as with a SELECT query), + returns a result identifier. If the query was successful and there were + no results, returns &true;. + </para> + <note> + <para> + In PHP 5.0.0 and up, this function returns the number of rows affected by + the query (if > 0 and applicable to the statement type). A query that + succeeded, but did not affect any rows (e.g. an UPDATE of a non-existent + record) will return &true;. + </para> + </note> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; <para> <example> <title><function>ibase_execute</function> example</title> @@ -52,18 +100,17 @@ </programlisting> </example> </para> - <note> - <para> - In PHP 5.0.0 and up, this function returns the number of rows affected by - the query (if > 0 and applicable to the statement type). A query that succeeded, - but did not affect any rows (e.g. an UPDATE of a non-existent record) will return - &true;. - </para> - </note> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also <function>ibase_query</function>. + <simplelist> + <member><function>ibase_query</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-fetch-assoc.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-fetch-assoc.xml diff -u phpdoc/en/reference/ibase/functions/ibase-fetch-assoc.xml:1.4 phpdoc/en/reference/ibase/functions/ibase-fetch-assoc.xml:1.5 --- phpdoc/en/reference/ibase/functions/ibase-fetch-assoc.xml:1.4 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-fetch-assoc.xml Sat Jun 16 21:54:20 2007 @@ -1,22 +1,20 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="function.ibase-fetch-assoc"> <refnamediv> <refname>ibase_fetch_assoc</refname> <refpurpose>Fetch a result row from a query as an associative array</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>array</type><methodname>ibase_fetch_assoc</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>fetch_flag</parameter></methodparam> </methodsynopsis> <para> - <function>ibase_fetch_assoc</function> returns an associative array - that corresponds to the fetched row. Subsequent calls will return - the next row in the result set, or &false; if there are no more - rows. + Fetch a result row from a query as an associative array. </para> <para> <function>ibase_fetch_assoc</function> fetches one row of data from the @@ -26,18 +24,56 @@ the result with numeric indices by using <function>ibase_fetch_row</function> or use alias names in your query. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; <para> - <parameter>fetch_flag</parameter> is a combination of the constants IBASE_TEXT and IBASE_UNIXTIME - ORed together. Passing IBASE_TEXT will cause this function to return BLOB contents - instead of BLOB ids. Passing IBASE_UNIXTIME will cause this function to return - date/time values as Unix timestamps instead of as formatted strings. + <variablelist> + <varlistentry> + <term><parameter>result</parameter></term> + <listitem> + <para> + The result handle. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>fetch_flag</parameter></term> + <listitem> + <para> + <parameter>fetch_flag</parameter> is a combination of the constants + <constant>IBASE_TEXT</constant> and <constant>IBASE_UNIXTIME</constant> + ORed together. Passing <constant>IBASE_TEXT</constant> will cause this + function to return BLOB contents instead of BLOB ids. Passing + <constant>IBASE_UNIXTIME</constant> will cause this function to return + date/time values as Unix timestamps instead of as formatted strings. + </para> + </listitem> + </varlistentry> + </variablelist> </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_fetch_row</function> and - <function>ibase_fetch_object</function>. + Returns an associative array that corresponds to the fetched row. + Subsequent calls will return the next row in the result set, or &false; if + there are no more rows. </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_fetch_row</function></member> + <member><function>ibase_fetch_object</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-fetch-object.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-fetch-object.xml diff -u phpdoc/en/reference/ibase/functions/ibase-fetch-object.xml:1.9 phpdoc/en/reference/ibase/functions/ibase-fetch-object.xml:1.10 --- phpdoc/en/reference/ibase/functions/ibase-fetch-object.xml:1.9 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-fetch-object.xml Sat Jun 16 21:54:20 2007 @@ -1,56 +1,97 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.9 --> +<!-- $Revision: 1.10 $ --> <refentry id="function.ibase-fetch-object"> <refnamediv> <refname>ibase_fetch_object</refname> <refpurpose>Get an object from a InterBase database</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>object</type><methodname>ibase_fetch_object</methodname> <methodparam><type>resource</type><parameter>result_id</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>fetch_flag</parameter></methodparam> </methodsynopsis> <para> - Fetches a row as a pseudo-object from a - <parameter>result_id</parameter> obtained either by - <function>ibase_query</function> or - <function>ibase_execute</function>. - <informalexample> + Fetches a row as a pseudo-object from a given result identifier. + </para> + <para> + Subsequent calls to <function>ibase_fetch_object</function> + return the next row in the result set. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>result_id</parameter></term> + <listitem> + <para> + An InterBase result identifier obtained either by + <function>ibase_query</function> or <function>ibase_execute</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>fetch_flag</parameter></term> + <listitem> + <para> + <parameter>fetch_flag</parameter> is a combination of the constants + <constant>IBASE_TEXT</constant> and <constant>IBASE_UNIXTIME</constant> + ORed together. Passing <constant>IBASE_TEXT</constant> will cause this + function to return BLOB contents instead of BLOB ids. Passing + <constant>IBASE_UNIXTIME</constant> will cause this function to return + date/time values as Unix timestamps instead of as formatted strings. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns an object with the next row information, or &false; if there are + no more rows. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>ibase_fetch_object</function> example</title> <programlisting role="php"> <![CDATA[ <?php - $dbh = ibase_connect($host, $username, $password); - $stmt = 'SELECT * FROM tblname'; - $sth = ibase_query($dbh, $stmt); - while ($row = ibase_fetch_object($sth)) { - echo $row->email . "\n"; - } - ibase_close($dbh); +$dbh = ibase_connect($host, $username, $password); +$stmt = 'SELECT * FROM tblname'; +$sth = ibase_query($dbh, $stmt); +while ($row = ibase_fetch_object($sth)) { + echo $row->email . "\n"; +} +ibase_close($dbh); ?> ]]> </programlisting> - </informalexample> - </para> - <para> - Subsequent calls to <function>ibase_fetch_object</function> - return the next row in the result set, or &false; if there are no - more rows. - </para> - <para> - <parameter>fetch_flag</parameter> is a combination of the constants IBASE_TEXT and IBASE_UNIXTIME - ORed together. Passing IBASE_TEXT will cause this function to return BLOB contents - instead of BLOB ids. Passing IBASE_UNIXTIME will cause this function to return - date/time values as Unix timestamps instead of as formatted strings. + </example> </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also - <function>ibase_fetch_row</function> and - <function>ibase_fetch_assoc</function>. + <simplelist> + <member><function>ibase_fetch_row</function></member> + <member><function>ibase_fetch_assoc</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-fetch-row.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-fetch-row.xml diff -u phpdoc/en/reference/ibase/functions/ibase-fetch-row.xml:1.7 phpdoc/en/reference/ibase/functions/ibase-fetch-row.xml:1.8 --- phpdoc/en/reference/ibase/functions/ibase-fetch-row.xml:1.7 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-fetch-row.xml Sat Jun 16 21:54:20 2007 @@ -1,46 +1,77 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.2 --> +<!-- $Revision: 1.8 $ --> <refentry id="function.ibase-fetch-row"> <refnamediv> <refname>ibase_fetch_row</refname> <refpurpose>Fetch a row from an InterBase database</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>array</type><methodname>ibase_fetch_row</methodname> <methodparam><type>resource</type><parameter>result_identifier</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>fetch_flag</parameter></methodparam> </methodsynopsis> <para> - Returns an array that corresponds to the fetched row, or &false; - if there are no more rows. - </para> - <para> - <function>ibase_fetch_row</function> fetches one row of data from - the result associated with the specified - <parameter>result_identifier</parameter>. The row is returned as - an array. Each result column is stored in an array offset, - starting at offset 0. + <function>ibase_fetch_row</function> fetches one row of data from the + given result set. </para> <para> Subsequent calls to <function>ibase_fetch_row</function> return the next row in the result set, or &false; if there are no more rows. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; <para> - <parameter>fetch_flag</parameter> is a combination of the constants IBASE_TEXT and IBASE_UNIXTIME - ORed together. Passing IBASE_TEXT will cause this function to return BLOB contents - instead of BLOB ids. Passing IBASE_UNIXTIME will cause this function to return - date/time values as Unix timestamps instead of as formatted strings. + <variablelist> + <varlistentry> + <term><parameter>result_identifier</parameter></term> + <listitem> + <para> + An InterBase result identifier. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>fetch_flag</parameter></term> + <listitem> + <para> + <parameter>fetch_flag</parameter> is a combination of the constants + <constant>IBASE_TEXT</constant> and <constant>IBASE_UNIXTIME</constant> + ORed together. Passing <constant>IBASE_TEXT</constant> will cause this + function to return BLOB contents instead of BLOB ids. Passing + <constant>IBASE_UNIXTIME</constant> will cause this function to return + date/time values as Unix timestamps instead of as formatted strings. + </para> + </listitem> + </varlistentry> + </variablelist> </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_fetch_assoc</function> and - <function>ibase_fetch_object</function>. + Returns an array that corresponds to the fetched row, or &false; if there + are no more rows. Each result column is stored in an array offset, + starting at offset 0. + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_fetch_assoc</function></member> + <member><function>ibase_fetch_object</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-field-info.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-field-info.xml diff -u phpdoc/en/reference/ibase/functions/ibase-field-info.xml:1.8 phpdoc/en/reference/ibase/functions/ibase-field-info.xml:1.9 --- phpdoc/en/reference/ibase/functions/ibase-field-info.xml:1.8 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-field-info.xml Sat Jun 16 21:54:20 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.23 --> +<!-- $Revision: 1.9 $ --> <refentry id="function.ibase-field-info"> <refnamediv> <refname>ibase_field_info</refname> <refpurpose>Get information about a field</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>array</type><methodname>ibase_field_info</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> @@ -15,33 +15,77 @@ </methodsynopsis> <para> Returns an array with information about a field after a select - query has been run. The array is in the form of name, alias, - relation, length, type. + query has been run. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; <para> - <informalexample> + <variablelist> + <varlistentry> + <term><parameter>result</parameter></term> + <listitem> + <para> + An InterBase result identifier. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>field_number</parameter></term> + <listitem> + <para> + Field offset. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns an array with the following keys: <literal>name</literal>, + <literal>alias</literal>, <literal>relation</literal>, + <literal>length</literal> and <literal>type</literal>. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>ibase_field_info</function> example</title> <programlisting role="php"> <![CDATA[ <?php - $rs = ibase_query("SELECT * FROM tablename"); - $coln = ibase_num_fields($rs); - for ($i = 0; $i < $coln; $i++) { - $col_info = ibase_field_info($rs, $i); - echo "name: ". $col_info['name']. "\n"; - echo "alias: ". $col_info['alias']. "\n"; - echo "relation: ". $col_info['relation']. "\n"; - echo "length: ". $col_info['length']. "\n"; - echo "type: ". $col_info['type']. "\n"; - } +$rs = ibase_query("SELECT * FROM tablename"); +$coln = ibase_num_fields($rs); +for ($i = 0; $i < $coln; $i++) { + $col_info = ibase_field_info($rs, $i); + echo "name: ". $col_info['name']. "\n"; + echo "alias: ". $col_info['alias']. "\n"; + echo "relation: ". $col_info['relation']. "\n"; + echo "length: ". $col_info['length']. "\n"; + echo "type: ". $col_info['type']. "\n"; +} ?> ]]> </programlisting> - </informalexample> + </example> </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also: <function>ibase_num_fields</function>. + <simplelist> + <member><function>ibase_num_fields</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-free-event-handler.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-free-event-handler.xml diff -u phpdoc/en/reference/ibase/functions/ibase-free-event-handler.xml:1.2 phpdoc/en/reference/ibase/functions/ibase-free-event-handler.xml:1.3 --- phpdoc/en/reference/ibase/functions/ibase-free-event-handler.xml:1.2 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-free-event-handler.xml Sat Jun 16 21:54:20 2007 @@ -1,27 +1,57 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.ibase-free-event-handler"> <refnamediv> <refname>ibase_free_event_handler</refname> <refpurpose>Cancels a registered event handler</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_free_event_handler</methodname> <methodparam><type>resource</type><parameter>event</parameter></methodparam> </methodsynopsis> <para> This function causes the registered event handler specified by - <parameter>event</parameter> to be cancelled. The callback function - will no longer be called for the events it was registered to handle. + <parameter>event</parameter> to be cancelled. The callback function will + no longer be called for the events it was registered to handle. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>event</parameter></term> + <listitem> + <para> + An event resource, created by + <function>ibase_set_event_handler</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> &return.success; </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also - <function>ibase_set_event_handler</function>. + <simplelist> + <member><function>ibase_set_event_handler</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-free-query.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-free-query.xml diff -u phpdoc/en/reference/ibase/functions/ibase-free-query.xml:1.4 phpdoc/en/reference/ibase/functions/ibase-free-query.xml:1.5 --- phpdoc/en/reference/ibase/functions/ibase-free-query.xml:1.4 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-free-query.xml Sat Jun 16 21:54:20 2007 @@ -1,22 +1,45 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.37 --> +<!-- $Revision: 1.5 $ --> <refentry id="function.ibase-free-query"> <refnamediv> <refname>ibase_free_query</refname> <refpurpose>Free memory allocated by a prepared query</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_free_query</methodname> <methodparam><type>resource</type><parameter>query</parameter></methodparam> </methodsynopsis> - <simpara> - Free a query prepared by <function>ibase_prepare</function>. + <para> + Frees a prepared query. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>query</parameter></term> + <listitem> + <para> + A query prepared with <function>ibase_prepare</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> &return.success; - </simpara> + </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-free-result.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-free-result.xml diff -u phpdoc/en/reference/ibase/functions/ibase-free-result.xml:1.5 phpdoc/en/reference/ibase/functions/ibase-free-result.xml:1.6 --- phpdoc/en/reference/ibase/functions/ibase-free-result.xml:1.5 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-free-result.xml Sat Jun 16 21:54:20 2007 @@ -1,23 +1,46 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> <refentry id="function.ibase-free-result"> <refnamediv> <refname>ibase_free_result</refname> <refpurpose>Free a result set</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_free_result</methodname> <methodparam><type>resource</type><parameter>result_identifier</parameter></methodparam> </methodsynopsis> - <simpara> - Frees a result set that has been created by - <function>ibase_query</function> or <function>ibase_execute</function>. + <para> + Frees a result set. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>result_identifier</parameter></term> + <listitem> + <para> + A result set created by <function>ibase_query</function> or + <function>ibase_execute</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> &return.success; - </simpara> + </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-gen-id.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-gen-id.xml diff -u phpdoc/en/reference/ibase/functions/ibase-gen-id.xml:1.4 phpdoc/en/reference/ibase/functions/ibase-gen-id.xml:1.5 --- phpdoc/en/reference/ibase/functions/ibase-gen-id.xml:1.4 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-gen-id.xml Sat Jun 16 21:54:20 2007 @@ -1,13 +1,14 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- Generated by xml_proto.php v2.0. Found in /scripts directory of phpdoc. --> <refentry id="function.ibase-gen-id"> <refnamediv> <refname>ibase_gen_id</refname> <refpurpose>Increments the named generator and returns its new value</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>mixed</type><methodname>ibase_gen_id</methodname> <methodparam><type>string</type><parameter>generator</parameter></methodparam> @@ -16,11 +17,16 @@ </methodsynopsis> &warn.undocumented.func; + + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> Returns new generator value as integer, or as string if the value is too big. </para> - </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-maintain-db.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-maintain-db.xml diff -u phpdoc/en/reference/ibase/functions/ibase-maintain-db.xml:1.2 phpdoc/en/reference/ibase/functions/ibase-maintain-db.xml:1.3 --- phpdoc/en/reference/ibase/functions/ibase-maintain-db.xml:1.2 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-maintain-db.xml Sat Jun 16 21:54:20 2007 @@ -1,12 +1,13 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.ibase-maintain-db"> <refnamediv> <refname>ibase_maintain_db</refname> <refpurpose>Execute a maintenance command on the database server</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_maintain_db</methodname> <methodparam><type>resource</type><parameter>service_handle</parameter></methodparam> @@ -18,6 +19,14 @@ &warn.undocumented.func; </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-modify-user.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-modify-user.xml diff -u phpdoc/en/reference/ibase/functions/ibase-modify-user.xml:1.4 phpdoc/en/reference/ibase/functions/ibase-modify-user.xml:1.5 --- phpdoc/en/reference/ibase/functions/ibase-modify-user.xml:1.4 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-modify-user.xml Sat Jun 16 21:54:20 2007 @@ -1,12 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="function.ibase-modify-user"> <refnamediv> <refname>ibase_modify_user</refname> <refpurpose>Modify a user to a security database (only for IB6 or later)</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_modify_user</methodname> <methodparam><type>resource</type><parameter>service_handle</parameter></methodparam> @@ -16,21 +17,32 @@ <methodparam choice="opt"><type>string</type><parameter>middle_name</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>last_name</parameter></methodparam> </methodsynopsis> - + &warn.undocumented.func; <para> PHP 4 uses <parameter>server</parameter>, <parameter>dba_user_name</parameter> and <parameter>dba_user_password</parameter> instead of <parameter>service_handle</parameter> parameter. </para> - &warn.undocumented.func; + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_add_user</function> and - <function>ibase_delete_user</function>. + &return.success; </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_add_user</function></member> + <member><function>ibase_delete_user</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-name-result.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-name-result.xml diff -u phpdoc/en/reference/ibase/functions/ibase-name-result.xml:1.4 phpdoc/en/reference/ibase/functions/ibase-name-result.xml:1.5 --- phpdoc/en/reference/ibase/functions/ibase-name-result.xml:1.4 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-name-result.xml Sat Jun 16 21:54:20 2007 @@ -1,12 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="function.ibase-name-result"> <refnamediv> <refname>ibase_name_result</refname> <refpurpose>Assigns a name to a result set</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_name_result</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> @@ -15,30 +16,73 @@ <para> This function assigns a name to a result set. This name can be used later in UPDATE|DELETE ... WHERE CURRENT OF <parameter>name</parameter> statements. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>result</parameter></term> + <listitem> + <para> + An InterBase result set. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>name</parameter></term> + <listitem> + <para> + Tbe name to be assigned. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> &return.success; - <informalexample> + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>ibase_name_result</function> example</title> <programlisting role="php"> <![CDATA[ <?php - $result = ibase_query("SELECT field1,field2 FROM table FOR UPDATE"); - ibase_name_result($result, "my_cursor"); +$result = ibase_query("SELECT field1,field2 FROM table FOR UPDATE"); +ibase_name_result($result, "my_cursor"); - $updateqry = ibase_prepare("UPDATE table SET field2 = ? WHERE CURRENT OF my_cursor"); +$updateqry = ibase_prepare("UPDATE table SET field2 = ? WHERE CURRENT OF my_cursor"); - for ($i = 0; ibase_fetch_row($result); ++$i) { - ibase_execute($updateqry, $i); - } +for ($i = 0; ibase_fetch_row($result); ++$i) { + ibase_execute($updateqry, $i); +} ?> ]]> </programlisting> - </informalexample> + </example> </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also - <function>ibase_prepare</function> and - <function>ibase_execute</function>. + <simplelist> + <member><function>ibase_prepare</function></member> + <member><function>ibase_execute</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-num-fields.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-num-fields.xml diff -u phpdoc/en/reference/ibase/functions/ibase-num-fields.xml:1.6 phpdoc/en/reference/ibase/functions/ibase-num-fields.xml:1.7 --- phpdoc/en/reference/ibase/functions/ibase-num-fields.xml:1.6 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-num-fields.xml Sat Jun 16 21:54:21 2007 @@ -1,43 +1,79 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.12 --> +<!-- $Revision: 1.7 $ --> <refentry id="function.ibase-num-fields"> <refnamediv> <refname>ibase_num_fields</refname> <refpurpose>Get the number of fields in a result set</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>int</type><methodname>ibase_num_fields</methodname> <methodparam><type>resource</type><parameter>result_id</parameter></methodparam> </methodsynopsis> <para> - Returns an integer containing the number of fields in a result - set. - <informalexample> + Get the number of fields in a result set. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>result_id</parameter></term> + <listitem> + <para> + An InterBase result identifier. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns the number of fields as an integer. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>ibase_num_fields</function> example</title> <programlisting role="php"> <![CDATA[ <?php - $rs = ibase_query("SELECT * FROM tablename"); - $coln = ibase_num_fields($rs); - for ($i = 0; $i < $coln; $i++) { - $col_info = ibase_field_info($rs, $i); - echo "name: " . $col_info['name'] . "\n"; - echo "alias: " . $col_info['alias'] . "\n"; - echo "relation: " . $col_info['relation'] . "\n"; - echo "length: " . $col_info['length'] . "\n"; - echo "type: " . $col_info['type'] . "\n"; - } +$rs = ibase_query("SELECT * FROM tablename"); +$coln = ibase_num_fields($rs); +for ($i = 0; $i < $coln; $i++) { + $col_info = ibase_field_info($rs, $i); + echo "name: " . $col_info['name'] . "\n"; + echo "alias: " . $col_info['alias'] . "\n"; + echo "relation: " . $col_info['relation'] . "\n"; + echo "length: " . $col_info['length'] . "\n"; + echo "type: " . $col_info['type'] . "\n"; +} ?> ]]> </programlisting> - </informalexample> + </example> </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also: <function>ibase_field_info</function>. + <simplelist> + <member><function>ibase_field_info</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-num-params.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-num-params.xml diff -u phpdoc/en/reference/ibase/functions/ibase-num-params.xml:1.2 phpdoc/en/reference/ibase/functions/ibase-num-params.xml:1.3 --- phpdoc/en/reference/ibase/functions/ibase-num-params.xml:1.2 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-num-params.xml Sat Jun 16 21:54:21 2007 @@ -1,12 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.ibase-num-params"> <refnamediv> <refname>ibase_num_params</refname> <refpurpose>Return the number of parameters in a prepared query</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>int</type><methodname>ibase_num_params</methodname> <methodparam><type>resource</type><parameter>query</parameter></methodparam> @@ -16,12 +17,41 @@ by <parameter>query</parameter>. This is the number of binding arguments that must be present when calling <function>ibase_execute</function>. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>query</parameter></term> + <listitem> + <para> + The prepared query handle. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_prepare</function> and - <function>ibase_param_info</function>. + Returns the number of parameters as an integer. </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_prepare</function></member> + <member><function>ibase_param_info</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-param-info.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-param-info.xml diff -u phpdoc/en/reference/ibase/functions/ibase-param-info.xml:1.3 phpdoc/en/reference/ibase/functions/ibase-param-info.xml:1.4 --- phpdoc/en/reference/ibase/functions/ibase-param-info.xml:1.3 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-param-info.xml Sat Jun 16 21:54:21 2007 @@ -1,12 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="function.ibase-param-info"> <refnamediv> <refname>ibase_param_info</refname> <refpurpose>Return information about a parameter in a prepared query</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>array</type><methodname>ibase_param_info</methodname> <methodparam><type>resource</type><parameter>query</parameter></methodparam> @@ -14,15 +15,53 @@ </methodsynopsis> <para> Returns an array with information about a parameter after a - query has been prepared. The array is in the form of name, alias, - relation, length, type. + query has been prepared. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>query</parameter></term> + <listitem> + <para> + An InterBase prepared query handle. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>param_number</parameter></term> + <listitem> + <para> + Parameter offset. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_field_info</function> and - <function>ibase_num_params</function>. + Returns an array with the following keys: <literal>name</literal>, + <literal>alias</literal>, <literal>relation</literal>, + <literal>length</literal> and <literal>type</literal>. </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_field_info</function></member> + <member><function>ibase_num_params</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-pconnect.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-pconnect.xml diff -u phpdoc/en/reference/ibase/functions/ibase-pconnect.xml:1.7 phpdoc/en/reference/ibase/functions/ibase-pconnect.xml:1.8 --- phpdoc/en/reference/ibase/functions/ibase-pconnect.xml:1.7 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-pconnect.xml Sat Jun 16 21:54:21 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.2 --> +<!-- $Revision: 1.8 $ --> <refentry id="function.ibase-pconnect"> <refnamediv> <refname>ibase_pconnect</refname> <refpurpose>Open a persistent connection to an InterBase database</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>resource</type><methodname>ibase_pconnect</methodname> <methodparam choice="opt"><type>string</type><parameter>database</parameter></methodparam> @@ -20,41 +20,151 @@ <methodparam choice="opt"><type>int</type><parameter>sync</parameter></methodparam> </methodsynopsis> <para> + Opens a persistent connection to an InterBase database. + </para> + <para> <function>ibase_pconnect</function> acts very much like <function>ibase_connect</function> with two major differences. - First, when connecting, the function will first try to find a - (persistent) link that's already opened with the same parameters. - If one is found, an identifier for it will be returned instead of - opening a new connection. Second, the connection to the InterBase - server will not be closed when the execution of the script ends. - Instead, the link will remain open for future use - (<function>ibase_close</function> will not close links established - by <function>ibase_pconnect</function>). This type of link is + </para> + <para> + First, when connecting, the function will first try to find a (persistent) + link that's already opened with the same parameters. If one is found, an + identifier for it will be returned instead of opening a new connection. + </para> + <para> + Second, the connection to the InterBase server will not be closed when the + execution of the script ends. Instead, the link will remain open for + future use (<function>ibase_close</function> will not close links + established by <function>ibase_pconnect</function>). This type of link is therefore called 'persistent'. </para> - <note> - <para> - <parameter>buffers</parameter> was added in PHP 4.0.0. - </para> - </note> - <note> - <para> - <parameter>dialect</parameter> was added in PHP 4.0.0. It is - functional only with InterBase 6 and versions higher than that. - </para> - </note> - <note> - <para> - <parameter>role</parameter> was added in PHP 4.0.0. It is - functional only with InterBase 5 and versions higher than that. - </para> - </note> - <para> - See also <function>ibase_close</function> and - <function>ibase_connect</function> for the meaning of - parameters passed to this function. They are exactly the same. + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>database</parameter></term> + <listitem> + <para> + The <parameter>database</parameter> argument has to be a valid path to + database file on the server it resides on. If the server is not local, + it must be prefixed with either 'hostname:' (TCP/IP), '//hostname/' + (NetBEUI) or 'hostname@' (IPX/SPX), depending on the connection + protocol used. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>username</parameter></term> + <listitem> + <para> + The user name. Can be set with the + <literal>ibase.default_user</literal> &php.ini; directive. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>password</parameter></term> + <listitem> + <para> + The password for <parameter>username</parameter>. Can be set with the + <literal>ibase.default_password</literal> &php.ini; directive. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>charset</parameter></term> + <listitem> + <para> + <parameter>charset</parameter> is the default character set for a + database. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>buffers</parameter></term> + <listitem> + <para> + <parameter>buffers</parameter> is the number of database buffers to + allocate for the server-side cache. If 0 or omitted, server chooses + its own default. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>dialect</parameter></term> + <listitem> + <para> + <parameter>dialect</parameter> selects the default SQL dialect for any + statement executed within a connection, and it defaults to the highest + one supported by client libraries. Functional only with InterBase 6 + and up. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>role</parameter></term> + <listitem> + <para> + Functional only with InterBase 5 and up. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>sync</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns an InterBase link identifier on success, or &false; on error. + </para> + </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>4.0.0</entry> + <entry> + The <parameter>buffers</parameter>, <parameter>dialect</parameter> + and <parameter>role</parameter> parameters were added + </entry> + </row> + </tbody> + </tgroup> + </informaltable> </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_close</function></member> + <member><function>ibase_connect</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-prepare.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-prepare.xml diff -u phpdoc/en/reference/ibase/functions/ibase-prepare.xml:1.5 phpdoc/en/reference/ibase/functions/ibase-prepare.xml:1.6 --- phpdoc/en/reference/ibase/functions/ibase-prepare.xml:1.5 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-prepare.xml Sat Jun 16 21:54:21 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> <refentry id="function.ibase-prepare"> <refnamediv> <refname>ibase_prepare</refname> <refpurpose>Prepare a query for later binding of parameter placeholders and execution</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>resource</type><methodname>ibase_prepare</methodname> <methodparam><type>string</type><parameter>query</parameter></methodparam> @@ -24,10 +24,34 @@ <methodparam><type>string</type><parameter>query</parameter></methodparam> </methodsynopsis> <simpara> - Prepare a query for later binding of parameter placeholders and - execution (via <function>ibase_execute</function>). + Prepare a query for later binding of parameter placeholders and execution + (via <function>ibase_execute</function>). </simpara> </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>query</parameter></term> + <listitem> + <para> + An InterBase query. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns a prepared query handle, or &false; on error. + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-query.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-query.xml diff -u phpdoc/en/reference/ibase/functions/ibase-query.xml:1.7 phpdoc/en/reference/ibase/functions/ibase-query.xml:1.8 --- phpdoc/en/reference/ibase/functions/ibase-query.xml:1.7 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-query.xml Sat Jun 16 21:54:21 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.2 --> +<!-- $Revision: 1.8 $ --> <refentry id="function.ibase-query"> <refnamediv> <refname>ibase_query</refname> <refpurpose>Execute a query on an InterBase database</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>resource</type><methodname>ibase_query</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> @@ -15,11 +15,73 @@ <methodparam choice="opt"><type>int</type><parameter>bind_args</parameter></methodparam> </methodsynopsis> <simpara> - Performs a query on an InterBase database. If the query raises an error, - returns &false;. If it is successful and there is a (possibly empty) - result set (such as with a SELECT query), returns a result identifier. If - the query was successful and there were no results, returns &true;. + Performs a query on an InterBase database. </simpara> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>link_identifier</parameter></term> + <listitem> + <para> + An InterBase link identifier. If omitted, the last opened link is + assumed. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>query</parameter></term> + <listitem> + <para> + An InterBase query. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>bind_args</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + If the query raises an error, returns &false;. If it is successful and + there is a (possibly empty) result set (such as with a SELECT query), + returns a result identifier. If the query was successful and there were + no results, returns &true;. + </para> + <note> + <para> + In PHP 5.0.0 and up, this function will return the number of rows + affected by the query for INSERT, UPDATE and DELETE statements. In order + to retain backward compatibility, it will return &true; for these + statements if the query succeeded without affecting any rows. + </para> + </note> + </refsect1> + + <refsect1 role="errors"> + &reftitle.errors; + <para> + If you get some error like "arithmetic exception, numeric overflow, or + string truncation. Cannot transliterate character between character sets" + (this occurs when you try use some character with accents) when using this + and after <function>ibase_query</function> you must set the character set + (i.e. ISO8859_1 or your current character set). + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; <para> <example> <title><function>ibase_query</function> example</title> @@ -27,42 +89,32 @@ <![CDATA[ <?php - $host = 'localhost:/path/to/your.gdb'; +$host = 'localhost:/path/to/your.gdb'; - $dbh = ibase_connect($host, $username, $password); - $stmt = 'SELECT * FROM tblname'; +$dbh = ibase_connect($host, $username, $password); +$stmt = 'SELECT * FROM tblname'; - $sth = ibase_query($dbh, $stmt) or die(ibase_errmsg()); +$sth = ibase_query($dbh, $stmt) or die(ibase_errmsg()); ?> ]]> </programlisting> </example> </para> - <note> - <para> - In PHP 5.0.0 and up, this function will return the number of rows affected by - the query for INSERT, UPDATE and DELETE statements. In order to retain backward - compatibility, it will return &true; for these statements if the query succeeded - without affecting any rows. - </para> - </note> - <note> - <para> - If you get some error like "arithmetic exception, numeric overflow, - or string truncation. Cannot transliterate character between character - sets" (this occurs when you try use some character with accents) - when using this and after <function>ibase_query</function> you must - set the character set (i.e. ISO8859_1 or your current character set). - </para> - </note> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also <function>ibase_errmsg</function>, - <function>ibase_fetch_row</function>, - <function>ibase_fetch_object</function>, and - <function>ibase_free_result</function>. + <simplelist> + <member><function>ibase_errmsg</function></member> + <member><function>ibase_fetch_row</function></member> + <member><function>ibase_fetch_object</function></member> + <member><function>ibase_free_result</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-restore.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-restore.xml diff -u phpdoc/en/reference/ibase/functions/ibase-restore.xml:1.2 phpdoc/en/reference/ibase/functions/ibase-restore.xml:1.3 --- phpdoc/en/reference/ibase/functions/ibase-restore.xml:1.2 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-restore.xml Sat Jun 16 21:54:21 2007 @@ -1,12 +1,13 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.ibase-restore"> <refnamediv> <refname>ibase_restore</refname> <refpurpose>Initiates a restore task in the service manager and returns immediately</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>mixed</type><methodname>ibase_restore</methodname> <methodparam><type>resource</type><parameter>service_handle</parameter></methodparam> @@ -19,6 +20,7 @@ &warn.undocumented.func; </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-rollback-ret.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-rollback-ret.xml diff -u phpdoc/en/reference/ibase/functions/ibase-rollback-ret.xml:1.3 phpdoc/en/reference/ibase/functions/ibase-rollback-ret.xml:1.4 --- phpdoc/en/reference/ibase/functions/ibase-rollback-ret.xml:1.3 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-rollback-ret.xml Sat Jun 16 21:54:21 2007 @@ -1,26 +1,51 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="function.ibase-rollback-ret"> <refnamediv> <refname>ibase_rollback_ret</refname> <refpurpose>Roll back a transaction without closing it</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_rollback_ret</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_or_trans_identifier</parameter></methodparam> </methodsynopsis> <para> - If called without an argument, this function rolls back the default transaction - of the default link. If the argument is a connection identifier, the default - transaction of the corresponding connection will be rolled back. If the argument - is a transaction identifier, the corresponding transaction will be rolled back. - The transaction context will be retained, so statements executed from within - this transaction will not be invalidated. + Rolls back a transaction without closing it. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>link_or_trans_identifier</parameter></term> + <listitem> + <para> + If called without an argument, this function rolls back the default + transaction of the default link. If the argument is a connection + identifier, the default transaction of the corresponding connection + will be rolled back. If the argument is a transaction identifier, the + corresponding transaction will be rolled back. The transaction context + will be retained, so statements executed from within this transaction + will not be invalidated. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> &return.success; </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-rollback.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-rollback.xml diff -u phpdoc/en/reference/ibase/functions/ibase-rollback.xml:1.6 phpdoc/en/reference/ibase/functions/ibase-rollback.xml:1.7 --- phpdoc/en/reference/ibase/functions/ibase-rollback.xml:1.6 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-rollback.xml Sat Jun 16 21:54:21 2007 @@ -1,25 +1,49 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.23 --> +<!-- $Revision: 1.7 $ --> <refentry id="function.ibase-rollback"> <refnamediv> <refname>ibase_rollback</refname> <refpurpose>Roll back a transaction</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_rollback</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_or_trans_identifier</parameter></methodparam> </methodsynopsis> <para> - If called without an argument, this function rolls back the default transaction - of the default link. If the argument is a connection identifier, the default - transaction of the corresponding connection will be rolled back. If the argument - is a transaction identifier, the corresponding transaction will be rolled back. + Rolls back a transaction. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>link_or_trans_identifier</parameter></term> + <listitem> + <para> + If called without an argument, this function rolls back the default + transaction of the default link. If the argument is a connection + identifier, the default transaction of the corresponding connection + will be rolled back. If the argument is a transaction identifier, the + corresponding transaction will be rolled back. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> &return.success; </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-server-info.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-server-info.xml diff -u phpdoc/en/reference/ibase/functions/ibase-server-info.xml:1.2 phpdoc/en/reference/ibase/functions/ibase-server-info.xml:1.3 --- phpdoc/en/reference/ibase/functions/ibase-server-info.xml:1.2 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-server-info.xml Sat Jun 16 21:54:21 2007 @@ -1,12 +1,13 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.ibase-server-info"> <refnamediv> <refname>ibase_server_info</refname> <refpurpose>Request information about a database server</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>string</type><methodname>ibase_server_info</methodname> <methodparam><type>resource</type><parameter>service_handle</parameter></methodparam> @@ -16,6 +17,7 @@ &warn.undocumented.func; </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-service-attach.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-service-attach.xml diff -u phpdoc/en/reference/ibase/functions/ibase-service-attach.xml:1.2 phpdoc/en/reference/ibase/functions/ibase-service-attach.xml:1.3 --- phpdoc/en/reference/ibase/functions/ibase-service-attach.xml:1.2 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-service-attach.xml Sat Jun 16 21:54:21 2007 @@ -1,12 +1,13 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.ibase-service-attach"> <refnamediv> <refname>ibase_service_attach</refname> <refpurpose>Connect to the service manager</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>resource</type><methodname>ibase_service_attach</methodname> <methodparam><type>string</type><parameter>host</parameter></methodparam> @@ -17,6 +18,7 @@ &warn.undocumented.func; </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-service-detach.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-service-detach.xml diff -u phpdoc/en/reference/ibase/functions/ibase-service-detach.xml:1.2 phpdoc/en/reference/ibase/functions/ibase-service-detach.xml:1.3 --- phpdoc/en/reference/ibase/functions/ibase-service-detach.xml:1.2 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-service-detach.xml Sat Jun 16 21:54:21 2007 @@ -1,12 +1,13 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.ibase-service-detach"> <refnamediv> <refname>ibase_service_detach</refname> <refpurpose>Disconnect from the service manager</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ibase_service_detach</methodname> <methodparam><type>resource</type><parameter>service_handle</parameter></methodparam> @@ -15,6 +16,14 @@ &warn.undocumented.func; </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-set-event-handler.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-set-event-handler.xml diff -u phpdoc/en/reference/ibase/functions/ibase-set-event-handler.xml:1.9 phpdoc/en/reference/ibase/functions/ibase-set-event-handler.xml:1.10 --- phpdoc/en/reference/ibase/functions/ibase-set-event-handler.xml:1.9 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-set-event-handler.xml Sat Jun 16 21:54:21 2007 @@ -1,12 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <refentry id="function.ibase-set-event-handler"> <refnamediv> <refname>ibase_set_event_handler</refname> <refpurpose>Register a callback function to be called when events are posted</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>resource</type><methodname>ibase_set_event_handler</methodname> <methodparam><type>callback</type><parameter>event_handler</parameter></methodparam> @@ -23,24 +24,79 @@ <methodparam choice="opt"><type>string</type><parameter>...</parameter></methodparam> </methodsynopsis> <para> - This function registers a PHP user function as event handler for the specified - events. The callback is called with the event name and the link resource as arguments - whenever one of the specified events is posted by the database. The callback must - return &false; if the event handler should be canceled. Any other return value is ignored. - This function accepts up to 15 event arguments. + This function registers a PHP user function as event handler for the + specified events. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>event_handler</parameter></term> + <listitem> + <para> + The callback is called with the event name and the link resource as + arguments whenever one of the specified events is posted by the + database. + </para> + <para> + The callback must return &false; if the event handler should be + canceled. Any other return value is ignored. This function accepts up + to 15 event arguments. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>event_name1</parameter></term> + <listitem> + <para> + An event name. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>event_name2</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>...</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - <informalexample> + The return value is an event resource. This resource can be used to free + the event handler using <function>ibase_free_event_handler</function>. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>ibase_set_event_handler</function> example</title> <programlisting role="php"> <![CDATA[ <?php function event_handler($event_name, $link) { - if ($event_name=="NEW ORDER") { + if ($event_name == "NEW ORDER") { // process new order ibase_query($link, "UPDATE orders SET status='handled'"); - } else if ($event_name=="DB_SHUTDOWN") { + } else if ($event_name == "DB_SHUTDOWN") { // free event handler return false; } @@ -50,18 +106,20 @@ ?> ]]> </programlisting> - </informalexample> - </para> - <para> - The return value is an event resource. This resource can be used to free the event handler - using <function>ibase_free_event_handler</function>. + </example> </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - See also - <function>ibase_free_event_handler</function> and - <function>ibase_wait_event</function>. + <simplelist> + <member><function>ibase_free_event_handler</function></member> + <member><function>ibase_wait_event</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-timefmt.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-timefmt.xml diff -u phpdoc/en/reference/ibase/functions/ibase-timefmt.xml:1.7 phpdoc/en/reference/ibase/functions/ibase-timefmt.xml:1.8 --- phpdoc/en/reference/ibase/functions/ibase-timefmt.xml:1.7 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-timefmt.xml Sat Jun 16 21:54:21 2007 @@ -1,49 +1,89 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.2 --> +<!-- $Revision: 1.8 $ --> <refentry id="function.ibase-timefmt"> <refnamediv> <refname>ibase_timefmt</refname> <refpurpose>Sets the format of timestamp, date and time type columns returned from queries</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> - <type>int</type><methodname>ibase_timefmt</methodname> + <type>bool</type><methodname>ibase_timefmt</methodname> <methodparam><type>string</type><parameter>format</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>columntype</parameter></methodparam> </methodsynopsis> <para> - Sets the format of timestamp, date or time type columns returned - from queries. Internally, the columns are formatted by c-function - strftime(), so refer to its documentation regarding to the format - of the string. <parameter>columntype</parameter> is one of the - constants IBASE_TIMESTAMP, IBASE_DATE and IBASE_TIME. If omitted, - defaults to IBASE_TIMESTAMP for backwards compatibility. + Sets the format of timestamp, date or time type columns returned from + queries. </para> <para> - <informalexample> + You can set defaults for these formats with the PHP configuration + directives <literal>ibase.timestampformat</literal>, + <literal>ibase.dateformat</literal> and + <literal>ibase.timeformat</literal>. + </para> + <note> + <para> + This function has been removed from PHP 5, use + <function>ini_set</function> instead. + </para> + </note> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>format</parameter></term> + <listitem> + <para> + Internally, the columns are formatted by c-function strftime(), so + refer to its documentation regarding to the format of the string. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>columntype</parameter></term> + <listitem> + <para> + <parameter>columntype</parameter> is one of the constants + <constant>IBASE_TIMESTAMP</constant>, <constant>IBASE_DATE</constant> + and <constant>IBASE_TIME</constant>. If omitted, defaults to + <constant>IBASE_TIMESTAMP</constant> for backwards compatibility. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>ibase_timefmt</function> example</title> <programlisting role="php"> <![CDATA[ <?php - /* InterBase 6 TIME-type columns will be returned in - * the form '05 hours 37 minutes'. */ - ibase_timefmt("%H hours %M minutes", IBASE_TIME); +/* InterBase 6 TIME-type columns will be returned in + * the form '05 hours 37 minutes'. */ +ibase_timefmt("%H hours %M minutes", IBASE_TIME); ?> ]]> </programlisting> - </informalexample> - </para> - <para> - You can set defaults for these formats with the PHP configuration - directives ibase.timestampformat, ibase.dateformat and ibase.timeformat. + </example> </para> - <note> - <para> - This function has been removed from PHP 5, use <function>ini_set</function> instead. - </para> - </note> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-trans.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-trans.xml diff -u phpdoc/en/reference/ibase/functions/ibase-trans.xml:1.7 phpdoc/en/reference/ibase/functions/ibase-trans.xml:1.8 --- phpdoc/en/reference/ibase/functions/ibase-trans.xml:1.7 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-trans.xml Sat Jun 16 21:54:21 2007 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.23 --> +<!-- $Revision: 1.8 $ --> <refentry id="function.ibase-trans"> <refnamediv> <refname>ibase_trans</refname> <refpurpose>Begin a transaction</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>resource</type><methodname>ibase_trans</methodname> <methodparam choice="opt"><type>int</type><parameter>trans_args</parameter></methodparam> @@ -16,12 +16,6 @@ <para> Begins a transaction. </para> - <para> - <parameter>trans_args</parameter> can be a combination of - IBASE_READ, IBASE_WRITE, IBASE_COMMITTED, IBASE_CONSISTENCY, - IBASE_CONCURRENCY, IBASE_REC_VERSION, IBASE_REC_NO_VERSION, - IBASE_WAIT and IBASE_NOWAIT. - </para> <note> <para> The behaviour of this function has been changed in PHP 5.0.0. The first call @@ -48,6 +42,48 @@ </para> </note> </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>trans_args</parameter></term> + <listitem> + <para> + <parameter>trans_args</parameter> can be a combination of + <constant>IBASE_READ</constant>, + <constant>IBASE_WRITE</constant>, + <constant>IBASE_COMMITTED</constant>, + <constant>IBASE_CONSISTENCY</constant>, + <constant>IBASE_CONCURRENCY</constant>, + <constant>IBASE_REC_VERSION</constant>, + <constant>IBASE_REC_NO_VERSION</constant>, + <constant>IBASE_WAIT</constant> and + <constant>IBASE_NOWAIT</constant>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>link_identifier</parameter></term> + <listitem> + <para> + An InterBase link identifier. If omitted, the last opened link is + assumed. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns a transaction handle, or &false; on error. + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ibase/functions/ibase-wait-event.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/ibase/functions/ibase-wait-event.xml diff -u phpdoc/en/reference/ibase/functions/ibase-wait-event.xml:1.4 phpdoc/en/reference/ibase/functions/ibase-wait-event.xml:1.5 --- phpdoc/en/reference/ibase/functions/ibase-wait-event.xml:1.4 Sat Jun 16 21:52:41 2007 +++ phpdoc/en/reference/ibase/functions/ibase-wait-event.xml Sat Jun 16 21:54:21 2007 @@ -1,12 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="function.ibase-wait-event"> <refnamediv> <refname>ibase_wait_event</refname> <refpurpose>Wait for an event to be posted by the database</refpurpose> </refnamediv> - <refsect1> - <title>Description</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>string</type><methodname>ibase_wait_event</methodname> <methodparam><type>string</type><parameter>event_name1</parameter></methodparam> @@ -25,12 +26,55 @@ is posted by the database. The name of the event that was posted is returned. This function accepts up to 15 event arguments. </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>event_name1</parameter></term> + <listitem> + <para> + The event name. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>event_name2</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>...</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; <para> - See also - <function>ibase_set_event_handler</function> and - <function>ibase_free_event_handler</function>. + Returns the name of the event that was posted. </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ibase_set_event_handler</function></member> + <member><function>ibase_free_event_handler</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file