From af10efebe2137c05097f2972cbd632327dc43531 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 30 Apr 2006 02:39:22 +0000 Subject: [PATCH] improve documentation on PDOStatement::setFetchMode() and PDO::query(). git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@212186 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pdo/functions/PDO-query.xml | 34 ++++++++++++++++++- .../functions/PDOStatement-setFetchMode.xml | 21 +++++++++++- 2 files changed, 53 insertions(+), 2 deletions(-) diff --git a/reference/pdo/functions/PDO-query.xml b/reference/pdo/functions/PDO-query.xml index 27272be1b8..1f0dcc3d4f 100644 --- a/reference/pdo/functions/PDO-query.xml +++ b/reference/pdo/functions/PDO-query.xml @@ -1,5 +1,5 @@ - + @@ -15,6 +15,28 @@ stringstatement + + boolPDO::query + stringstatement + intPDO::FETCH_COLUMN + intcolno + + + + boolPDO::query + stringstatement + intPDO::FETCH_CLASS + stringclassname + arrayctorargs + + + + boolPDO::query + stringstatement + intPDO::FETCH_INTO + objectobject + + PDO::query executes an SQL statement in a single function call, returning the result set (if any) returned by the @@ -34,6 +56,16 @@ next call to PDO::query. + + + Although this function is only documented as having a single + parameter, you may pass additional arguments to this function. + They will be treated as though you called + PDOStatement::setFetchMode on the resultant statement + object. + + + &reftitle.parameters; diff --git a/reference/pdo/functions/PDOStatement-setFetchMode.xml b/reference/pdo/functions/PDOStatement-setFetchMode.xml index e48a58fd7e..50725c0991 100644 --- a/reference/pdo/functions/PDOStatement-setFetchMode.xml +++ b/reference/pdo/functions/PDOStatement-setFetchMode.xml @@ -1,5 +1,5 @@ - + @@ -15,6 +15,25 @@ intmode + + boolPDOStatement::setFetchMode + intPDO::FETCH_COLUMN + intcolno + + + + boolPDOStatement::setFetchMode + intPDO::FETCH_CLASS + stringclassname + arrayctorargs + + + + boolPDOStatement::setFetchMode + intPDO::FETCH_INTO + objectobject + + &reftitle.parameters;