From e4999b25052d1ad9400a0f9fd5289a49eea1bddc Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sun, 25 Jan 2015 20:04:57 +0100 Subject: More namespace changes Changed version to 3.2.99; Attempt at fixing autoloading fixed enough namespaces to have some demos running --- framework/Web/UI/WebControls/TReadOnlyDataSourceView.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'framework/Web/UI/WebControls/TReadOnlyDataSourceView.php') diff --git a/framework/Web/UI/WebControls/TReadOnlyDataSourceView.php b/framework/Web/UI/WebControls/TReadOnlyDataSourceView.php index 9c01ba98..15d1914c 100644 --- a/framework/Web/UI/WebControls/TReadOnlyDataSourceView.php +++ b/framework/Web/UI/WebControls/TReadOnlyDataSourceView.php @@ -10,6 +10,8 @@ */ namespace Prado\Web\UI\WebControls; +use Prado\Exceptions\TInvalidDataTypeException; +use Prado\Collections\TMap; /** * TReadOnlyDataSourceView class @@ -27,7 +29,7 @@ class TReadOnlyDataSourceView extends TDataSourceView parent::__construct($owner,$viewName); if($dataSource===null || is_array($dataSource)) $this->_dataSource=new TMap($dataSource); - else if($dataSource instanceof Traversable) + else if($dataSource instanceof \Traversable) $this->_dataSource=$dataSource; else throw new TInvalidDataTypeException('readonlydatasourceview_datasource_invalid'); -- cgit v1.2.3