summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TDataSourceControl.php
diff options
context:
space:
mode:
authorjavalizard <>2010-04-18 03:15:01 +0000
committerjavalizard <>2010-04-18 03:15:01 +0000
commit5aff249d0b574f90f527b7af60604439f8fa3bef (patch)
tree283801d30bd4c847d9079e66391a03823050ad24 /framework/Web/UI/WebControls/TDataSourceControl.php
parentc8b27e28e32cd8a93c2203b2c391d0b8e8ecf86a (diff)
ensured that the WebControls are calling their parent __construct methods
Diffstat (limited to 'framework/Web/UI/WebControls/TDataSourceControl.php')
-rw-r--r--framework/Web/UI/WebControls/TDataSourceControl.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TDataSourceControl.php b/framework/Web/UI/WebControls/TDataSourceControl.php
index 1d0823ff..1deaa857 100644
--- a/framework/Web/UI/WebControls/TDataSourceControl.php
+++ b/framework/Web/UI/WebControls/TDataSourceControl.php
@@ -4,7 +4,7 @@
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.pradosoft.com/
- * @copyright Copyright &copy; 2005-2008 PradoSoft
+ * @copyright Copyright &copy; 2005-2010 PradoSoft
* @license http://www.pradosoft.com/license/
* @version $Id$
* @package System.Web.UI.WebControls
@@ -103,6 +103,8 @@ class TReadOnlyDataSource extends TDataSourceControl
{
if(!is_array($dataSource) && !($dataSource instanceof IDataSource) && !($dataSource instanceof Traversable))
throw new TInvalidDataTypeException('readonlydatasource_datasource_invalid');
+
+ parent::__construct();
$this->_dataSource=$dataSource;
$this->_dataMember=$dataMember;
}