cvs: peardoc /en/package/database/db/db-result fetchinto.xml fetchrow.xml
| From: | Daniel Convissor | Date: | Fri, 16 Apr 2004 15:22:42 +0000 |
| Subject: | cvs: peardoc /en/package/database/db/db-result fetchinto.xml fetchrow.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-3540@lists.php.net to get a copy of this message | ||
danielc Fri Apr 16 11:22:42 2004 EDT
Modified files:
/peardoc/en/package/database/db/db-result fetchinto.xml
fetchrow.xml
Log:
Clarify potential fetchmodes. Add link to setFetchMode.
http://cvs.php.net/diff.php/peardoc/en/package/database/db/db-result/fetchinto.xml?r1=1.19&r2=1.20&ty=u
Index: peardoc/en/package/database/db/db-result/fetchinto.xml
diff -u peardoc/en/package/database/db/db-result/fetchinto.xml:1.19
peardoc/en/package/database/db/db-result/fetchinto.xml:1.20
--- peardoc/en/package/database/db/db-result/fetchinto.xml:1.19 Thu Apr 15 14:44:26 2004
+++ peardoc/en/package/database/db/db-result/fetchinto.xml Fri Apr 16 11:22:42 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.19 $ -->
+<!-- $Revision: 1.20 $ -->
<refentry id="package.database.db.db-result.fetchinto">
<refnamediv>
@@ -57,7 +57,30 @@
</term>
<listitem>
<para>
- format of fetched row
+ the fetch mode to use.
+ The default is <constant>DB_FETCHMODE_DEFAULT</constant>,
+ which tells this method to use DB's current fetch mode.
+ DB's current default fetch mode can be changed using
+ <link linkend="package.database.db.db-common.setfetchmode">
+ <function>setFetchMode</function></link>.
+ Potential values include:
+ <itemizedlist>
+ <listitem>
+ <para>
+ <constant>DB_FETCHMODE_ORDERED</constant>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <constant>DB_FETCHMODE_ASSOC</constant>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <constant>DB_FETCHMODE_OBJECT</constant>
+ </para>
+ </listitem>
+ </itemizedlist>
</para>
</listitem>
</varlistentry>
@@ -110,6 +133,8 @@
<refsect1 id="package.database.db.db-result.fetchinto.see">
&title.see;
<para>
+ <link linkend="package.database.db.db-common.setfetchmode">
+ <function>setFetchMode</function></link>,
<link linkend="package.database.db.db-result.fetchrow">
<function>fetchRow</function></link>
</para>
http://cvs.php.net/diff.php/peardoc/en/package/database/db/db-result/fetchrow.xml?r1=1.20&r2=1.21&ty=u
Index: peardoc/en/package/database/db/db-result/fetchrow.xml
diff -u peardoc/en/package/database/db/db-result/fetchrow.xml:1.20
peardoc/en/package/database/db/db-result/fetchrow.xml:1.21
--- peardoc/en/package/database/db/db-result/fetchrow.xml:1.20 Thu Apr 15 14:44:26 2004
+++ peardoc/en/package/database/db/db-result/fetchrow.xml Fri Apr 16 11:22:42 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.20 $ -->
+<!-- $Revision: 1.21 $ -->
<refentry id="package.database.db.db-result.fetchrow">
<refnamediv>
@@ -42,7 +42,30 @@
</term>
<listitem>
<para>
- format of fetched row
+ the fetch mode to use.
+ The default is <constant>DB_FETCHMODE_DEFAULT</constant>,
+ which tells this method to use DB's current fetch mode.
+ DB's current default fetch mode can be changed using
+ <link linkend="package.database.db.db-common.setfetchmode">
+ <function>setFetchMode</function></link>.
+ Potential values include:
+ <itemizedlist>
+ <listitem>
+ <para>
+ <constant>DB_FETCHMODE_ORDERED</constant>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <constant>DB_FETCHMODE_ASSOC</constant>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <constant>DB_FETCHMODE_OBJECT</constant>
+ </para>
+ </listitem>
+ </itemizedlist>
</para>
</listitem>
</varlistentry>
@@ -95,6 +118,8 @@
<refsect1 id="package.database.db.db-result.fetchrow.see">
&title.see;
<para>
+ <link linkend="package.database.db.db-common.setfetchmode">
+ <function>setFetchMode</function></link>,
<link linkend="package.database.db.db-result.fetchinto">
<function>fetchInto</function></link>
</para>