cvs: pecl /sdo/DAS Relational.php
| From: | Matthew Peters | Date: | Fri, 20 Jan 2006 12:34:43 +0000 |
| Subject: | cvs: pecl /sdo/DAS Relational.php | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-4997@lists.php.net to get a copy of this message | ||
mfp Fri Jan 20 12:34:43 2006 UTC
Modified files:
/pecl/sdo/DAS Relational.php
Log:
Found and corrected a use of deprecated gettype(). Replaced with call to reflection api.
http://cvs.php.net/viewcvs.cgi/pecl/sdo/DAS/Relational.php?r1=1.8&r2=1.9&diff_format=u
Index: pecl/sdo/DAS/Relational.php
diff -u pecl/sdo/DAS/Relational.php:1.8 pecl/sdo/DAS/Relational.php:1.9
--- pecl/sdo/DAS/Relational.php:1.8 Wed Oct 19 11:35:40 2005
+++ pecl/sdo/DAS/Relational.php Fri Jan 20 12:34:43 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
| Author: Matthew Peters |
+----------------------------------------------------------------------+
-$Id: Relational.php,v 1.8 2005/10/19 11:35:40 cem Exp $
+$Id: Relational.php,v 1.9 2006/01/20 12:34:43 mfp Exp $
*/
require_once 'SDO/DAS/Relational/Exception.php';
@@ -383,7 +383,9 @@
private static function isRoot($do)
{
- return ($do->getType() == array(SDO_DAS_Relational::DAS_NAMESPACE ,
SDO_DAS_Relational::DAS_ROOT_TYPE));
+ $reflection_do = new SDO_Model_ReflectionDataObject($do);
+ $type = $reflection_do->getType();
+ return ($type->namespaceURI == SDO_DAS_Relational::DAS_NAMESPACE && $type->name ==
SDO_DAS_Relational::DAS_ROOT_TYPE);
}
private static function createRoot($df)