vrana           Tue Sep 20 04:22:30 2005 EDT

  Modified files:              
    /phpdoc/en/reference/pdo    constants.xml reference.xml 
    /phpdoc/en/reference/pdo/functions  PDO-getAttribute.xml 
                                        PDO-prepare.xml 
                                        PDO-setAttribute.xml 
                                        PDOStatement-bindColumn.xml 
                                        PDOStatement-bindParam.xml 
                                        PDOStatement-bindValue.xml 
                                        PDOStatement-execute.xml 
                                        PDOStatement-fetch.xml 
                                        PDOStatement-fetchAll.xml 
                                        PDOStatement-getColumnMeta.xml 
                                        PDOStatement-nextRowset.xml 
                                        PDOStatement-setFetchMode.xml 
  Log:
  Class constants
  
http://cvs.php.net/diff.php/phpdoc/en/reference/pdo/constants.xml?r1=1.11&r2=1.12&ty=u
Index: phpdoc/en/reference/pdo/constants.xml
diff -u phpdoc/en/reference/pdo/constants.xml:1.11 
phpdoc/en/reference/pdo/constants.xml:1.12
--- phpdoc/en/reference/pdo/constants.xml:1.11  Sun Sep 18 10:03:30 2005
+++ phpdoc/en/reference/pdo/constants.xml       Tue Sep 20 04:22:28 2005
@@ -1,13 +1,19 @@
 <?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.11 $ -->
+<!-- $Revision: 1.12 $ -->
 <!-- Generated by xml_proto.php v2.1. Found in /scripts directory of phpdoc. 
-->
 <section id="pdo.constants">
  &reftitle.constants;
  &extension.constants;
+ <warning>
+  <para>
+   PDO uses class constants since PHP 5.1. Prior releases use global constants
+   in the form <constant>PDO_PARAM_BOOL</constant>.
+  </para>
+ </warning>
  <variablelist>
   <varlistentry>
    <term>
-    <constant>PDO_PARAM_BOOL</constant>
+    <constant>PDO::PARAM_BOOL</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -19,7 +25,7 @@
 
   <varlistentry>
    <term>
-    <constant>PDO_PARAM_NULL</constant>
+    <constant>PDO::PARAM_NULL</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -30,7 +36,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_PARAM_INT</constant>
+    <constant>PDO::PARAM_INT</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -41,7 +47,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_PARAM_STR</constant>
+    <constant>PDO::PARAM_STR</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -52,7 +58,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_PARAM_LOB</constant>
+    <constant>PDO::PARAM_LOB</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -63,7 +69,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_PARAM_STMT</constant>
+    <constant>PDO::PARAM_STMT</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -74,61 +80,61 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_PARAM_INPUT_OUTPUT</constant>
+    <constant>PDO::PARAM_INPUT_OUTPUT</constant>
      (<type>integer</type>)
    </term>
    <listitem>
     <simpara>
      Specifies that the parameter is an INOUT parameter for a stored
      procedure. You must bitwise-OR this value with an explicit
-     PDO_PARAM_* data type.
+     PDO::PARAM_* data type.
     </simpara>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_FETCH_LAZY</constant>
+    <constant>PDO::FETCH_LAZY</constant>
      (<type>integer</type>)
    </term>
    <listitem>
     <simpara>
      Specifies that the fetch method shall return each row as an object with
      variable names that correspond to the column names returned in the result
-     set. PDO_FETCH_LAZY creates the object variable names as they are 
accessed.
+     set. PDO::FETCH_LAZY creates the object variable names as they are 
accessed.
     </simpara>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_FETCH_ASSOC</constant>
+    <constant>PDO::FETCH_ASSOC</constant>
      (<type>integer</type>)
    </term>
    <listitem>
     <simpara>
      Specifies that the fetch method shall return each row as an array indexed
      by column name as returned in the corresponding result set. If the result
-     set contains multiple columns with the same name, PDO_FETCH_ASSOC returns
+     set contains multiple columns with the same name, PDO::FETCH_ASSOC returns
      only a single value per column name.
     </simpara>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_FETCH_NAMED</constant>
+    <constant>PDO::FETCH_NAMED</constant>
      (<type>integer</type>)
    </term>
    <listitem>
     <simpara>
      Specifies that the fetch method shall return each row as an array indexed
      by column name as returned in the corresponding result set. If the result
-     set contains multiple columns with the same name, PDO_FETCH_NAMED returns
+     set contains multiple columns with the same name, PDO::FETCH_NAMED returns
      an array of values per column name.
     </simpara>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_FETCH_NUM</constant>
+    <constant>PDO::FETCH_NUM</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -141,7 +147,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_FETCH_BOTH</constant>
+    <constant>PDO::FETCH_BOTH</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -154,7 +160,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_FETCH_OBJ</constant>
+    <constant>PDO::FETCH_OBJ</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -167,7 +173,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_FETCH_BOUND</constant>
+    <constant>PDO::FETCH_BOUND</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -181,7 +187,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_FETCH_COLUMN</constant>
+    <constant>PDO::FETCH_COLUMN</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -193,7 +199,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_FETCH_CLASS</constant>
+    <constant>PDO::FETCH_CLASS</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -205,7 +211,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_FETCH_INTO</constant>
+    <constant>PDO::FETCH_INTO</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -217,7 +223,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_FETCH_FUNC</constant>
+    <constant>PDO::FETCH_FUNC</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -228,7 +234,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_FETCH_GROUP</constant>
+    <constant>PDO::FETCH_GROUP</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -239,7 +245,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_FETCH_UNIQUE</constant>
+    <constant>PDO::FETCH_UNIQUE</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -250,7 +256,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_FETCH_CLASSTYPE</constant>
+    <constant>PDO::FETCH_CLASSTYPE</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -261,7 +267,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_ATTR_AUTOCOMMIT</constant>
+    <constant>PDO::ATTR_AUTOCOMMIT</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -273,7 +279,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_ATTR_PREFETCH</constant>
+    <constant>PDO::ATTR_PREFETCH</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -287,7 +293,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_ATTR_TIMEOUT</constant>
+    <constant>PDO::ATTR_TIMEOUT</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -298,7 +304,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_ATTR_ERRMODE</constant>
+    <constant>PDO::ATTR_ERRMODE</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -310,7 +316,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_ATTR_SERVER_VERSION</constant>
+    <constant>PDO::ATTR_SERVER_VERSION</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -322,7 +328,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_ATTR_CLIENT_VERSION</constant>
+    <constant>PDO::ATTR_CLIENT_VERSION</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -334,7 +340,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_ATTR_SERVER_INFO</constant>
+    <constant>PDO::ATTR_SERVER_INFO</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -346,7 +352,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_ATTR_CONNECTION_STATUS</constant>
+    <constant>PDO::ATTR_CONNECTION_STATUS</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -357,19 +363,19 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_ATTR_CASE</constant>
+    <constant>PDO::ATTR_CASE</constant>
      (<type>integer</type>)
    </term>
    <listitem>
     <simpara>
