phpOpenTracker/phpOpenTracker/Database Driver.php,1.2,1.3

Sebastian Bergmann <[email protected]>
Newsgroups gmane.comp.web.phpopentracker.cvs
Message-ID <[email protected]>
Update of /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/Database
In directory sc8-pr-cvs1:/tmp/cvs-serv3095

Modified Files:
	Driver.php 
Log Message:
Flush.

Index: Driver.php
===================================================================
RCS file: /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/Database/Driver.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Driver.php	11 Dec 2003 19:34:33 -0000	1.2
--- Driver.php	16 Dec 2003 11:08:53 -0000	1.3
***************
*** 16,22 ****
  
  abstract class phpOpenTracker_Database_Driver {
!     private $configuration;
!     private $connection;
!     private $result;
  
      public function __construct() {
--- 16,22 ----
  
  abstract class phpOpenTracker_Database_Driver {
!     protected $configuration = null;
!     protected $connection = null;
!     protected $result = null;
  
      public function __construct() {
***************
*** 44,48 ****
          }
  
!         return $result;
      }
  
--- 44,48 ----
          }
  
!         return new phpOpenTracker_Database_ResultIterator($result);
      }
  
***************
*** 57,62 ****
      }
  
!     abstract public function fetchRow();
!     abstract public function executeQuery($query, $limit = false, $warnOnFailure = true);
  }
  
--- 57,75 ----
      }
  
!     public function prepareString($string) {
!         $string = substr($string, 0, 254);
! 
!         if (ini_get('magic_quotes_gpc')) {
!           $string = stripslashes($string);
!         }
! 
!         $string = str_replace("'", "''", $string);
! 
!         return $string;
!     }
! 
!     abstract protected function fetchRow();
!     abstract protected function executeQuery($query, $isManip, $limit);
!     abstract protected function debugQuery($query);
  }
  




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.