From 4a244c109126fcec5ef43b185225d094e166e29a Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 6 Mar 2006 05:03:44 +0000 Subject: small fixes to prepare for beta release --- framework/DataAccess/TDatabaseProvider.php | 74 +++++++++++++++--------------- 1 file changed, 37 insertions(+), 37 deletions(-) (limited to 'framework/DataAccess/TDatabaseProvider.php') diff --git a/framework/DataAccess/TDatabaseProvider.php b/framework/DataAccess/TDatabaseProvider.php index 8f676345..68cae473 100644 --- a/framework/DataAccess/TDatabaseProvider.php +++ b/framework/DataAccess/TDatabaseProvider.php @@ -1,7 +1,7 @@ * @version $Revision: $ $Date: $ @@ -143,37 +143,7 @@ abstract class TDatabaseProvider extends TModule } /** - * Performs the connection to the database using a TDatabaseProvider, - * executes SQL statements. - * - * @author Wei Zhuo - * @version $Revision: $ $Date: $ - * @package System.DataAccess - * @since 3.0 - */ -abstract class TDbConnection extends TComponent implements IDbConnection -{ - private $_provider; - - public function __construct($provider) - { - if($provider instanceof TDatabaseProvider) - $this->setProvider($provider); - } - - public function setProvider($provider) - { - $this->_provider = $provider; - } - - public function getProvider() - { - return $this->_provider; - } -} - -/** - * A connection (session) with a specific database. SQL statements are executed + * A connection (session) with a specific database. SQL statements are executed * and results are returned within the context of a connection. * * @author Wei Zhuo @@ -199,13 +169,13 @@ interface IDbConnection public function open(); /** - * @return string creates a prepared statement for sending parameterized + * @return string creates a prepared statement for sending parameterized * SQL statements to the database. */ public function prepare($statement); /** - * Executes the SQL statement which may be any kind of SQL statement, + * Executes the SQL statement which may be any kind of SQL statement, * including prepared statements. * @param string sql query statement * @param array subsititution parameters @@ -234,20 +204,20 @@ interface IDbConnection public function getHasTransactionFailed(); /** - * Makes all changes made since the previous commit/rollback permanent and + * Makes all changes made since the previous commit/rollback permanent and * releases any database locks. */ public function commit(); /** - * Undoes all changes made in the current transaction and releases any + * Undoes all changes made in the current transaction and releases any * database locks */ public function rollback(); /** * @param string quote a string to be sent to the database. - * @param boolean if true it ensure that the variable is not quoted twice, + * @param boolean if true it ensure that the variable is not quoted twice, * once by quote and once by the magic_quotes_gpc. * @return string database specified quoted string */ @@ -255,4 +225,34 @@ interface IDbConnection } +/** + * Performs the connection to the database using a TDatabaseProvider, + * executes SQL statements. + * + * @author Wei Zhuo + * @version $Revision: $ $Date: $ + * @package System.DataAccess + * @since 3.0 + */ +abstract class TDbConnection extends TComponent implements IDbConnection +{ + private $_provider; + + public function __construct($provider) + { + if($provider instanceof TDatabaseProvider) + $this->setProvider($provider); + } + + public function setProvider($provider) + { + $this->_provider = $provider; + } + + public function getProvider() + { + return $this->_provider; + } +} + ?> \ No newline at end of file -- cgit v1.2.3