-     Force column names to a specific case specified by the PDO_CASE_*
+     Force column names to a specific case specified by the PDO::CASE_*
      constants.
     </simpara>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_ATTR_CURSOR_NAME</constant>
+    <constant>PDO::ATTR_CURSOR_NAME</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -381,15 +387,15 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_ATTR_CURSOR</constant>
+    <constant>PDO::ATTR_CURSOR</constant>
      (<type>integer</type>)
    </term>
    <listitem>
     <simpara>
      Selects the cursor type.  PDO currently supports either
-     <constant>PDO_CURSOR_FWDONLY</constant> and 
-     <constant>PDO_CURSOR_SCROLL</constant>.  Stick with
-     <constant>PDO_CURSOR_FWDONLY</constant> unless you know that you need a
+     <constant>PDO::CURSOR_FWDONLY</constant> and 
+     <constant>PDO::CURSOR_SCROLL</constant>.  Stick with
+     <constant>PDO::CURSOR_FWDONLY</constant> unless you know that you need a
      scrollable cursor.
     </simpara>
    </listitem>
@@ -397,7 +403,7 @@
 
   <varlistentry>
    <term>
-    <constant>PDO_ATTR_DRIVER_NAME</constant>
+    <constant>PDO::ATTR_DRIVER_NAME</constant>
      (<type>string</type>)
    </term>
    <listitem>
@@ -405,11 +411,11 @@
      Returns the name of the driver.
     </simpara>
     <para>
