[pLog-svn] r985 - plog/trunk/class/dao

oscar at devel.plogworld.net oscar at devel.plogworld.net
Mon Feb 7 07:46:37 GMT 2005


Author: oscar
Date: 2005-02-07 07:46:37 +0000 (Mon, 07 Feb 2005)
New Revision: 985

Modified:
   plog/trunk/class/dao/model.class.php
Log:
removed one unnecessary method


Modified: plog/trunk/class/dao/model.class.php
===================================================================
--- plog/trunk/class/dao/model.class.php	2005-02-07 07:38:21 UTC (rev 984)
+++ plog/trunk/class/dao/model.class.php	2005-02-07 07:46:37 UTC (rev 985)
@@ -61,28 +61,6 @@
 			$this->_db->debug=DAO_DEBUG_ENABLED;
         }
 
-        /**
-         * Private method that connects to the database
-         */
-        function _connectToDb()
-        {
-			$this->_db = NewADOConnection('mysql');
-
-            $username = $this->_fileConfig->getValue( "db_username" );
-            $password = $this->_fileConfig->getValue( "db_password" );
-            $host     = $this->_fileConfig->getValue( "db_host" );
-            $dbname   = $this->_fileConfig->getValue( "db_database" );
-
-            if( !$this->_db->PConnect( $host, $username, $password, $dbname )) {
-            	throw( new Exception( "Fatal error: could not connect to the database!" ));
-                die();
-            }
-
-            // just in case, forcing to use indexing by field name instead of
-            // by field number
-            $this->_db->SetFetchMode( ADODB_FETCH_ASSOC );
-        }
-
 		/**
 		 * executes a query with certain limits (for paging, for ex.
 		 *




More information about the pLog-svn mailing list