From 3e1e120dbfbde806bcc0331479d28ce2a0bc2dbf Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 9 Apr 2007 03:32:50 +0000 Subject: Added getDataChanged() to IPostBackDataHandler --- framework/Web/UI/WebControls/TCheckBoxList.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (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 09b771eb..d0f4c7ce 100644 --- a/framework/Web/UI/WebControls/TCheckBoxList.php +++ b/framework/Web/UI/WebControls/TCheckBoxList.php @@ -52,6 +52,7 @@ class TCheckBoxList extends TListControl implements IRepeatInfoUser, INamingCont private $_repeatedControl; private $_isEnabled; private $_changedEventRaised=false; + private $_dataChanged=false; /** * Constructor. @@ -315,7 +316,7 @@ class TCheckBoxList extends TListControl implements IRepeatInfoUser, INamingCont if(!$this->_changedEventRaised) { $this->_changedEventRaised=true; - return true; + return $this->_dataChanged=true; } } } @@ -390,6 +391,16 @@ class TCheckBoxList extends TListControl implements IRepeatInfoUser, INamingCont } } + /** + * Returns a value indicating whether postback has caused the control data change. + * This method is required by the IPostBackDataHandler interface. + * @return boolean whether postback has caused the control data change. False if the page is not in postback mode. + */ + public function getDataChanged() + { + return $this->_dataChanged; + } + /** * Returns the value to be validated. * This methid is required by IValidatable interface. -- cgit v1.2.3