-     <example><title>using PDO_ATTR_DRIVER_NAME</title>
+     <example><title>using PDO::ATTR_DRIVER_NAME</title>
      <programlisting role='php'>
 <![CDATA[
 <?php
-if ($db->getAttribute(PDO_ATTR_DRIVER_NAME) == 'mysql') {
+if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
   echo "Running on mysql; doing something mysql specific here\n";
 }
 ?>
@@ -422,7 +428,7 @@
 
   <varlistentry>
    <term>
-    <constant>PDO_ATTR_ORACLE_NULLS</constant>
+    <constant>PDO::ATTR_ORACLE_NULLS</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -433,7 +439,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_ATTR_PERSISTENT</constant>
+    <constant>PDO::ATTR_PERSISTENT</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -446,7 +452,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_ATTR_FETCH_CATALOG_NAMES</constant>
+    <constant>PDO::ATTR_FETCH_CATALOG_NAMES</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -460,7 +466,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_ATTR_FETCH_TABLE_NAMES</constant>
+    <constant>PDO::ATTR_FETCH_TABLE_NAMES</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -474,7 +480,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_ERRMODE_SILENT</constant>
+    <constant>PDO::ERRMODE_SILENT</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -488,7 +494,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_ERRMODE_WARNING</constant>
+    <constant>PDO::ERRMODE_WARNING</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -501,7 +507,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_ERRMODE_EXCEPTION</constant>
+    <constant>PDO::ERRMODE_EXCEPTION</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -514,7 +520,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_CASE_NATURAL</constant>
+    <constant>PDO::CASE_NATURAL</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -525,7 +531,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_CASE_LOWER</constant>
+    <constant>PDO::CASE_LOWER</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -536,7 +542,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_CASE_UPPER</constant>
+    <constant>PDO::CASE_UPPER</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -547,7 +553,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_FETCH_ORI_NEXT</constant>
+    <constant>PDO::FETCH_ORI_NEXT</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -558,7 +564,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_FETCH_ORI_PRIOR</constant>
+    <constant>PDO::FETCH_ORI_PRIOR</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -570,7 +576,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_FETCH_ORI_FIRST</constant>
+    <constant>PDO::FETCH_ORI_FIRST</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -581,7 +587,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_FETCH_ORI_LAST</constant>
+    <constant>PDO::FETCH_ORI_LAST</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -592,7 +598,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_FETCH_ORI_ABS</constant>
+    <constant>PDO::FETCH_ORI_ABS</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -604,7 +610,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_FETCH_ORI_REL</constant>
+    <constant>PDO::FETCH_ORI_REL</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -616,7 +622,7 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_CURSOR_FWDONLY</constant>
+    <constant>PDO::CURSOR_FWDONLY</constant>
      (<type>integer</type>)
    </term>
    <listitem>
@@ -629,19 +635,19 @@
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_CURSOR_SCROLL</constant>
+    <constant>PDO::CURSOR_SCROLL</constant>
      (<type>integer</type>)
    </term>
    <listitem>
     <simpara>
      Create a PDOStatement object with a scrollable cursor. Pass the
-     PDO_FETCH_ORI_* constants to control the rows fetched from the result set.
+     PDO::FETCH_ORI_* constants to control the rows fetched from the result 
set.
     </simpara>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>
-    <constant>PDO_ERR_NONE</constant>
+    <constant>PDO::ERR_NONE</constant>
      (<type>string</type>)
    </term>
    <listitem>
http://cvs.php.net/diff.php/phpdoc/en/reference/pdo/reference.xml?r1=1.39&r2=1.40&ty=u
Index: phpdoc/en/reference/pdo/reference.xml
diff -u phpdoc/en/reference/pdo/reference.xml:1.39 
phpdoc/en/reference/pdo/reference.xml:1.40
--- phpdoc/en/reference/pdo/reference.xml:1.39  Tue Sep 20 04:08:59 2005
+++ phpdoc/en/reference/pdo/reference.xml       Tue Sep 20 04:22:28 2005
@@ -1,5 +1,5 @@
 <?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.39 $ -->
+<!-- $Revision: 1.40 $ -->
 <!-- Purpose: database.abstract -->
 <!-- Membership: pecl, bundled -->
 <!-- State:experimental -->
@@ -311,7 +311,7 @@
 <![CDATA[
 <?php
 $dbh = new PDO('mysql:host=localhost;dbname=test', $user, $pass, array(
-  PDO_ATTR_PERSISTENT => true
+  PDO::ATTR_PERSISTENT => true
 ));
 ?>
 ]]>
@@ -404,9 +404,9 @@
 <?php
 try {
   $dbh = new PDO('odbc:SAMPLE', 'db2inst1', 'ibmdb2', 
-      array(PDO_ATTR_PERSISTENT => true));
+      array(PDO::ATTR_PERSISTENT => true));
   echo "Connected\n";
-  $dbh->setAttribute(PDO_ATTR_ERRMODE, PDO_ERRMODE_EXCEPTION);
+  $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
 
   $dbh->beginTransaction();
   $dbh->exec("insert into staff (id, first, last) values (23, 'Joe', 
'Bloggs')");
@@ -561,7 +561,7 @@
 <![CDATA[
 <?php
 $stmt = $dbh->prepare("CALL sp_returns_string(?)");
-$stmt->bindParam(1, $return_value, PDO_PARAM_STR, 4000); 
+$stmt->bindParam(1, $return_value, PDO::PARAM_STR, 4000); 
 
 // call the stored procedure
 $stmt->execute();
@@ -587,7 +587,7 @@
 <?php
 $stmt = $dbh->prepare("CALL sp_takes_string_returns_string(?)");
 $value = 'hello';
-$stmt->bindParam(1, $value, PDO_PARAM_STR|PDO_PARAM_INPUT_OUTPUT, 4000); 
+$stmt->bindParam(1, $value, PDO::PARAM_STR|PDO::PARAM_INPUT_OUTPUT, 4000); 
 
 // call the stored procedure
 $stmt->execute();
@@ -609,7 +609,7 @@
     <itemizedlist>
      <listitem>
       <para>
-       <constant>PDO_ERRMODE_SILENT</constant>
+       <constant>PDO::ERRMODE_SILENT</constant>
       </para>
       <para>
         This is the default mode. PDO will simply set the error code for you
@@ -626,7 +626,7 @@
      </listitem>
      <listitem>
       <para>
-       <constant>PDO_ERRMODE_WARNING</constant>
+       <constant>PDO::ERRMODE_WARNING</constant>
       </para>
       <para>
         In addition to setting the error code, PDO will emit a traditional
@@ -637,7 +637,7 @@
       </listitem>
       <listitem>
        <para>
-        <constant>PDO_ERRMODE_EXCEPTION</constant>
+        <constant>PDO::ERRMODE_EXCEPTION</constant>
        </para>
        <para>
         In addition to setting the error code, PDO will throw a
@@ -681,10 +681,10 @@
       more", although some databases can happily handle up to 32kb before data 
becomes
       "large". Large objects can be either textual or binary in nature. PDO
       allows you to work with this large data type by using the
-      <constant>PDO_PARAM_LOB</constant>
+      <constant>PDO::PARAM_LOB</constant>
       type code in your <function>PDOStatement::bindParam</function> or
       <function>PDOStatement::bindColumn</function> calls.
-      <constant>PDO_PARAM_LOB</constant> tells
+      <constant>PDO::PARAM_LOB</constant> tells
       PDO to map the data as a stream, so that you can manipulate it using the
       <link linkend='ref.stream'>PHP Streams API</link>.
     </para>
@@ -706,9 +706,9 @@
 $db = new PDO('odbc:SAMPLE', 'db2inst1', 'ibmdb2');
 $stmt = $db->prepare("select contenttype, imagedata from images where id=?");
 $stmt->execute(array($_GET['id']));
-$stmt->bindColumn(1, $type, PDO_PARAM_STR, 256);
-$stmt->bindColumn(2, $lob, PDO_PARAM_LOB);
-$stmt->fetch(PDO_FETCH_BOUND);
+$stmt->bindColumn(1, $type, PDO::PARAM_STR, 256);
+$stmt->bindColumn(2, $lob, PDO::PARAM_LOB);
+$stmt->fetch(PDO::FETCH_BOUND);
 
 header("Content-Type: $type");
 fpassthru($lob);
@@ -738,7 +738,7 @@
 
 $stmt->bindParam(1, $id);
 $stmt->bindParam(2, $_FILES['file']['type']);
-$stmt->bindParam(3, $fp, PDO_PARAM_LOB);
+$stmt->bindParam(3, $fp, PDO::PARAM_LOB);
 
 $stmt->execute();
 ?>
http://cvs.php.net/diff.php/phpdoc/en/reference/pdo/functions/PDO-getAttribute.xml?r1=1.6&r2=1.7&ty=u
Index: phpdoc/en/reference/pdo/functions/PDO-getAttribute.xml
diff -u phpdoc/en/reference/pdo/functions/PDO-getAttribute.xml:1.6 
phpdoc/en/reference/pdo/functions/PDO-getAttribute.xml:1.7
--- phpdoc/en/reference/pdo/functions/PDO-getAttribute.xml:1.6  Sun Sep 11 
02:22:26 2005
+++ phpdoc/en/reference/pdo/functions/PDO-getAttribute.xml      Tue Sep 20 
04:22:28 2005
@@ -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-getAttribute">
  <refnamediv>
@@ -36,21 +36,21 @@
      <term><parameter>attribute</parameter></term>
      <listitem>
       <para>
-       One of the <literal>PDO_ATTR_*</literal> constants. The constants that
+       One of the <literal>PDO::ATTR_*</literal> constants. The constants that
        apply to database connections are as follows:
        <simplelist> 
-        <member><literal>PDO_ATTR_AUTOCOMMIT</literal></member>
-        <member><literal>PDO_ATTR_CASE</literal></member>
-        <member><literal>PDO_ATTR_CLIENT_VERSION</literal></member>
-        <member><literal>PDO_ATTR_CONNECTION_STATUS</literal></member>
-        <member><literal>PDO_ATTR_DRIVER_NAME</literal></member>
-        <member><literal>PDO_ATTR_ERRMODE</literal></member>
-        <member><literal>PDO_ATTR_ORACLE_NULLS</literal></member>
-        <member><literal>PDO_ATTR_PERSISTENT</literal></member>
-        <member><literal>PDO_ATTR_PREFETCH</literal></member>
-        <member><literal>PDO_ATTR_SERVER_INFO</literal></member>
-        <member><literal>PDO_ATTR_SERVER_VERSION</literal></member>
-        <member><literal>PDO_ATTR_TIMEOUT</literal></member>
+        <member><literal>PDO::ATTR_AUTOCOMMIT</literal></member>
+        <member><literal>PDO::ATTR_CASE</literal></member>
+        <member><literal>PDO::ATTR_CLIENT_VERSION</literal></member>
+        <member><literal>PDO::ATTR_CONNECTION_STATUS</literal></member>
+        <member><literal>PDO::ATTR_DRIVER_NAME</literal></member>
+        <member><literal>PDO::ATTR_ERRMODE</literal></member>
+        <member><literal>PDO::ATTR_ORACLE_NULLS</literal></member>
+        <member><literal>PDO::ATTR_PERSISTENT</literal></member>
+        <member><literal>PDO::ATTR_PREFETCH</literal></member>
+        <member><literal>PDO::ATTR_SERVER_INFO</literal></member>
+        <member><literal>PDO::ATTR_SERVER_VERSION</literal></member>
+        <member><literal>PDO::ATTR_TIMEOUT</literal></member>
        </simplelist> 
       </para>
      </listitem>
@@ -77,38 +77,38 @@
 <?php
 $conn = new PDO('odbc:sample', 'db2inst1', 'ibmdb2');
 
-print "\nPDO_ATTR_AUTOCOMMIT: ";
-print $conn->getAttribute(PDO_ATTR_AUTOCOMMIT);
+print "\nPDO::ATTR_AUTOCOMMIT: ";
+print $conn->getAttribute(PDO::ATTR_AUTOCOMMIT);
 
-print "\nPDO_ATTR_ERRMODE: ";
-print $conn->getAttribute(PDO_ATTR_ERRMODE);
+print "\nPDO::ATTR_ERRMODE: ";
+print $conn->getAttribute(PDO::ATTR_ERRMODE);
 
-print "\nPDO_ATTR_CASE: ";
-print $conn->getAttribute(PDO_ATTR_CASE);
+print "\nPDO::ATTR_CASE: ";
+print $conn->getAttribute(PDO::ATTR_CASE);
 
-print "\nPDO_ATTR_CLIENT_VERSION: ";
-print $conn->getAttribute(PDO_ATTR_CLIENT_VERSION);
+print "\nPDO::ATTR_CLIENT_VERSION: ";
+print $conn->getAttribute(PDO::ATTR_CLIENT_VERSION);
 
-print "\nPDO_ATTR_CONNECTION_STATUS: ";
-print $conn->getAttribute(PDO_ATTR_CONNECTION_STATUS);
+print "\nPDO::ATTR_CONNECTION_STATUS: ";
+print $conn->getAttribute(PDO::ATTR_CONNECTION_STATUS);
 
-print "\nPDO_ATTR_ORACLE_NULLS: ";
-print $conn->getAttribute(PDO_ATTR_ORACLE_NULLS);
+print "\nPDO::ATTR_ORACLE_NULLS: ";
+print $conn->getAttribute(PDO::ATTR_ORACLE_NULLS);
 
-print "\nPDO_ATTR_PERSISTENT: ";
-print $conn->getAttribute(PDO_ATTR_PERSISTENT);
+print "\nPDO::ATTR_PERSISTENT: ";
+print $conn->getAttribute(PDO::ATTR_PERSISTENT);
 
-print "\nPDO_ATTR_PREFETCH: ";
-print $conn->getAttribute(PDO_ATTR_PREFETCH);
+print "\nPDO::ATTR_PREFETCH: ";
+print $conn->getAttribute(PDO::ATTR_PREFETCH);
 
-print "\nPDO_ATTR_SERVER_INFO: ";
-print $conn->getAttribute(PDO_ATTR_SERVER_INFO);
+print "\nPDO::ATTR_SERVER_INFO: ";
+print $conn->getAttribute(PDO::ATTR_SERVER_INFO);
 
-print "\nPDO_ATTR_SERVER_VERSION: ";
-print $conn->getAttribute(PDO_ATTR_SERVER_VERSION);
+print "\nPDO::ATTR_SERVER_VERSION: ";
+print $conn->getAttribute(PDO::ATTR_SERVER_VERSION);
 
-print "\nPDO_ATTR_TIMEOUT: ";
-print $conn->getAttribute(PDO_ATTR_TIMEOUT);
+print "\nPDO::ATTR_TIMEOUT: ";
+print $conn->getAttribute(PDO::ATTR_TIMEOUT);
 ?>
 ]]>
     </programlisting>
http://cvs.php.net/diff.php/phpdoc/en/reference/pdo/functions/PDO-prepare.xml?r1=1.8&r2=1.9&ty=u
Index: phpdoc/en/reference/pdo/functions/PDO-prepare.xml
diff -u phpdoc/en/reference/pdo/functions/PDO-prepare.xml:1.8 
phpdoc/en/reference/pdo/functions/PDO-prepare.xml:1.9
--- phpdoc/en/reference/pdo/functions/PDO-prepare.xml:1.8       Sun Sep 11 
02:22:26 2005
+++ phpdoc/en/reference/pdo/functions/PDO-prepare.xml   Tue Sep 20 04:22:29 2005
@@ -1,5 +1,5 @@
 <?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
 <!-- Generated by xml_proto.php v2.1. Found in /scripts directory of phpdoc. 
-->
   <refentry id="function.PDO-prepare">
    <refnamediv>
@@ -59,8 +59,8 @@
          This array holds one or more key=&gt;value pairs to set
          attribute values for the PDOStatement object that this method
          returns. You would most commonly use this to set the
-         <literal>PDO_ATTR_CURSOR</literal> value to
-         <literal>PDO_CURSOR_SCROLL</literal> to request a scrollable cursor.
+         <literal>PDO::ATTR_CURSOR</literal> value to
+         <literal>PDO::CURSOR_SCROLL</literal> to request a scrollable cursor.
          Some drivers have driver specific options that may be set at
          prepare-time.
         </para>
@@ -89,7 +89,7 @@
 $sql = 'SELECT name, colour, calories
     FROM fruit
     WHERE calories < :calories AND colour = :colour';
-$sth = $dbh->prepare($sql, array(PDO_ATTR_CURSOR, PDO_CURSOR_FWDONLY));
+$sth = $dbh->prepare($sql, array(PDO::ATTR_CURSOR, PDO::CURSOR_FWDONLY));
 $sth->execute(array(':calories' => 150, ':colour' => 'red'));
 $red = $sth->fetchAll();
 $sth->execute(array(':calories' => 175, ':colour' => 'yellow'));
http://cvs.php.net/diff.php/phpdoc/en/reference/pdo/functions/PDO-setAttribute.xml?r1=1.4&r2=1.5&ty=u
Index: phpdoc/en/reference/pdo/functions/PDO-setAttribute.xml
diff -u phpdoc/en/reference/pdo/functions/PDO-setAttribute.xml:1.4 
phpdoc/en/reference/pdo/functions/PDO-setAttribute.xml:1.5
--- phpdoc/en/reference/pdo/functions/PDO-setAttribute.xml:1.4  Sun Sep 11 
02:22:26 2005
+++ phpdoc/en/reference/pdo/functions/PDO-setAttribute.xml      Tue Sep 20 
04:22:29 2005
@@ -1,5 +1,5 @@
 <?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
 <!-- Generated by xml_proto.php v2.1. Found in /scripts directory of phpdoc. 
-->
   <refentry id="function.PDO-setAttribute">
    <refnamediv>
@@ -22,17 +22,17 @@
      additional driver specific attributes.
      <itemizedlist>
       <listitem><para>
-       <literal>PDO_ATTR_CASE</literal>: Force column names to a specific case.
+       <literal>PDO::ATTR_CASE</literal>: Force column names to a specific 
case.
        <itemizedlist>
         <listitem><para>
-         <literal>PDO_CASE_LOWER</literal>: Force column names to lower case.
+         <literal>PDO::CASE_LOWER</literal>: Force column names to lower case.
         </para></listitem>
         <listitem><para>
-         <literal>PDO_CASE_NATURAL</literal>: Leave column names as returned by
+         <literal>PDO::CASE_NATURAL</literal>: Leave column names as returned 
by
          the database driver.
         </para></listitem>
         <listitem><para>
-         <literal>PDO_CASE_UPPER</literal>: Force column names to upper case.
+         <literal>PDO::CASE_UPPER</literal>: Force column names to upper case.
         </para></listitem>
        </itemizedlist>
       </para></listitem>
http://cvs.php.net/diff.php/phpdoc/en/reference/pdo/functions/PDOStatement-bindColumn.xml?r1=1.7&r2=1.8&ty=u
Index: phpdoc/en/reference/pdo/functions/PDOStatement-bindColumn.xml
diff -u phpdoc/en/reference/pdo/functions/PDOStatement-bindColumn.xml:1.7 
phpdoc/en/reference/pdo/functions/PDOStatement-bindColumn.xml:1.8
--- phpdoc/en/reference/pdo/functions/PDOStatement-bindColumn.xml:1.7   Sun Sep 
11 02:22:26 2005
+++ phpdoc/en/reference/pdo/functions/PDOStatement-bindColumn.xml       Tue Sep 
20 04:22:29 2005
@@ -1,5 +1,5 @@
 <?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
 <!-- Generated by xml_proto.php v2.1. Found in /scripts directory of phpdoc. 
-->
   <refentry id="function.PDOStatement-bindColumn">
    <refnamediv>
@@ -59,7 +59,7 @@
        <term><parameter>type</parameter></term>
         <listitem>
          <para>
-          Data type of the parameter, specified by the PDO_PARAM_* constants.
+          Data type of the parameter, specified by the PDO::PARAM_* constants.
          </para>
         </listitem>
        </varlistentry>
@@ -95,7 +95,7 @@
     /* Bind by column name */
     $stmt->bindColumn('calories', $cals);
 
-    while ($row = $stmt->fetch(PDO_FETCH_BOUND)) {
+    while ($row = $stmt->fetch(PDO::FETCH_BOUND)) {
       $data = $name . "\t" . $colour . "\t" . $cals . "\n";
       print $data;
     }
http://cvs.php.net/diff.php/phpdoc/en/reference/pdo/functions/PDOStatement-bindParam.xml?r1=1.10&r2=1.11&ty=u
Index: phpdoc/en/reference/pdo/functions/PDOStatement-bindParam.xml
diff -u phpdoc/en/reference/pdo/functions/PDOStatement-bindParam.xml:1.10 
phpdoc/en/reference/pdo/functions/PDOStatement-bindParam.xml:1.11
--- phpdoc/en/reference/pdo/functions/PDOStatement-bindParam.xml:1.10   Sun Sep 
11 02:22:26 2005
+++ phpdoc/en/reference/pdo/functions/PDOStatement-bindParam.xml        Tue Sep 
20 04:22:29 2005
@@ -1,5 +1,5 @@
 <?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.10 $ -->
+<!-- $Revision: 1.11 $ -->
 <!-- Generated by xml_proto.php v2.1. Found in /scripts directory of phpdoc. 
-->
   <refentry id="function.PDOStatement-bindParam">
    <refnamediv>
@@ -63,9 +63,9 @@
        <term><parameter>data_type</parameter></term>
         <listitem>
          <para>
-          Explicit data type for the parameter using the PDO_PARAM_*
+          Explicit data type for the parameter using the PDO::PARAM_*
           constants. To return an INOUT parameter from a stored procedure, 
-          use the bitwise OR operator to set the PDO_PARAM_INPUT_OUTPUT bits
+          use the bitwise OR operator to set the PDO::PARAM_INPUT_OUTPUT bits
           for the <parameter>data_type</parameter> parameter.
          </para>
         </listitem>
@@ -104,8 +104,8 @@
 $sth = $dbh->prepare('SELECT name, colour, calories
     FROM fruit
     WHERE calories < :calories AND colour = :colour');
-$sth->bindParam(':calories', $calories, PDO_PARAM_INT);
-$sth->bindParam(':colour', $colour, PDO_PARAM_STR, 12);
+$sth->bindParam(':calories', $calories, PDO::PARAM_INT);
+$sth->bindParam(':colour', $colour, PDO::PARAM_STR, 12);
 $sth->execute();
 ?>
 ]]>
@@ -122,8 +122,8 @@
 $sth = $dbh->prepare('SELECT name, colour, calories
     FROM fruit
     WHERE calories < ? AND colour = ?');
-$sth->bindParam(1, $calories, PDO_PARAM_INT);
-$sth->bindParam(2, $colour, PDO_PARAM_STR, 12);
+$sth->bindParam(1, $calories, PDO::PARAM_INT);
+$sth->bindParam(2, $colour, PDO::PARAM_STR, 12);
 $sth->execute();
 ?>
 ]]>
@@ -141,10 +141,10 @@
 $sth = $dbh->prepare('SELECT name, colour, calories
     FROM fruit
     WHERE calories < :calories AND colour = :colour');
-$sth->bindParam(':calories', $calories, PDO_PARAM_INT);
+$sth->bindParam(':calories', $calories, PDO::PARAM_INT);
 
 /* Find fruit with a NULL value in the colour column */
-$sth->bindParam(':colour', $colour, PDO_PARAM_NULL);
+$sth->bindParam(':colour', $colour, PDO::PARAM_NULL);
 
 $sth->execute();
 ?>
@@ -159,7 +159,7 @@
 /* Call a stored procedure with an INOUT parameter */
 $colour = 'red';
 $sth = $dbh->prepare('CALL puree_fruit(?)');
-$sth->bindParam(1, $colour, PDO_PARAM_STR|PDO_PARAM_INPUT_OUTPUT, 12);
+$sth->bindParam(1, $colour, PDO::PARAM_STR|PDO::PARAM_INPUT_OUTPUT, 12);
 $sth->execute();
 print("After pureeing fruit, the colour is: $colour");
 ?>
http://cvs.php.net/diff.php/phpdoc/en/reference/pdo/functions/PDOStatement-bindValue.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc/en/reference/pdo/functions/PDOStatement-bindValue.xml
diff -u phpdoc/en/reference/pdo/functions/PDOStatement-bindValue.xml:1.2 
phpdoc/en/reference/pdo/functions/PDOStatement-bindValue.xml:1.3
--- phpdoc/en/reference/pdo/functions/PDOStatement-bindValue.xml:1.2    Sun Sep 
11 02:22:26 2005
+++ phpdoc/en/reference/pdo/functions/PDOStatement-bindValue.xml        Tue Sep 
20 04:22:29 2005
@@ -1,5 +1,5 @@
 <?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- Generated by xml_proto.php v2.1. Found in /scripts directory of phpdoc. 
-->
   <refentry id="function.PDOStatement-bindValue">
    <refnamediv>
@@ -50,7 +50,7 @@
        <term><parameter>data_type</parameter></term>
         <listitem>
          <para>
-          Explicit data type for the parameter using the PDO_PARAM_*
+          Explicit data type for the parameter using the PDO::PARAM_*
           constants.
          </para>
         </listitem>
@@ -71,8 +71,8 @@
 $sth = $dbh->prepare('SELECT name, colour, calories
     FROM fruit
     WHERE calories < :calories AND colour = :colour');
-$sth->bindValue(':calories', $calories, PDO_PARAM_INT);
-$sth->bindValue(':colour', $colour, PDO_PARAM_STR);
+$sth->bindValue(':calories', $calories, PDO::PARAM_INT);
+$sth->bindValue(':colour', $colour, PDO::PARAM_STR);
 $sth->execute();
 ?>
 ]]>
@@ -89,8 +89,8 @@
 $sth = $dbh->prepare('SELECT name, colour, calories
     FROM fruit
     WHERE calories < ? AND colour = ?');
-$sth->bindValue(1, $calories, PDO_PARAM_INT);
-$sth->bindValue(2, $colour, PDO_PARAM_STR);
+$sth->bindValue(1, $calories, PDO::PARAM_INT);
+$sth->bindValue(2, $colour, PDO::PARAM_STR);
 $sth->execute();
 ?>
 ]]>
