summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TReadOnlyDataSource.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/WebControls/TReadOnlyDataSource.php')
-rw-r--r--framework/Web/UI/WebControls/TReadOnlyDataSource.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TReadOnlyDataSource.php b/framework/Web/UI/WebControls/TReadOnlyDataSource.php
index 4af50348..9a73aed8 100644
--- a/framework/Web/UI/WebControls/TReadOnlyDataSource.php
+++ b/framework/Web/UI/WebControls/TReadOnlyDataSource.php
@@ -10,6 +10,7 @@
*/
namespace Prado\Web\UI\WebControls;
+use Prado\Exceptions\TInvalidDataTypeException;
/**
* TDataSourceControl class
@@ -25,7 +26,7 @@ class TReadOnlyDataSource extends TDataSourceControl
public function __construct($dataSource,$dataMember)
{
- if(!is_array($dataSource) && !($dataSource instanceof IDataSource) && !($dataSource instanceof Traversable))
+ if(!is_array($dataSource) && !($dataSource instanceof IDataSource) && !($dataSource instanceof \Traversable))
throw new TInvalidDataTypeException('readonlydatasource_datasource_invalid');
$this->_dataSource=$dataSource;
$this->_dataMember=$dataMember;