From 5230f8f8a86fc1ae5d90f8c74ae65c93e197502b Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Thu, 22 Jan 2015 09:14:12 +0100 Subject: Apply namespaces to class inheritances (pt1) --- framework/Data/SqlMap/DataMapper/TPropertyAccess.php | 6 +++--- framework/Data/SqlMap/DataMapper/TSqlMapTypeHandler.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/Data/SqlMap/DataMapper') diff --git a/framework/Data/SqlMap/DataMapper/TPropertyAccess.php b/framework/Data/SqlMap/DataMapper/TPropertyAccess.php index d5956d9d..666f105b 100644 --- a/framework/Data/SqlMap/DataMapper/TPropertyAccess.php +++ b/framework/Data/SqlMap/DataMapper/TPropertyAccess.php @@ -57,7 +57,7 @@ class TPropertyAccess $properties = explode('.', $path); foreach($properties as $prop) { - if(is_array($object) || $object instanceof ArrayAccess) + if(is_array($object) || $object instanceof \ArrayAccess) { if(array_key_exists($prop, $object)) $object = $object[$prop]; @@ -94,7 +94,7 @@ class TPropertyAccess $properties = explode('.', $path); foreach($properties as $prop) { - if(is_array($object) || $object instanceof ArrayAccess) + if(is_array($object) || $object instanceof \ArrayAccess) { if(array_key_exists($prop, $object)) $object = $object[$prop]; @@ -135,7 +135,7 @@ class TPropertyAccess else $object = &$originalObject; - if(is_array($object) || $object instanceof ArrayAccess) + if(is_array($object) || $object instanceof \ArrayAccess) { $object[$prop] = $value; } diff --git a/framework/Data/SqlMap/DataMapper/TSqlMapTypeHandler.php b/framework/Data/SqlMap/DataMapper/TSqlMapTypeHandler.php index 1c5c33bf..3105e80a 100644 --- a/framework/Data/SqlMap/DataMapper/TSqlMapTypeHandler.php +++ b/framework/Data/SqlMap/DataMapper/TSqlMapTypeHandler.php @@ -28,7 +28,7 @@ namespace Prado\Data\SqlMap\DataMapper; * @package Prado\Data\SqlMap\DataMapper * @since 3.1 */ -abstract class TSqlMapTypeHandler extends TComponent +abstract class TSqlMapTypeHandler extends \Prado\TComponent { private $_dbType='NULL'; private $_type; -- cgit v1.2.3