From 33b2284955a8f0015922d4c69c5082141b584f27 Mon Sep 17 00:00:00 2001 From: wei <> Date: Tue, 5 Dec 2006 23:37:07 +0000 Subject: load the inlineeditor textbox in client side onload. --- framework/Data/SqlMap/Configuration/TParameterMap.php | 4 ++-- framework/Data/SqlMap/Configuration/TResultMap.php | 4 ++-- framework/Data/SqlMap/Configuration/TResultProperty.php | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) (limited to 'framework/Data/SqlMap/Configuration') diff --git a/framework/Data/SqlMap/Configuration/TParameterMap.php b/framework/Data/SqlMap/Configuration/TParameterMap.php index 8d09d9a9..e4d77a91 100644 --- a/framework/Data/SqlMap/Configuration/TParameterMap.php +++ b/framework/Data/SqlMap/Configuration/TParameterMap.php @@ -155,7 +155,7 @@ class TParameterMap extends TComponent * @param mixed object to obtain the property from. * @param TParameterProperty parameter property. * @return mixed property value. - * @throws TSqlMapExecutionException if property access is invalid. + * @throws TSqlMapException if property access is invalid. */ protected function getObjectValue($object,$property) { @@ -165,7 +165,7 @@ class TParameterMap extends TComponent } catch (TInvalidPropertyException $e) { - throw new TSqlMapExecutionException( + throw new TSqlMapException( 'sqlmap_unable_to_get_property_for_parameter', $this->getID(), $property->getProperty(), get_class($object)); } diff --git a/framework/Data/SqlMap/Configuration/TResultMap.php b/framework/Data/SqlMap/Configuration/TResultMap.php index fa798dc2..5c608e77 100644 --- a/framework/Data/SqlMap/Configuration/TResultMap.php +++ b/framework/Data/SqlMap/Configuration/TResultMap.php @@ -155,7 +155,7 @@ class TResultMap extends TComponent * Create a new instance of the class of this result map. * @param TSqlMapTypeHandlerRegistry type handler registry. * @return mixed new result object. - * @throws TSqlMapExecutionException + * @throws TSqlMapException */ public function createInstanceOfResult($registry) { @@ -169,7 +169,7 @@ class TResultMap extends TComponent } catch (TSqlMapException $e) { - throw new TSqlMapExecutionException( + throw new TSqlMapException( 'sqlmap_unable_to_create_new_instance', $this->getClass(), get_class($handler), $this->getID()); } diff --git a/framework/Data/SqlMap/Configuration/TResultProperty.php b/framework/Data/SqlMap/Configuration/TResultProperty.php index e8fc5c38..884f1a78 100644 --- a/framework/Data/SqlMap/Configuration/TResultProperty.php +++ b/framework/Data/SqlMap/Configuration/TResultProperty.php @@ -282,10 +282,12 @@ class TResultProperty extends TComponent { if(class_exists($type = $this->getType(), false)) //NO force autoloading { + if($type==='TList') + return self::LIST_TYPE; $class = new ReflectionClass($type); if($class->isSubclassOf('TList')) return self::LIST_TYPE; - if($class->inmplementsInterface('ArrayAccess')) + if($class->implementsInterface('ArrayAccess')) return self::ARRAY_TYPE; } if(strtolower($type) == 'array') -- cgit v1.2.3