1
0
mirror of synced 2024-12-13 22:56:04 +03:00
This commit is contained in:
zYne 2006-11-29 21:18:38 +00:00
parent 78b849e776
commit 6480503bce

View File

@ -19,10 +19,10 @@
* <http://www.phpdoctrine.com>. * <http://www.phpdoctrine.com>.
*/ */
/** /**
* Doctrine_Lib has not commonly used static functions, mostly for debugging purposes
*
* @package Doctrine * @package Doctrine
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
*
* Doctrine_Lib has not commonly used static functions, mostly for debugging purposes
* @category Object Relational Mapping * @category Object Relational Mapping
* @link www.phpdoctrine.com * @link www.phpdoctrine.com
* @since 1.0 * @since 1.0
@ -76,16 +76,13 @@ class Doctrine_Lib {
*/ */
public static function getConnectionStateAsString($state) { public static function getConnectionStateAsString($state) {
switch($state): switch($state):
case Doctrine_Connection_Transaction::STATE_OPEN: case Doctrine_Transaction::STATE_SLEEP:
return "open"; return "open";
break; break;
case Doctrine_Connection_Transaction::STATE_CLOSED: case Doctrine_Transaction::STATE_BUSY:
return "closed";
break;
case Doctrine_Connection_Transaction::STATE_BUSY:
return "busy"; return "busy";
break; break;
case Doctrine_Connection_Transaction::STATE_ACTIVE: case Doctrine_Transaction::STATE_ACTIVE:
return "active"; return "active";
break; break;
endswitch; endswitch;