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/TReadOnlyDataSource.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'framework/Web/UI/WebControls/TReadOnlyDataSource.php') 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; -- cgit v1.2.3