summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TCheckBoxList.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/WebControls/TCheckBoxList.php')
-rw-r--r--framework/Web/UI/WebControls/TCheckBoxList.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TCheckBoxList.php b/framework/Web/UI/WebControls/TCheckBoxList.php
index 31d06ef9..c4addcdd 100644
--- a/framework/Web/UI/WebControls/TCheckBoxList.php
+++ b/framework/Web/UI/WebControls/TCheckBoxList.php
@@ -2,7 +2,7 @@
Prado::using('System.Web.UI.WebControls.TRepeatInfo');
-class TCheckBoxList extends TListControl implements IRepeatInfoUser
+class TCheckBoxList extends TListControl implements IRepeatInfoUser, INamingContainer, IPostBackDataHandler
{
private $_repeatedControl;
private $_isEnabled;
@@ -10,12 +10,17 @@ class TCheckBoxList extends TListControl implements IRepeatInfoUser
public function __construct()
{
parent::__construct();
- $this->_repeatedControl=new TCheckBox;
+ $this->_repeatedControl=$this->createRepeatedControl();
$this->_repeatedControl->setEnableViewState(false);
$this->_repeatedControl->setID('0');
$this->getControls()->add($this->_repeatedControl);
}
+ protected function createRepeatedControl()
+ {
+ return new TCheckBox;
+ }
+
public function findControl($id)
{
return $this;