diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2015-01-25 20:04:57 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2015-01-25 20:04:57 +0100 |
commit | e4999b25052d1ad9400a0f9fd5289a49eea1bddc (patch) | |
tree | 50e9b819fc3326cf08e882b648f8dafc8fec3fa4 /framework/Web/UI/WebControls/TReadOnlyDataSourceView.php | |
parent | 5230f8f8a86fc1ae5d90f8c74ae65c93e197502b (diff) |
More namespace changes
Changed version to 3.2.99;
Attempt at fixing autoloading
fixed enough namespaces to have some demos running
Diffstat (limited to 'framework/Web/UI/WebControls/TReadOnlyDataSourceView.php')
-rw-r--r-- | framework/Web/UI/WebControls/TReadOnlyDataSourceView.php | 4 |
1 files changed, 3 insertions, 1 deletions
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'); |