From 6480503bce841319f9041f164e56236b352d9235 Mon Sep 17 00:00:00 2001 From: zYne Date: Wed, 29 Nov 2006 21:18:38 +0000 Subject: [PATCH] --- lib/Doctrine/Lib.php | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/lib/Doctrine/Lib.php b/lib/Doctrine/Lib.php index acf358272..c77654921 100644 --- a/lib/Doctrine/Lib.php +++ b/lib/Doctrine/Lib.php @@ -19,16 +19,16 @@ * . */ /** - * @package Doctrine - * @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 - * @link www.phpdoctrine.com - * @since 1.0 - * @version $Revision$ - * @author Konsta Vesterinen - */ + * + * @package Doctrine + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @category Object Relational Mapping + * @link www.phpdoctrine.com + * @since 1.0 + * @version $Revision$ + * @author Konsta Vesterinen + */ class Doctrine_Lib { /** * @param integer $state the state of record @@ -76,16 +76,13 @@ class Doctrine_Lib { */ public static function getConnectionStateAsString($state) { switch($state): - case Doctrine_Connection_Transaction::STATE_OPEN: + case Doctrine_Transaction::STATE_SLEEP: return "open"; break; - case Doctrine_Connection_Transaction::STATE_CLOSED: - return "closed"; - break; - case Doctrine_Connection_Transaction::STATE_BUSY: + case Doctrine_Transaction::STATE_BUSY: return "busy"; break; - case Doctrine_Connection_Transaction::STATE_ACTIVE: + case Doctrine_Transaction::STATE_ACTIVE: return "active"; break; endswitch;