http://cvs.php.net/diff.php/phpdoc/en/reference/pdo/functions/PDOStatement-execute.xml?r1=1.6&r2=1.7&ty=u
Index: phpdoc/en/reference/pdo/functions/PDOStatement-execute.xml
diff -u phpdoc/en/reference/pdo/functions/PDOStatement-execute.xml:1.6 
phpdoc/en/reference/pdo/functions/PDOStatement-execute.xml:1.7
--- phpdoc/en/reference/pdo/functions/PDOStatement-execute.xml:1.6      Sun Sep 
11 02:22:26 2005
+++ phpdoc/en/reference/pdo/functions/PDOStatement-execute.xml  Tue Sep 20 
04:22:29 2005
@@ -1,5 +1,5 @@
 <?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
 <!-- Generated by xml_proto.php v2.1. Found in /scripts directory of phpdoc. 
-->
   <refentry id="function.PDOStatement-execute">
    <refnamediv>
@@ -38,8 +38,8 @@
 $sth = $dbh->prepare('SELECT name, colour, calories
     FROM fruit
     WHERE calories < :calories AND colour = :colour');
-$sth->bindParam(':calories', $calories, PDO_PARAM_INT);
-$sth->bindParam(':colour', $colour, PDO_PARAM_STR, 12);
+$sth->bindParam(':calories', $calories, PDO::PARAM_INT);
+$sth->bindParam(':colour', $colour, PDO::PARAM_STR, 12);
 $sth->execute();
 ?>
 ]]>
