summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TCheckBoxList.php
diff options
context:
space:
mode:
authorxue <>2006-01-02 04:54:31 +0000
committerxue <>2006-01-02 04:54:31 +0000
commit423f4e6fb0afba2685589b700d30055cb6dcd099 (patch)
treec3b53ea0cc226230b5e39c47cbbc822fc2981f20 /framework/Web/UI/WebControls/TCheckBoxList.php
parentcb54d4b2bc36e098e38a25a29a844e726fa501ad (diff)
Added TRadioButtonList, TTable related controls.
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;