|
From: <gem...@li...> - 2012-01-24 13:45:30
|
Revision: 419
http://gemstracker.svn.sourceforge.net/gemstracker/?rev=419&view=rev
Author: mennodekker
Date: 2012-01-24 13:45:19 +0000 (Tue, 24 Jan 2012)
Log Message:
-----------
Fixed inconsistency with token->getReceptionCode and added __toString to ReceptionCode object for backward compatibility
Modified Paths:
--------------
trunk/library/classes/Gems/Tracker/Token.php
trunk/library/classes/Gems/Util/ReceptionCode.php
Modified: trunk/library/classes/Gems/Tracker/Token.php
===================================================================
--- trunk/library/classes/Gems/Tracker/Token.php 2012-01-24 11:49:23 UTC (rev 418)
+++ trunk/library/classes/Gems/Tracker/Token.php 2012-01-24 13:45:19 UTC (rev 419)
@@ -670,12 +670,13 @@
}
/**
+ * Return the Gems_Util_ReceptionCode object
*
- * @return string reception code
+ * @return Gems_Util_ReceptionCode reception code
*/
public function getReceptionCode()
{
- return $this->_gemsData['gto_reception_code'];
+ return $this->util->getReceptionCode($this->_gemsData['gto_reception_code']);
}
/**
Modified: trunk/library/classes/Gems/Util/ReceptionCode.php
===================================================================
--- trunk/library/classes/Gems/Util/ReceptionCode.php 2012-01-24 11:49:23 UTC (rev 418)
+++ trunk/library/classes/Gems/Util/ReceptionCode.php 2012-01-24 13:45:19 UTC (rev 419)
@@ -59,6 +59,16 @@
protected $db;
/**
+ * Compatibility mode, for use with logical operators returns this->getCode()
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return $this->getCode();
+ }
+
+ /**
* Returns the complete record.
*
* @return array
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|