Author: Kore Nordmann
Date: 2007-04-12 10:22:59 +0200 (Thu, 12 Apr 2007)
New Revision: 4861

Log:
- Fixed issue #10584: API Doc for ezcGraphPdoDataSet::createFromPdo() is wrong

Modified:
   trunk/Graph/ChangeLog
   trunk/Graph/src/datasets/pdo.php

Modified: trunk/Graph/ChangeLog
===================================================================
--- trunk/Graph/ChangeLog       2007-04-11 21:35:32 UTC (rev 4860)
+++ trunk/Graph/ChangeLog       2007-04-12 08:22:59 UTC (rev 4861)
@@ -25,6 +25,7 @@
   images in ezcGraphTools
 - Added feature #9404: Add spport for rotated texts on axis.
 - Fixed issue #10536: Bar side polygones are drawn at the wrong side.
+- Fixed issue #10584: API Doc for ezcGraphPdoDataSet::createFromPdo() is wrong
 
 1.0 - Monday 18 December 2006
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Modified: trunk/Graph/src/datasets/pdo.php
===================================================================
--- trunk/Graph/src/datasets/pdo.php    2007-04-11 21:35:32 UTC (rev 4860)
+++ trunk/Graph/src/datasets/pdo.php    2007-04-12 08:22:59 UTC (rev 4861)
@@ -18,7 +18,22 @@
     /**
      * Constructor
      * 
+     * Creates a ezcGraphPdoDataSet from a PDOStatement and uses the columns 
+     * defined in the definition array as keys and values for the data set. 
+     *
+     * If the definition array is empty a single column will be used as values,
+     * with two columns the first column will be used for the keys and the 
+     * second for the data set values.
+     *
+     * You may define the name of the rows used for keys and values by using 
+     * an array like:
+     *  array (
+     *      ezcGraph::KEY => 'row name',
+     *      ezcGraph::VALUE => 'row name',
+     *  );
+     *
      * @param PDOStatement $statement
+     * @param array $definition
      * @return ezcGraphPdoDataSet
      */
     public function __construct( PDOStatement $statement, array $definition = 
null )
@@ -30,12 +45,24 @@
     }
 
     /**
-     * setData
+     * Create dataset from PDO statement
      *
-     * Can handle data provided through an array or iterator.
+     * This methods uses the values from a PDOStatement to fill up the data 
+     * sets data.
+     *
+     * If the definition array is empty a single column will be used as values,
+     * with two columns the first column will be used for the keys and the 
+     * second for the data set values.
+     *
+     * You may define the name of the rows used for keys and values by using 
+     * an array like:
+     *  array (
+     *      ezcGraph::KEY => 'row name',
+     *      ezcGraph::VALUE => 'row name',
+     *  );
      * 
-     * @param array|Iterator $data 
-     * @access public
+     * @param PDOStatement $statement
+     * @param array $definition
      * @return void
      */
     protected function createFromPdo( PDOStatement $statement, array 
$definition = null ) 

-- 
svn-components mailing list
[EMAIL PROTECTED]
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to