cvs: pear /DB_NestedSet/NestedSet DB.php MDB.php

From: Date: Mon, 06 Oct 2003 15:16:55 +0000
Subject: cvs: pear /DB_NestedSet/NestedSet DB.php MDB.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-13430@lists.php.net to get a copy of this message
datenpunk Mon Oct 6 11:16:55 2003 EDT Modified files: /pear/DB_NestedSet/NestedSet MDB.php DB.php Log: Fixed MDB support Index: pear/DB_NestedSet/NestedSet/MDB.php diff -u pear/DB_NestedSet/NestedSet/MDB.php:1.5 pear/DB_NestedSet/NestedSet/MDB.php:1.6 --- pear/DB_NestedSet/NestedSet/MDB.php:1.5 Mon Sep 1 18:54:02 2003 +++ pear/DB_NestedSet/NestedSet/MDB.php Mon Oct 6 11:16:55 2003 @@ -18,7 +18,7 @@ // Thanks to Hans Lellelid for suggesting support for PEAR::MDB // and for his help in implementing this. // -// $Id: MDB.php,v 1.5 2003/09/01 22:54:02 datenpunk Exp $ +// $Id: MDB.php,v 1.6 2003/10/06 15:16:55 datenpunk Exp $ // require_once 'MDB.php'; @@ -30,7 +30,7 @@ * * @author Daniel Khan <dk@webcluster.at> * @package DB_NestedSet -* @version $Revision: 1.5 $ +* @version $Revision: 1.6 $ * @access public */ // }}} @@ -96,6 +96,22 @@ } // }}} + + function _isDBError($err) { + if(!MDB::isError($err)) { + return false; + } + return true; + } + + function _numRows($res) { + return $this->db->numRows($res); + } + + function quote($str) { + return $this->db->getTextValue($str); + } + // {{{ _db_Disconnect() /** Index: pear/DB_NestedSet/NestedSet/DB.php diff -u pear/DB_NestedSet/NestedSet/DB.php:1.5 pear/DB_NestedSet/NestedSet/DB.php:1.6 --- pear/DB_NestedSet/NestedSet/DB.php:1.5 Mon Sep 1 18:54:02 2003 +++ pear/DB_NestedSet/NestedSet/DB.php Mon Oct 6 11:16:55 2003 @@ -16,7 +16,7 @@ // | Authors: Daniel Khan <dk@webcluster.at> | // +----------------------------------------------------------------------+ // -// $Id: DB.php,v 1.5 2003/09/01 22:54:02 datenpunk Exp $ +// $Id: DB.php,v 1.6 2003/10/06 15:16:55 datenpunk Exp $ // require_once 'DB.php'; @@ -28,7 +28,7 @@ * * @author Daniel Khan <dk@webcluster.at> * @package DB_NestedSet -* @version $Revision: 1.5 $ +* @version $Revision: 1.6 $ * @access public */ @@ -94,6 +94,23 @@ } // }}} + + + function _numRows($res) { + return $res->numRows(); + } + + function _isDBError($err) { + if(!DB::isError($err)) { + return false; + } + return true; + } + + function quote($str) { + return $this->db->quote($str); + } + // {{{ _db_Disconnect() /**

« previous php.pear.cvs (#13430) next »