@@ -72,8 +72,8 @@
 $sth = $dbh->prepare('SELECT name, colour, calories
     FROM fruit
     WHERE calories < ? AND colour = ?');
-$sth->bindParam(1, $calories, PDO_PARAM_INT);
-$sth->bindParam(2, $colour, PDO_PARAM_STR, 12);
+$sth->bindParam(1, $calories, PDO::PARAM_INT);
+$sth->bindParam(2, $colour, PDO::PARAM_STR, 12);
 $sth->execute();
 ?>
 ]]>
http://cvs.php.net/diff.php/phpdoc/en/reference/pdo/functions/PDOStatement-fetch.xml?r1=1.8&r2=1.9&ty=u
Index: phpdoc/en/reference/pdo/functions/PDOStatement-fetch.xml
diff -u phpdoc/en/reference/pdo/functions/PDOStatement-fetch.xml:1.8 
phpdoc/en/reference/pdo/functions/PDOStatement-fetch.xml:1.9
--- phpdoc/en/reference/pdo/functions/PDOStatement-fetch.xml:1.8        Sun Sep 
11 02:22:26 2005
+++ phpdoc/en/reference/pdo/functions/PDOStatement-fetch.xml    Tue Sep 20 
04:22:29 2005
@@ -1,5 +1,5 @@
 <?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
 <!-- Generated by xml_proto.php v2.1. Found in /scripts directory of phpdoc. 
