For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > April 2006 > cvs: phpdoc /en/reference/pdo/functions PDO-query.xml PDOStatement-setFetchMode.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /en/reference/pdo/functions PDO-query.xml PDOStatement-setFetchMode.xml
Wez Furlong

2006-04-29, 9:58 pm

wez Sun Apr 30 02:39:22 2006 UTC

Modified files:
/phpdoc/en/reference/pdo/functions PDO-query.xml
PDOStatement-setFetchMode.xml
Log:
improve documentation on PDOStatement::setFetchMode() and PDO::query().


http://cvs.php.net/viewcvs.cgi/phpd...7&diff_format=u
Index: phpdoc/en/reference/pdo/functions/PDO-query.xml
diff -u phpdoc/en/reference/pdo/functions/PDO-query.xml:1.6 phpdoc/en/reference/pdo/functions/PDO-query.xml:1.7
--- phpdoc/en/reference/pdo/functions/PDO-query.xml:1.6 Wed Oct 19 20:45:02 2005
+++ phpdoc/en/reference/pdo/functions/PDO-query.xml Sun Apr 30 02:39:21 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc. -->
<refentry id="function.PDO-query">
<refnamediv>
@@ -15,6 +15,28 @@
<methodparam><type>string</type><parameter>statement</parameter></methodparam>
</methodsynopsis>

+ <methodsynopsis>
+ <type>bool</type><methodname>PDO::query</methodname>
+ <methodparam><type>string</type><parameter>statement</parameter></methodparam>
+ <methodparam><type>int</type><parameter>PDO::FETCH_COLUMN</parameter></methodparam>
+ <methodparam><type>int</type><parameter>colno</parameter></methodparam>
+ </methodsynopsis>
+
+ <methodsynopsis>
+ <type>bool</type><methodname>PDO::query</methodname>
+ <methodparam><type>string</type><parameter>statement</parameter></methodparam>
+ <methodparam><type>int</type><parameter>PDO::FETCH_CLASS</parameter></methodparam>
+ <methodparam><type>string</type><parameter>classname</parameter></methodparam>
+ <methodparam><type>array</type><parameter>ctorargs</parameter></methodparam>
+ </methodsynopsis>
+
+ <methodsynopsis>
+ <type>bool</type><methodname>PDO::query</methodname>
+ <methodparam><type>string</type><parameter>statement</parameter></methodparam>
+ <methodparam><type>int</type><parameter>PDO::FETCH_INTO</parameter></methodparam>
+ <methodparam><type>object</type><parameter>object</parameter></methodparam>
+ </methodsynopsis>
+
<para>
<function>PDO::query</function> 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 <function>PDO::query</function>.
</para>

+ <note>
+ <para>
+ 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
+ <function>PDOStatement::setFetchMode</function> on the resultant statement
+ object.
+ </para>
+ </note>
+
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
http://cvs.php.net/viewcvs.cgi/phpd...5&diff_format=u
Index: phpdoc/en/reference/pdo/functions/PDOStatement-setFetchMode.xml
diff -u phpdoc/en/reference/pdo/functions/PDOStatement-setFetchMode.xml:1.4 phpdoc/en/reference/pdo/functions/PDOStatement-setFetchMode.xml:1.5
--- phpdoc/en/reference/pdo/functions/PDOStatement-setFetchMode.xml:1.4 Tue Sep 20 08:22:29 2005
+++ phpdoc/en/reference/pdo/functions/PDOStatement-setFetchMode.xml Sun Apr 30 02:39:22 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc. -->
<refentry id="function.PDOStatement-setFetchMode">
<refnamediv>
@@ -15,6 +15,25 @@
<methodparam><type>int</type><parameter>mode</parameter></methodparam>
</methodsynopsis>

+ <methodsynopsis>
+ <type>bool</type><methodname>PDOStatement::setFetchMode</methodname>
+ <methodparam><type>int</type><parameter>PDO::FETCH_COLUMN</parameter></methodparam>
+ <methodparam><type>int</type><parameter>colno</parameter></methodparam>
+ </methodsynopsis>
+
+ <methodsynopsis>
+ <type>bool</type><methodname>PDOStatement::setFetchMode</methodname>
+ <methodparam><type>int</type><parameter>PDO::FETCH_CLASS</parameter></methodparam>
+ <methodparam><type>string</type><parameter>classname</parameter></methodparam>
+ <methodparam><type>array</type><parameter>ctorargs</parameter></methodparam>
+ </methodsynopsis>
+
+ <methodsynopsis>
+ <type>bool</type><methodname>PDOStatement::setFetchMode</methodname>
+ <methodparam><type>int</type><parameter>PDO::FETCH_INTO</parameter></methodparam>
+ <methodparam><type>object</type><parameter>object</parameter></methodparam>
+ </methodsynopsis>
+
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com