From e12a44b36935e90bf1074a51a6db52bc871912cf Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Mon, 25 Oct 2010 17:10:42 +0000 Subject: [PATCH] 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 --- reference/pdo/pdostatement/fetchall.xml | 26 +++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/reference/pdo/pdostatement/fetchall.xml b/reference/pdo/pdostatement/fetchall.xml index 4fd4a00eb6..c78ba185e1 100644 --- a/reference/pdo/pdostatement/fetchall.xml +++ b/reference/pdo/pdostatement/fetchall.xml @@ -12,7 +12,7 @@ arrayPDOStatement::fetchAll intfetch_stylePDO::FETCH_BOTH - intcolumn_index0 + intfetch_argument0 arrayctor_argsarray() @@ -48,12 +48,25 @@ - column_index + fetch_argument - Returns the indicated 0-indexed column when the value of - fetch_style is - PDO::FETCH_COLUMN. + This argument have a different meaning depending on the value of + the fetch_style parameter: + + + + PDO::FETCH_COLUMN: Returns the indicated 0-indexed + column. + + + + + PDO::FETCH_CLASS: Sets a custom class name for which + the fetch results will be stored in. + + + @@ -61,7 +74,8 @@ ctor_args - Arguments of custom class constructor. + Arguments of custom class constructor when the fetch_style + parameter is PDO::FETCH_CLASS.