-->
   <refentry id="function.PDOStatement-fetch">
    <refnamediv>
@@ -31,35 +31,35 @@
        <listitem>
         <para>
          Controls how the next row will be returned to the caller. This value
-         must be one of the <literal>PDO_FETCH_*</literal> constants,
-         defaulting to <literal>PDO_FETCH_BOTH</literal>.
+         must be one of the <literal>PDO::FETCH_*</literal> constants,
+         defaulting to <literal>PDO::FETCH_BOTH</literal>.
          <itemizedlist>
           <listitem><para>
-           <literal>PDO_FETCH_ASSOC</literal>: returns an array indexed by 
column
+           <literal>PDO::FETCH_ASSOC</literal>: returns an array indexed by 
column
            name as returned in your result set
           </para></listitem>
           <listitem><para>
-           <literal>PDO_FETCH_BOTH</literal> (default): returns an array 
indexed by
+           <literal>PDO::FETCH_BOTH</literal> (default): returns an array 
indexed by
            both column name and column number as returned in your result set
           </para></listitem>
           <listitem><para>
-           <literal>PDO_FETCH_BOUND</literal>: returns &true; and assigns the
+           <literal>PDO::FETCH_BOUND</literal>: returns &true; and assigns the
            values of the columns in your result set to the PHP variables to 
which
            they were bound with the 
<function>PDOStatement::bindParam</function>
            method
           </para></listitem>
           <listitem><para>
-           <literal>PDO_FETCH_LAZY</literal>: combines
-           <literal>PDO_FETCH_BOTH</literal> and 
<literal>PDO_FETCH_OBJ</literal>,
+           <literal>PDO::FETCH_LAZY</literal>: combines
+           <literal>PDO::FETCH_BOTH</literal> and 
<literal>PDO::FETCH_OBJ</literal>,
            creating the object variable names as they are accessed
           </para></listitem>
           <listitem><para>
-           <literal>PDO_FETCH_OBJ</literal>: returns an anonymous object with
+           <literal>PDO::FETCH_OBJ</literal>: returns an anonymous object with
            property names that correspond to the column names returned in your
            result set
           </para></listitem>
           <listitem><para>
