Commit 6480503b authored by zYne's avatar zYne

--no commit message

--no commit message
parent 78b849e7
...@@ -19,16 +19,16 @@ ...@@ -19,16 +19,16 @@
* <http://www.phpdoctrine.com>. * <http://www.phpdoctrine.com>.
*/ */
/** /**
* @package Doctrine
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
*
* Doctrine_Lib has not commonly used static functions, mostly for debugging purposes * Doctrine_Lib has not commonly used static functions, mostly for debugging purposes
* @category Object Relational Mapping *
* @link www.phpdoctrine.com * @package Doctrine
* @since 1.0 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @version $Revision$ * @category Object Relational Mapping
* @author Konsta Vesterinen <kvesteri@cc.hut.fi> * @link www.phpdoctrine.com
*/ * @since 1.0
* @version $Revision$
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
*/
class Doctrine_Lib { class Doctrine_Lib {
/** /**
* @param integer $state the state of record * @param integer $state the state of record
...@@ -76,16 +76,13 @@ class Doctrine_Lib { ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment