diff options
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'); |