-           <literal>PDO_FETCH_NUM</literal>: returns an array indexed by column
+           <literal>PDO::FETCH_NUM</literal>: returns an array indexed by 
column
            number as returned in your result set, starting at column 0
           </para></listitem>
          </itemizedlist>
@@ -72,8 +72,8 @@
         <para>
          For a PDOStatement object representing a scrollable cursor, this
          value determines which row will be returned to the caller. This value
-         must be one of the <literal>PDO_FETCH_ORI_*</literal> constants,
-         defaulting to <literal>PDO_FETCH_ORI_NEXT</literal>.
+         must be one of the <literal>PDO::FETCH_ORI_*</literal> constants,
+         defaulting to <literal>PDO::FETCH_ORI_NEXT</literal>.
         </para>
        </listitem>
       </varlistentry>
@@ -83,13 +83,13 @@
         <para> 
          For a PDOStatement object representing a scrollable cursor for which
          the <literal>cursor_orientation</literal> parameter is set to
-         <literal>PDO_FETCH_ORI_ABS</literal>, this value specifies the
+         <literal>PDO::FETCH_ORI_ABS</literal>, this value specifies the
          absolute number of the row in the result set that shall be fetched.
         </para>
         <para>
          For a PDOStatement object representing a scrollable cursor for which
          the <literal>cursor_orientation</literal> parameter is set to
-         <literal>PDO_FETCH_ORI_REL</literal>, this value specifies the
+         <literal>PDO::FETCH_ORI_REL</literal>, this value specifies the
          row to fetch relative to the cursor position before
          <function>PDOStatement::fetch</function> was called.
         </para>
@@ -110,27 +110,27 @@
 $sth->execute();
 
 /* Exercise PDOStatement::fetch styles */
-print("PDO_FETCH_ASSOC: ");
+print("PDO::FETCH_ASSOC: ");
 print("Return next row as an array indexed by column name\n");
-$result = $sth->fetch(PDO_FETCH_ASSOC);
+$result = $sth->fetch(PDO::FETCH_ASSOC);
 print_r($result);
 print("\n");
 
-print("PDO_FETCH_BOTH: ");
+print("PDO::FETCH_BOTH: ");
 print("Return next row as an array indexed by both column name and number\n");
-$result = $sth->fetch(PDO_FETCH_BOTH);
+$result = $sth->fetch(PDO::FETCH_BOTH);
 print_r($result);
 print("\n");
 
