phpOpenTracker/phpOpenTracker/Database/Driver MySQL.php,1.12,1.13 MySQL_Merge.php,1.6,1.7
Sebastian Bergmann <[email protected]> Mon, 08 Mar 2004 05:16:09 +0000
| Newsgroups | gmane.comp.web.phpopentracker.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/Database/Driver
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25160/Driver
Modified Files:
MySQL.php MySQL_Merge.php
Log Message:
DocComments
Index: MySQL.php
===================================================================
RCS file: /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/Database/Driver/MySQL.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** MySQL.php 3 Mar 2004 17:15:07 -0000 1.12
--- MySQL.php 8 Mar 2004 05:16:07 -0000 1.13
***************
*** 23,26 ****
--- 23,33 ----
class phpOpenTracker_Database_Driver_MySQL extends phpOpenTracker_Database_Driver {
+ /**
+ * Quotes an SQL string.
+ *
+ * @param string $query
+ * @return string
+ * @access public
+ */
public function quote($value) {
if (is_int($value) || is_double($value)) {
***************
*** 33,36 ****
--- 40,49 ----
}
+ /**
+ * Opens a connection to the configured database.
+ *
+ * @access public
+ * @abstract
+ */
protected function connect() {
$this->connection = new MySQLi(
***************
*** 43,50 ****
--- 56,87 ----
}
+ /**
+ * Closes a connection.
+ *
+ * @access public
+ * @abstract
+ */
protected function disconnect() {
$this->connection->close();
}
+ /**
+ * Prints SQL debugging/profiling information.
+ *
+ * @param string $query
+ * @access protected
+ */
+ protected function debugQuery($query) {
+ }
+
+ /**
+ * Rewrites an SQL query, for instance to LIMIT it.
+ *
+ * @param string $query
+ * @param array $parameters
+ * @param boolean $isManip
+ * @access public
+ * @abstract
+ */
protected function rewriteQuery(&$query, $parameters, $isManip) {
if (!$isManip && $parameters['limit'] !== false) {
***************
*** 53,56 ****
--- 90,100 ----
}
+ /**
+ * Executes an SQL query.
+ *
+ * @param string $query
+ * @access public
+ * @abstract
+ */
protected function executeQuery($query) {
$this->result = $this->connection->query($query);
***************
*** 65,71 ****
}
! protected function debugQuery($query) {
! }
!
public function fetchRow() {
$row = $this->result->fetch_assoc();
--- 109,119 ----
}
! /**
! * Fetches a row from a result set.
! *
! * @return array
! * @access public
! * @abstract
! */
public function fetchRow() {
$row = $this->result->fetch_assoc();
Index: MySQL_Merge.php
===================================================================
RCS file: /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/Database/Driver/MySQL_Merge.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** MySQL_Merge.php 3 Mar 2004 17:15:07 -0000 1.6
--- MySQL_Merge.php 8 Mar 2004 05:16:07 -0000 1.7
***************
*** 55,58 ****
--- 55,67 ----
) %s';
+ /**
+ * Rewrites an SQL query, for instance to LIMIT it.
+ *
+ * @param string $query
+ * @param array $parameters
+ * @param boolean $isManip
+ * @access public
+ * @abstract
+ */
protected function rewriteQuery(&$query, $parameters, $isManip) {
parent::rewriteQuery($query, $parameters, $isManip);
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click