From 879cced5e01d43378065c938483b55a35ff10834 Mon Sep 17 00:00:00 2001 From: "Christophe.Boulain" <> Date: Wed, 4 Nov 2009 16:38:15 +0000 Subject: Minor corrections to avoid runtime notice with php 5.3, and function rename in TDbConnection --- framework/Base/TModel.php | 2 +- framework/Testing/Data/TDbConnection.php | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) (limited to 'framework') diff --git a/framework/Base/TModel.php b/framework/Base/TModel.php index 492bcbd9..14368b33 100644 --- a/framework/Base/TModel.php +++ b/framework/Base/TModel.php @@ -33,7 +33,7 @@ abstract class TModel extends TComponent implements IteratorAggregate, ArrayAcce * @param string EventName * @param TEvent Event */ - public function raiseEvent($name, $event) + public function raiseEvent($name, $event, $param=null) { parent::raiseEvent($name, $event, new TEventParameter()); } diff --git a/framework/Testing/Data/TDbConnection.php b/framework/Testing/Data/TDbConnection.php index 92708907..b1dd739a 100755 --- a/framework/Testing/Data/TDbConnection.php +++ b/framework/Testing/Data/TDbConnection.php @@ -425,7 +425,7 @@ class TDbConnection extends TComponent * @return string the properly quoted string * @see http://www.php.net/manual/en/function.PDO-quote.php */ - public function quoteString($str) + public function quoteValue($str) { if($this->getActive()) return $this->_pdo->quote($str); @@ -433,6 +433,20 @@ class TDbConnection extends TComponent throw new TDbException('TDbConnection is inactive and cannot perform any DB operations.'); } + /** + * + * Prado 3.1 compatibility method. + * + * @see {@link quoteValue} + * + * @param string $str + * @return string + */ + public function quoteString($str) + { + return $this->quoteValue($str); + } + /** * Quotes a table name for use in a query. * @param string table name -- cgit v1.2.3