-print("PDO_FETCH_LAZY: ");
+print("PDO::FETCH_LAZY: ");
 print("Return next row as an anonymous object with column names as 
properties\n");
-$result = $sth->fetch(PDO_FETCH_LAZY);
+$result = $sth->fetch(PDO::FETCH_LAZY);
 print_r($result);
 print("\n");
 
-print("PDO_FETCH_OBJ: ");
+print("PDO::FETCH_OBJ: ");
 print("Return next row as an anonymous object with column names as 
properties\n");
-$result = $sth->fetch(PDO_FETCH_OBJ);
+$result = $sth->fetch(PDO::FETCH_OBJ);
 print $result->NAME;
 print("\n");
 ?>
@@ -139,14 +139,14 @@
       &example.outputs;
       <screen>
 <![CDATA[
-PDO_FETCH_ASSOC: Return next row as an array indexed by column name
+PDO::FETCH_ASSOC: Return next row as an array indexed by column name
 Array
 (
     [NAME] => apple
     [COLOUR] => red
 )
 
-PDO_FETCH_BOTH: Return next row as an array indexed by both column name and 
number
+PDO::FETCH_BOTH: Return next row as an array indexed by both column name and 
number
 Array
 (
     [NAME] => banana
@@ -155,14 +155,14 @@
     [1] => yellow
 )
 
-PDO_FETCH_LAZY: Return next row as an anonymous object with column names as 
properties
+PDO::FETCH_LAZY: Return next row as an anonymous object with column names as 
properties
 PDORow Object
 (
     [NAME] => orange
     [COLOUR] => orange
 )
 
-PDO_FETCH_OBJ: Return next row as an anonymous object with column names as 
properties
+PDO::FETCH_OBJ: Return next row as an anonymous object with column names as 
properties
 kiwi
 ]]>
       </screen>
@@ -174,9 +174,9 @@
 function readDataForwards($dbh) {
   $sql = 'SELECT hand, won, bet FROM mynumbers ORDER BY BET';
   try {
-    $stmt = $dbh->prepare($sql, array(PDO_ATTR_CURSOR, PDO_CURSOR_SCROLL));
+    $stmt = $dbh->prepare($sql, array(PDO::ATTR_CURSOR, PDO::CURSOR_SCROLL));
     $stmt->execute();
-    while ($row = $stmt->fetch(PDO_FETCH_NUM, PDO_FETCH_ORI_NEXT)) {
+    while ($row = $stmt->fetch(PDO::FETCH_NUM, PDO::FETCH_ORI_NEXT)) {
       $data = $row[0] . "\t" . $row[1] . "\t" . $row[2] . "\n";
       print $data;
     }
@@ -189,13 +189,13 @@
 function readDataBackwards($dbh) {
   $sql = 'SELECT hand, won, bet FROM mynumbers ORDER BY bet';
   try {
-    $stmt = $dbh->prepare($sql, array(PDO_ATTR_CURSOR, PDO_CURSOR_SCROLL));
+    $stmt = $dbh->prepare($sql, array(PDO::ATTR_CURSOR, PDO::CURSOR_SCROLL));
     $stmt->execute();
-    $row = $stmt->fetch(PDO_FETCH_NUM, PDO_FETCH_ORI_LAST);
+    $row = $stmt->fetch(PDO::FETCH_NUM, PDO::FETCH_ORI_LAST);
     do {
       $data = $row[0] . "\t" . $row[1] . "\t" . $row[2] . "\n";
       print $data;
-    } while ($row = $stmt->fetch(PDO_FETCH_NUM, PDO_FETCH_ORI_PRIOR));
+    } while ($row = $stmt->fetch(PDO::FETCH_NUM, PDO::FETCH_ORI_PRIOR));
     $stmt = null;
   }
   catch (PDOException $e) {
http://cvs.php.net/diff.php/phpdoc/en/reference/pdo/functions/PDOStatement-fetchAll.xml?r1=1.8&r2=1.9&ty=u
Index: phpdoc/en/reference/pdo/functions/PDOStatement-fetchAll.xml
diff -u phpdoc/en/reference/pdo/functions/PDOStatement-fetchAll.xml:1.8 
phpdoc/en/reference/pdo/functions/PDOStatement-fetchAll.xml:1.9
--- phpdoc/en/reference/pdo/functions/PDOStatement-fetchAll.xml:1.8     Sun Sep 
11 02:22:26 2005
+++ phpdoc/en/reference/pdo/functions/PDOStatement-fetchAll.xml Tue Sep 20 
04:22:29 2005
@@ -1,5 +1,5 @@
 <?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
 <!-- Generated by xml_proto.php v2.1. Found in /scripts directory of phpdoc. 
-->
   <refentry id="function.PDOStatement-fetchAll">
    <refnamediv>
@@ -28,21 +28,21 @@
         <para>
          Controls the contents of the returned array as documented in
          <function>PDOStatement::fetch</function>. Defaults to
-         <literal>PDO_FETCH_BOTH</literal>.
+         <literal>PDO::FETCH_BOTH</literal>.
         </para>
         <para>
          To return an array consisting of all values of a single column from
-         the result set, specify <literal>PDO_FETCH_COLUMN</literal>.
+         the result set, specify <literal>PDO::FETCH_COLUMN</literal>.
         </para>
         <para>
          To fetch only the unique values of a single column from the result 
set,
-         bitwise-OR <literal>PDO_FETCH_COLUMN</literal> with
-         <literal>PDO_FETCH_UNIQUE</literal>.
+         bitwise-OR <literal>PDO::FETCH_COLUMN</literal> with
+         <literal>PDO::FETCH_UNIQUE</literal>.
         </para>
         <para>
          To return an associative array grouped by the values of a specified
-         column, bitwise-OR <literal>PDO_FETCH_COLUMN</literal> with
-         <literal>PDO_FETCH_GROUP</literal>.
+         column, bitwise-OR <literal>PDO::FETCH_COLUMN</literal> with
+         <literal>PDO::FETCH_GROUP</literal>.
         </para>
        </listitem>
       </varlistentry>
@@ -52,7 +52,7 @@
         <para>
          Returns the indicated 0-indexed column when the value of
          <parameter>fetch_style</parameter> is
-         <literal>PDO_FETCH_COLUMN</literal>. Defaults to <literal>0</literal>.
+         <literal>PDO::FETCH_COLUMN</literal>. Defaults to 
<literal>0</literal>.
         </para>
        </listitem>
       </varlistentry>
@@ -134,7 +134,7 @@
 $sth->execute();
 
 /* Fetch all of the values of the first column */
-$result = $sth->fetchAll(PDO_FETCH_COLUMN, 0);
+$result = $sth->fetchAll(PDO::FETCH_COLUMN, 0);
 var_dump($result);
 ?>
 ]]>
@@ -174,7 +174,7 @@
 $sth->execute();
 
 /* Group values by the first column */
-var_dump($sth->fetchAll(PDO_FETCH_COLUMN|PDO_FETCH_GROUP));
+var_dump($sth->fetchAll(PDO::FETCH_COLUMN|PDO::FETCH_GROUP));
 ?>
 ]]>
       </programlisting>
http://cvs.php.net/diff.php/phpdoc/en/reference/pdo/functions/PDOStatement-getColumnMeta.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc/en/reference/pdo/functions/PDOStatement-getColumnMeta.xml
diff -u phpdoc/en/reference/pdo/functions/PDOStatement-getColumnMeta.xml:1.2 
phpdoc/en/reference/pdo/functions/PDOStatement-getColumnMeta.xml:1.3
--- phpdoc/en/reference/pdo/functions/PDOStatement-getColumnMeta.xml:1.2        
Tue Mar  8 19:17:15 2005
+++ phpdoc/en/reference/pdo/functions/PDOStatement-getColumnMeta.xml    Tue Sep 
20 04:22:29 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc. 
-->
 <refentry id="function.PDOStatement-getColumnMeta">
  <refnamediv>
@@ -95,7 +95,7 @@
       <row>
        <entry><literal>pdo_type</literal></entry>
        <entry>The type of this column as represented by the
-       <literal>PDO_PARAM_*</literal> constants.</entry>
+       <literal>PDO::PARAM_*</literal> constants.</entry>
       </row>
      </tbody>
     </tgroup>
http://cvs.php.net/diff.php/phpdoc/en/reference/pdo/functions/PDOStatement-nextRowset.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc/en/reference/pdo/functions/PDOStatement-nextRowset.xml
diff -u phpdoc/en/reference/pdo/functions/PDOStatement-nextRowset.xml:1.2 
phpdoc/en/reference/pdo/functions/PDOStatement-nextRowset.xml:1.3
--- phpdoc/en/reference/pdo/functions/PDOStatement-nextRowset.xml:1.2   Sun Sep 
11 02:22:26 2005
+++ phpdoc/en/reference/pdo/functions/PDOStatement-nextRowset.xml       Tue Sep 
20 04:22:29 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc. 
-->
 <refentry id="function.PDOStatement-nextRowset">
  <refnamediv>
@@ -49,7 +49,7 @@
 $stmt = $conn->query($sql);
 $i = 1;
 do {
-    $rowset = $stmt->fetchAll(PDO_FETCH_NUM);
+    $rowset = $stmt->fetchAll(PDO::FETCH_NUM);
     if ($rowset) {
         printResultSet($rowset, $i);
     }
http://cvs.php.net/diff.php/phpdoc/en/reference/pdo/functions/PDOStatement-setFetchMode.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc/en/reference/pdo/functions/PDOStatement-setFetchMode.xml
diff -u phpdoc/en/reference/pdo/functions/PDOStatement-setFetchMode.xml:1.3 
phpdoc/en/reference/pdo/functions/PDOStatement-setFetchMode.xml:1.4
--- phpdoc/en/reference/pdo/functions/PDOStatement-setFetchMode.xml:1.3 Sun Sep 
11 02:22:26 2005
+++ phpdoc/en/reference/pdo/functions/PDOStatement-setFetchMode.xml     Tue Sep 
20 04:22:29 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 <!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc. 
-->
 <refentry id="function.PDOStatement-setFetchMode">
  <refnamediv>
@@ -24,7 +24,7 @@
      <term><parameter>mode</parameter></term>
       <listitem>
        <para>
-        The fetch mode must be one of the <literal>PDO_FETCH_*</literal> 
constants.
+        The fetch mode must be one of the <literal>PDO::FETCH_*</literal> 
constants.
        </para>
       </listitem>
      </varlistentry>
@@ -55,7 +55,7 @@
 $sql = 'SELECT name, colour, calories FROM fruit';
 try {
   $stmt = $dbh->query($sql);
-  $result = $stmt->setFetchMode(PDO_FETCH_NUM);
+  $result = $stmt->setFetchMode(PDO::FETCH_NUM);
   while ($row = $stmt->fetch()) {
     print $row[0] . "\t" . $row[1] . "\t" . $row[2] . "\n";
   }

Reply via email to