From 423f4e6fb0afba2685589b700d30055cb6dcd099 Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 2 Jan 2006 04:54:31 +0000 Subject: Added TRadioButtonList, TTable related controls. --- framework/Web/UI/WebControls/TCheckBoxList.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'framework/Web/UI/WebControls/TCheckBoxList.php') 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; -- cgit v1.2.3