summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TDataBoundControl.php
diff options
context:
space:
mode:
authorxue <>2007-04-09 02:44:50 +0000
committerxue <>2007-04-09 02:44:50 +0000
commitd43420201b1ed45574886e4a94f3f904bd4ea517 (patch)
treeb2f86958f6f5257a36e071b5ae7ea6cb73f1c0ba /framework/Web/UI/WebControls/TDataBoundControl.php
parentff32eed01f783ee33caeacb0f7315612f0994f8f (diff)
Implemented IDataRenderer for TListControl.
Diffstat (limited to 'framework/Web/UI/WebControls/TDataBoundControl.php')
-rw-r--r--framework/Web/UI/WebControls/TDataBoundControl.php15
1 files changed, 6 insertions, 9 deletions
diff --git a/framework/Web/UI/WebControls/TDataBoundControl.php b/framework/Web/UI/WebControls/TDataBoundControl.php
index b043060d..653a4e44 100644
--- a/framework/Web/UI/WebControls/TDataBoundControl.php
+++ b/framework/Web/UI/WebControls/TDataBoundControl.php
@@ -328,7 +328,12 @@ abstract class TDataBoundControl extends TWebControl
$this->setRequiresDataBinding(false);
$this->dataBindProperties();
$this->onDataBinding(null);
- $data=$this->getData();
+
+ if(($view=$this->getDataSourceView())!==null)
+ $data=$view->select($this->getSelectParameters());
+ else
+ $data=null;
+
if($data instanceof Traversable)
{
if($this->getAllowPaging())
@@ -359,14 +364,6 @@ abstract class TDataBoundControl extends TWebControl
$this->setRequiresDataBinding(true);
}
- protected function getData()
- {
- if(($view=$this->getDataSourceView())!==null)
- return $view->select($this->getSelectParameters());
- else
- return null;
- }
-
protected function getDataSourceView()
{
if(!$this->_currentViewValid)