cvs: peardoc /en/package/database/db/db-common getall.xml getassoc.xml getrow.xml
| From: | Daniel Convissor | Date: | Fri, 16 Apr 2004 14:38:27 +0000 |
| Subject: | cvs: peardoc /en/package/database/db/db-common getall.xml getassoc.xml getrow.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-3539@lists.php.net to get a copy of this message | ||
danielc Fri Apr 16 10:38:27 2004 EDT
Modified files:
/peardoc/en/package/database/db/db-common getall.xml getassoc.xml
getrow.xml
Log:
Clarify potential fetchmodes. Add link to setFetchMode.
http://cvs.php.net/diff.php/peardoc/en/package/database/db/db-common/getall.xml?r1=1.31&r2=1.32&ty=u
Index: peardoc/en/package/database/db/db-common/getall.xml
diff -u peardoc/en/package/database/db/db-common/getall.xml:1.31
peardoc/en/package/database/db/db-common/getall.xml:1.32
--- peardoc/en/package/database/db/db-common/getall.xml:1.31 Thu Apr 15 14:44:26 2004
+++ peardoc/en/package/database/db/db-common/getall.xml Fri Apr 16 10:38:25 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.31 $ -->
+<!-- $Revision: 1.32 $ -->
<refentry id="package.database.db.db-common.getall">
<refnamediv>
@@ -81,8 +81,42 @@
</term>
<listitem>
<para>
- the fetch mode to use,
- default is <constant>DB_FETCHMODE_DEFAULT</constant>
+ the fetch mode to use.
+ The default is <constant>DB_FETCHMODE_DEFAULT</constant>,
+ which tells this method to use DB's current fetch mode.
+ The current 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>
+ <listitem>
+ <para>
+ <constant>DB_FETCHMODE_ORDERED</constant> |
+ <constant>DB_FETCHMODE_FLIPPED</constant>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <constant>DB_FETCHMODE_ASSOC</constant> |
+ <constant>DB_FETCHMODE_FLIPPED</constant>
+ </para>
+ </listitem>
+ </itemizedlist>
</para>
</listitem>
</varlistentry>
@@ -498,6 +532,8 @@
<refsect1 id="package.database.db.db-common.getall.see">
&title.see;
<para>
+ <link linkend="package.database.db.db-common.setfetchmode">
+ <function>setFetchMode</function></link>,
<link linkend="package.database.db.db-common.getone">
<function>getOne</function></link>,
<link linkend="package.database.db.db-common.getrow">
http://cvs.php.net/diff.php/peardoc/en/package/database/db/db-common/getassoc.xml?r1=1.31&r2=1.32&ty=u
Index: peardoc/en/package/database/db/db-common/getassoc.xml
diff -u peardoc/en/package/database/db/db-common/getassoc.xml:1.31
peardoc/en/package/database/db/db-common/getassoc.xml:1.32
--- peardoc/en/package/database/db/db-common/getassoc.xml:1.31 Thu Apr 15 14:44:26 2004
+++ peardoc/en/package/database/db/db-common/getassoc.xml Fri Apr 16 10:38:25 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.31 $ -->
+<!-- $Revision: 1.32 $ -->
<refentry id="package.database.db.db-common.getassoc">
<refnamediv>
@@ -103,7 +103,30 @@
</term>
<listitem>
<para>
- the fetch mode to use
+ 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>
@@ -980,6 +1003,8 @@
<refsect1 id="package.database.db.db-common.getassoc.see">
&title.see;
<para>
+ <link linkend="package.database.db.db-common.setfetchmode">
+ <function>setFetchMode</function></link>,
<link linkend="package.database.db.db-common.getone">
<function>getOne</function></link>,
<link linkend="package.database.db.db-common.getrow">
http://cvs.php.net/diff.php/peardoc/en/package/database/db/db-common/getrow.xml?r1=1.30&r2=1.31&ty=u
Index: peardoc/en/package/database/db/db-common/getrow.xml
diff -u peardoc/en/package/database/db/db-common/getrow.xml:1.30
peardoc/en/package/database/db/db-common/getrow.xml:1.31
--- peardoc/en/package/database/db/db-common/getrow.xml:1.30 Thu Apr 15 14:44:26 2004
+++ peardoc/en/package/database/db/db-common/getrow.xml Fri Apr 16 10:38:25 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.30 $ -->
+<!-- $Revision: 1.31 $ -->
<refentry id="package.database.db.db-common.getrow">
<refnamediv>
@@ -81,8 +81,30 @@
</term>
<listitem>
<para>
- the fetch mode to use,
- default is <constant>DB_FETCHMODE_DEFAULT</constant>
+ 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>
@@ -343,6 +365,8 @@
<refsect1 id="package.database.db.db-common.getrow.see">
&title.see;
<para>
+ <link linkend="package.database.db.db-common.setfetchmode">
+ <function>setFetchMode</function></link>,
<link linkend="package.database.db.db-common.getone">
<function>getOne</function></link>,
<link linkend="package.database.db.db-common.getcol">