From deb44d4ca9cb18865c90de0878cbc27aa4ee6c56 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 11 Jan 2006 02:17:12 +0000 Subject: TRepeater nearly completed (test pending) --- framework/Web/UI/WebControls/TDataBoundControl.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'framework/Web/UI/WebControls/TDataBoundControl.php') diff --git a/framework/Web/UI/WebControls/TDataBoundControl.php b/framework/Web/UI/WebControls/TDataBoundControl.php index 399013a2..d02412e5 100644 --- a/framework/Web/UI/WebControls/TDataBoundControl.php +++ b/framework/Web/UI/WebControls/TDataBoundControl.php @@ -10,6 +10,9 @@ * @package System.Web.UI.WebControls */ +Prado::using('System.Web.UI.WebControls.TDataSourceControl'); +Prado::using('System.Web.UI.WebControls.TDataSourceView'); + /** * TDataBoundControl class. * @@ -35,6 +38,8 @@ abstract class TDataBoundControl extends TWebControl private $_currentDataSource=null; private $_currentViewValid=false; private $_currentDataSourceValid=false; + private $_currentViewIsFromDataSourceID=false; + private $_parameters=null; /** * @return Traversable data source object, defaults to null. @@ -317,7 +322,7 @@ abstract class TDataBoundControl extends TWebControl return $list; } else if(is_array($value)) - $value=new TList($value); + return new TList($value); else if(($value instanceof Traversable) || $value===null) return $value; else -- cgit v1.2.3