Fixed bug #51809 (Missing information in PDOStatement->fetchAll docs)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@304883 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Kalle Sommer Nielsen 2010-10-25 17:10:42 +00:00
parent 3e9d8217db
commit e12a44b369

View file

@ -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>