summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TReadOnlyDataSource.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2015-01-25 20:04:57 +0100
committerFabio Bas <ctrlaltca@gmail.com>2015-01-25 20:04:57 +0100
commite4999b25052d1ad9400a0f9fd5289a49eea1bddc (patch)
tree50e9b819fc3326cf08e882b648f8dafc8fec3fa4 /framework/Web/UI/WebControls/TReadOnlyDataSource.php
parent5230f8f8a86fc1ae5d90f8c74ae65c93e197502b (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/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;