svn: /phpdoc/en/trunk/reference/pdo/pdostatement/ fetchall.xml
| From: | Kalle Sommer Nielsen | Date: | Mon, 25 Oct 2010 17:10:42 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/pdo/pdostatement/ fetchall.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-7331@lists.php.net to get a copy of this message | ||
kalle Mon, 25 Oct 2010 17:10:42 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=304883
Log:
Fixed bug #51809 (Missing information in PDOStatement->fetchAll docs)
Bug: http://bugs.php.net/51809 (Open) Missing information in
PDOStatement->fetchAll docs
Changed paths:
U phpdoc/en/trunk/reference/pdo/pdostatement/fetchall.xml
Modified: phpdoc/en/trunk/reference/pdo/pdostatement/fetchall.xml
===================================================================
--- phpdoc/en/trunk/reference/pdo/pdostatement/fetchall.xml 2010-10-25 16:46:55 UTC (rev 304882)
+++ phpdoc/en/trunk/reference/pdo/pdostatement/fetchall.xml 2010-10-25 17:10:42 UTC (rev 304883)
@@ -12,7 +12,7 @@
<methodsynopsis>
<type>array</type><methodname>PDOStatement::fetchAll</methodname>
<methodparam
choice="opt"><type>int</type><parameter>fetch_style</parameter><initializer>PDO::FETCH_BOTH</initializer></methodparam>
- <methodparam
choice="opt"><type>int</type><parameter>column_index</parameter><initializer>0</initializer></methodparam>
+ <methodparam
choice="opt"><type>int</type><parameter>fetch_argument</parameter><initializer>0</initializer></methodparam>
<methodparam
choice="opt"><type>array</type><parameter>ctor_args</parameter><initializer>array()</initializer></methodparam>
</methodsynopsis>
@@ -48,12 +48,25 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>column_index</parameter></term>
+ <term><parameter>fetch_argument</parameter></term>
<listitem>
<para>
- Returns the indicated 0-indexed column when the value of
- <parameter>fetch_style</parameter> is
- <literal>PDO::FETCH_COLUMN</literal>.
+ This argument have a different meaning depending on the value of
+ the <parameter>fetch_style</parameter> parameter:
+ <itemizedlist>
+ <listitem>
+ <para>
+ <constant>PDO::FETCH_COLUMN</constant>: Returns the indicated 0-indexed
+ column.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <constant>PDO::FETCH_CLASS</constant>: Sets a custom class name for which
+ the fetch results will be stored in.
+ </para>
+ </listitem>
+ </itemizedlist>
</para>
</listitem>
</varlistentry>
@@ -61,7 +74,8 @@
<term><parameter>ctor_args</parameter></term>
<listitem>
<para>
- Arguments of custom class constructor.
+ Arguments of custom class constructor when the
<parameter>fetch_style</parameter>
+ parameter is <constant>PDO::FETCH_CLASS</constant>.
</para>
</listitem>
</varlistentry>