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/TDataBoundControl.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/TDataBoundControl.php')
-rw-r--r-- | framework/Web/UI/WebControls/TDataBoundControl.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/framework/Web/UI/WebControls/TDataBoundControl.php b/framework/Web/UI/WebControls/TDataBoundControl.php index a694f47d..bf3778cf 100644 --- a/framework/Web/UI/WebControls/TDataBoundControl.php +++ b/framework/Web/UI/WebControls/TDataBoundControl.php @@ -10,10 +10,11 @@ */ namespace Prado\Web\UI\WebControls; - -Prado::using('System.Web.UI.WebControls.TDataSourceControl'); -Prado::using('System.Web.UI.WebControls.TDataSourceView'); -Prado::using('System.Collections.TPagedDataSource'); +use Prado\TPropertyValue; +use Prado\Exceptions\TInvalidDataValueException; +use Prado\Exceptions\TInvalidDataTypeException; +use Prado\Collections\TList; +use Prado\Collections\TMap; /** * TDataBoundControl class. @@ -43,7 +44,7 @@ Prado::using('System.Collections.TPagedDataSource'); * @package Prado\Web\UI\WebControls * @since 3.0 */ -abstract class TDataBoundControl extends TWebControl +abstract class TDataBoundControl extends \Prado\Web\UI\WebControls\TWebControl { private $_initialized=false; private $_dataSource=null; @@ -334,7 +335,7 @@ abstract class TDataBoundControl extends TWebControl else $data=null; - if($data instanceof Traversable) + if($data instanceof \Traversable) { if($this->getAllowPaging()) { @@ -486,7 +487,7 @@ abstract class TDataBoundControl extends TWebControl // read array from TDbDataReader since it's forward-only stream and can only be traversed once return $value->readAll(); } - else if(($value instanceof Traversable) || $value===null) + else if(($value instanceof \Traversable) || $value===null) return $value; else throw new TInvalidDataTypeException('databoundcontrol_datasource_invalid',get_class($this)); |