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

From: Date: Sun, 30 Apr 2006 02:39:22 +0000
Subject: cvs: phpdoc /en/reference/pdo/functions PDO-query.xml PDOStatement-setFetchMode.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969372811@lists.php.net to get a copy of this message
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/phpdoc/en/reference/pdo/functions/PDO-query.xml?r1=1.6&r2=1.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/phpdoc/en/reference/pdo/functions/PDOStatement-setFetchMode.xml?r1=1.4&r2=1.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;

« previous php.doc (#969372811) next »